-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake4.lua
105 lines (99 loc) · 2.82 KB
/
premake4.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
solution("bouncingship")
configurations {"Debug", "Release"}
targetdir("bin")
configuration "Debug"
defines { "DEBUG" }
--optimize "debug"
flags { "Symbols" }
configuration "Release"
defines { "NDEBUG" }
--optimize "speed"
flags { "OptimizeSpeed" }
targetname("bouncingship_dist")
project("bouncingship")
--uuid("")
kind("WindowedApp")
language("C++")
links {
"pthread",
"GL",
"GLU",
"SDL2",
"GLEW",
--"assimp",
"freeimage",
"openal",
"alut",
"ogg",
"vorbis",
"vorbisfile",
"boost_system",
"boost_thread",
"boost_filesystem",
"boost_python",
"boost_coroutine",
"boost_regex",
"jsoncpp",
--"BulletSoftBody",
"BulletDynamics",
"BulletCollision",
"LinearMath",
"z",
"assimp"
}
files {
"src/**.h",
"src/**.cpp"
}
excludes {
"src/Qor/Main.cpp",
"src/Qor/Info.cpp",
"src/Qor/Net.*",
"src/Qor/DemoState.*",
"src/Qor/tests/**",
"src/Qor/scripts/**",
"src/Qor/addons/**",
"src/Qor/shaders/**"
}
includedirs {
"vendor/include/",
"/usr/local/include/",
--"/usr/include/cegui-0/",
"/usr/include/bullet/",
}
libdirs {
--"/usr/lib/cegui-0.8/",
"/usr/local/lib/",
"/usr/local/lib64/",
}
defines { }
buildoptions {
"`python2-config --includes`",
"`pkg-config --cflags cairomm-1.0 pangomm-1.4`"
}
linkoptions {
"`python2-config --libs`",
"`pkg-config --libs cairomm-1.0 pangomm-1.4`"
--"`pkg-config --libs cairomm pangomm`"
}
configuration {"debug"}
defines { "BACKWARD_HAS_BFD=1" }
links {
"z",
"bfd",
"iberty"
}
linkoptions { "`llvm-config --libs core` `llvm-config --ldflags`" }
configuration {}
--configuration { "linux" }
-- includedirs {
-- "/usr/include/lua5.1",
-- }
--configuration {}
configuration { "gmake" }
buildoptions { "-std=c++11" }
--buildoptions { "-std=c++11", "-pedantic", "-Wall", "-Wextra" }
configuration { "macosx" }
buildoptions { "-U__STRICT_ANSI__", "-stdlib=libc++" }
linkoptions { "-stdlib=libc++" }
configuration {}