forked from blackberry/Box2D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake4.lua
67 lines (56 loc) · 1.69 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
-- Box2D premake script.
-- http://industriousone.com/premake
local action = _ACTION or ""
solution "Box2D"
location ( "Build/" .. action )
configurations { "Debug", "Release" }
configuration "vs*"
defines { "_CRT_SECURE_NO_WARNINGS" }
configuration "Debug"
targetdir ( "Build/" .. action .. "/bin/Debug" )
flags { "Symbols" }
configuration "Release"
targetdir ( "Build/" .. action .. "/bin/Release" )
defines { "NDEBUG" }
flags { "Optimize" }
project "Box2D"
kind "StaticLib"
language "C++"
files { "Box2D/**.h", "Box2D/**.cpp" }
vpaths { [""] = "Box2D" }
includedirs { "." }
if os.get == "windows" then
project "FreeGLUT"
kind "StaticLib"
language "C"
files { "freeglut/*.h", "freeglut/*.c" }
vpaths { ["Headers"] = "**.h", ["Sources"] = "**.c" }
end
project "GLUI"
kind "StaticLib"
language "C++"
files { "glui/*.h", "glui/*.cpp" }
vpaths { ["Headers"] = "**.h", ["Sources"] = "**.cpp" }
includedirs { "." }
configuration { "windows" }
buildoptions { "/W1" }
project "HelloWorld"
kind "ConsoleApp"
language "C++"
files { "HelloWorld/Helloworld.cpp" }
vpaths { [""] = "HelloWorld" }
includedirs { "." }
links { "Box2D" }
project "Testbed"
kind "ConsoleApp"
language "C++"
files { "Testbed/**.h", "Testbed/**.cpp" }
vpaths { [""] = "Testbed" }
includedirs { "." }
links { "Box2D", "GLUI" }
configuration { "windows" }
links { "FreeGLUT", "glu32", "opengl32", "winmm" }
configuration { "macosx" }
linkoptions { "-framework OpenGL -framework GLUT" }
configuration { "not windows", "not macosx" }
links { "X11", "GL", "GLU", "GLUT" }