mirror of https://github.com/buggins/dlangui.git
fix osx dub builds
This commit is contained in:
parent
93964d34ac
commit
78eb509eaa
|
@ -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>
|
||||||
|
|
3
dub.json
3
dub.json
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue