forked from pyrite-dev/milsko
i think we're now linking to gnustep properly
This commit is contained in:
parent
a4c61b0e38
commit
7d85a784f5
2 changed files with 6 additions and 2 deletions
|
|
@ -57,7 +57,9 @@ if (grep(/^cocoa$/, @backends) || param_get("gnustep")) {
|
|||
new_object("src/backend/cocoa.m");
|
||||
|
||||
if(param_get("gnustep")){
|
||||
add_ldflags("-lobjc -lgnustep-base -lm -lgnustep-gui");
|
||||
add_incdir2("-I/usr/GNUstep/System/Library/Headers");
|
||||
add_libdir("-L/usr/GNUstep/System/Library/Libraries");
|
||||
add_ldflags("-fblocks -lobjc -lgnustep-base -lm -lgnustep-gui");
|
||||
}
|
||||
|
||||
if (param_get("opengl")) {
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ static void recursive_dispatch_key_released(MwLL handle, int* k) {
|
|||
y = r ? ([[NSScreen mainScreen] frame].size.height / 2.) - (height / 2.)
|
||||
: 0;
|
||||
}
|
||||
c->application = [MilskoCocoaApplication sharedApplication];
|
||||
c->application = NSApp;
|
||||
c->rect = NSMakeRect(x, y, width, height);
|
||||
|
||||
if(parent == NULL) {
|
||||
|
|
@ -1235,6 +1235,8 @@ static void MwLLEndStateChangeImpl(MwLL handle) {
|
|||
}
|
||||
|
||||
static int MwLLCocoaCallInitImpl(void) {
|
||||
[NSApplication sharedApplication];
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue