forked from mrichards42/xword
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake4_wxdefs.lua
41 lines (28 loc) · 1.18 KB
/
premake4_wxdefs.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
-- wxWidgets defines and include directories
configuration {}
defines { "UNICODE", "_UNICODE", }
configuration "Debug"
defines { "__WXDEBUG__" }
if os.istarget("windows") then
configuration "windows"
defines { "__WXMSW__", "_CRT_SECURE_NO_WARNINGS" }
includedirs { _OPTIONS["wx-prefix"].."/include" }
configuration { "windows", "Release" }
includedirs { _OPTIONS["wx-prefix"].."/lib/vc_lib/mswu" }
configuration { "windows", "Debug" }
includedirs { _OPTIONS["wx-prefix"].."/lib/vc_lib/mswud" }
elseif os.istarget("linux") then
configuration { "linux", "Debug" }
buildoptions(string.format("`%s --debug --unicode --static --cxxflags`",
_OPTIONS["wx-config-debug"]))
configuration { "linux", "Release" }
buildoptions(string.format("`%s --unicode --static --cxxflags`",
_OPTIONS["wx-config-release"]))
elseif os.istarget("macosx") then
configuration { "macosx", "Debug" }
buildoptions(wx_config("--debug --unicode --static --cxxflags"))
configuration { "macosx", "Release" }
buildoptions(wx_config("--unicode --static --cxxflags"))
end
-- Reset the configuration
configuration {}