fix osx dub builds

This commit is contained in:
Vadim Lopatin 2015-11-11 21:16:59 +03:00
parent 93964d34ac
commit 78eb509eaa
4 changed files with 9 additions and 1 deletions

View File

@ -42,6 +42,7 @@
<VersionIds> <VersionIds>
<String>USE_SDL</String> <String>USE_SDL</String>
<String>USE_OPENGL</String> <String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String> <String>EmbedStandardResources</String>
</VersionIds> </VersionIds>
</VersionIds> </VersionIds>

View File

@ -62,13 +62,14 @@
{ {
"name": "minimal", "name": "minimal",
"versions": ["EmbedStandardResources", "ForceLogs"], "versions": ["EmbedStandardResources", "ForceLogs"],
"versions-posix": ["USE_SDL", "USE_FREETYPE"], "versions-posix": ["USE_SDL", "USE_FREETYPE", "USE_OPENGL"],
"versions-windows": ["Unicode"], "versions-windows": ["Unicode"],
"dependencies": { "dependencies": {
"dlib": "~>0.7.0", "dlib": "~>0.7.0",
"gl3n": "~>1.2.0" "gl3n": "~>1.2.0"
}, },
"dependencies-posix": { "dependencies-posix": {
"derelict-gl3": "~>1.0.16",
"derelict-sdl2": "~>1.9.7", "derelict-sdl2": "~>1.9.7",
"derelict-ft": "~>1.0.2" "derelict-ft": "~>1.0.2"
} }

View File

@ -32,7 +32,12 @@ void main(string[] args)
NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask, //NSBorderlessWindowMask, NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask, //NSBorderlessWindowMask,
NSBackingStoreBuffered, NO); NSBackingStoreBuffered, NO);
window.makeKeyAndOrderFront(); window.makeKeyAndOrderFront();
NSView parentView;
parentView = window.contentView();
NSApp.activateIgnoringOtherApps(YES); NSApp.activateIgnoringOtherApps(YES);
NSApp.run(); NSApp.run();
DerelictCocoa.unload();
} }

View File

@ -53,6 +53,7 @@
<VersionIds> <VersionIds>
<String>USE_SDL</String> <String>USE_SDL</String>
<String>USE_OPENGL</String> <String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String> <String>EmbedStandardResources</String>
</VersionIds> </VersionIds>
</VersionIds> </VersionIds>