ide: OSX flags

git-svn-id: svn://ultimatepp.org/upp/trunk@12140 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-08-02 17:53:13 +00:00
parent b5b53f2636
commit 03dcd39918
8 changed files with 40 additions and 25 deletions

View file

@ -11,7 +11,7 @@ library(WIN32 !GUI !GNU !GCC) "ole32 oleaut32 oldnames";
library(LINUX !ANDROID) "pthread dl rt";
library(BSD !OSX11 !MACOSX) "pthread rt execinfo";
library(BSD !OSX) "pthread rt execinfo";
library(WIN32 !MSC8ARM) "advapi32 shell32 winmm mpr";
@ -23,7 +23,7 @@ library(MSC8ARM WIN32) "coredll.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib
library(!WIN32) z;
library(MACOSX) pthread;
library(OSX) pthread;
library(ANDROID) atomic;

View file

@ -43,7 +43,11 @@
#define PLATFORM_COCOA 1
#endif
#define PLATFORM_BSD 1
#define PLATFORM_MACOS
#define PLATFORM_MACOS 1
#define PLATFORM_OSX 1
#ifndef flagUSEMALLOC
#define flagUSEMALLOC // TODO: investigate why is this necessary...
#endif
#else
// zvzv mod
// was: #if __FreeBSD__ || __OpenBSD__ || __NetBSD__ || __APPLE__

View file

@ -261,4 +261,15 @@ void Upp::Ctrl::WndSetPos(const Upp::Rect& rect)
display:YES];
}
void Upp::TopWindow::SerializePlacement(Stream& s, bool reminimize)
{
GuiLock __;
int version = 0;
s / version;
Rect rect = GetRect();
s % rect;
if(s.IsLoading())
SetRect(rect);
}
#endif

View file

@ -46,11 +46,6 @@ void TopWindow::GuiPlatformDestruct()
{
}
void TopWindow::SerializePlacement(Stream& s, bool reminimize)
{
GuiLock __;
}
END_UPP_NAMESPACE
#endif

View file

@ -33,7 +33,7 @@ library(POSIX !NOGTK !RAINBOW GUI !OSX11) notify;
library(DRAGONFLY) "Xext Xinerama";
link(MACOSX) " -framework Foundation -framework Cocoa";
link(OSX !X11) " -framework Foundation -framework Cocoa";
file
Core readonly separator,

View file

@ -1,9 +1,14 @@
sooner:
- X11 on option
- OSX flag
- SerializePlacement
- rect loop (ViewDraw)
- flagCOCOA
- USEMALLOC
- triple click, hold...
- package organizer initial size too small
- rect loop (ViewDraw)
- minimize, maximaze
- Ctrl+Shift+F wrong initial focus
- menubar does not loose focus after click outside (or rather ActiveFocus does not work)
@ -14,9 +19,8 @@ sooner:
later:
- void WakeUpGuiThread(void)
- fullscreen
- fullscreen mode issues
- missing cursors (add to iml, use undocumented cursor)
- X11 on option
- PrinterJob
- DrawDragRect
- CT_Font caching
@ -37,10 +41,10 @@ later:
- fix resizing arrows
- RenderCharacterSys
- flagCOCOA
- USEMALLOC
- multimonitor support
- SerializePlacement - probably improve
void SystemDraw::DrawPolyPolylineOp(const Point *vertices, int vertex_count, const int *counts, int count_count, int width, Color color, Color doxor)
void SystemDraw::DrawPolyPolyPolygonOp(const Point *vertices, int vertex_count, const int *subpolygon_counts, int scc, const int *disjunct_polygon_counts, int dpcc, Color color, int width, Color outline, uint64 pattern, Color doxor)
void SystemDraw::DrawArcOp(const Rect& rc, Point start, Point end, int width, Color color)

View file

@ -135,13 +135,14 @@ bool GccBuilder::BuildPackage(const String& package, Vector<String>& linkfile, V
cc << ' ' << Gather(pkg.option, config.GetKeys());
cc << " -fexceptions";
if (HasFlag("OSX11")) {
#if 0
if (HasFlag("OSX")) {
if (HasFlag("POWERPC"))
cc << " -arch ppc";
if (HasFlag("X86"))
cc << " -arch i386";
}
#endif
// if(HasFlag("SSE2")) {
// cc << " -msse2";
// if(!HasFlag("CLANG"))
@ -477,11 +478,11 @@ bool GccBuilder::Link(const Vector<String>& linkfile, const String& linkoptions,
if(HasFlag("DEBUG_MINIMAL") || HasFlag("DEBUG_FULL"))
lnk << " -ggdb";
else
lnk << (!HasFlag("OSX11") && !HasFlag("COCOA") ? " -Wl,-s" : "");
lnk << (!HasFlag("OSX") ? " -Wl,-s" : "");
for(i = 0; i < libpath.GetCount(); i++)
lnk << " -L" << GetHostPathQ(libpath[i]);
// lnk << " -Wl,--gc-sections,-O,2 ";
if(!HasFlag("OSX11") && !HasFlag("COCOA"))
if(!HasFlag("OSX") && !HasFlag("COCOA"))
lnk << " -Wl,-O,2 ";
lnk << linkoptions;
/*
@ -518,10 +519,8 @@ bool GccBuilder::Link(const Vector<String>& linkfile, const String& linkoptions,
else
lib.Add(linkfile[i]);
}
#ifndef PLATFORM_MACOS
if(!HasFlag("SOLARIS") && !HasFlag("OSX11") && !HasFlag("OBJC"))
if(!HasFlag("SOLARIS") && !HasFlag("OSX") && !HasFlag("OBJC"))
lnk << " -Wl,--start-group ";
#endif
for(int pass = 0; pass < 2; pass++) {
for(i = 0; i < lib.GetCount(); i++) {
String ln = lib[i];
@ -552,10 +551,8 @@ bool GccBuilder::Link(const Vector<String>& linkfile, const String& linkoptions,
lnk << " -l" << ln;
}
}
#ifndef PLATFORM_MACOS
if(pass == 1 && !HasFlag("SOLARIS") && !HasFlag("OSX11"))
if(pass == 1 && !HasFlag("SOLARIS") && !HasFlag("OSX"))
lnk << " -Wl,--end-group";
#endif
}
PutConsole("Linking...");
bool error = false;

View file

@ -338,6 +338,10 @@ void LocalHost::AddFlags(Index<String>& cfg)
cfg.Add("BSD");
#endif
#ifdef PLATFORM_OSX
cfg.Add("OSX");
#endif
#ifdef PLATFORM_FREEBSD
cfg.Add("FREEBSD");
#endif