forked from erincatto/box2d
-
Notifications
You must be signed in to change notification settings - Fork 6
/
premake4.lua
62 lines (52 loc) · 1.49 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
-- 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/**.hpp", "Box2D/**.cpp" }
vpaths { [""] = "Box2D" }
includedirs { "." }
project "GLEW"
kind "StaticLib"
language "C++"
files { "glew/*.h", "glew/*.c" }
vpaths { ["Headers"] = "**.h", ["Sources"] = "**.c" }
includedirs { "." }
project "GLFW"
kind "StaticLib"
language "C"
files { "glfw/*.h", "glfw/*.c" }
vpaths { ["Headers"] = "**.h", ["Sources"] = "**.c" }
project "HelloWorld"
kind "ConsoleApp"
language "C++"
files { "HelloWorld/HelloWorld.cpp" }
vpaths { [""] = "HelloWorld" }
includedirs { "." }
links { "Box2D" }
project "Testbed"
kind "ConsoleApp"
language "C++"
files { "Testbed/**.hpp", "Testbed/**.cpp" }
vpaths { [""] = "Testbed" }
includedirs { "." }
links { "Box2D", "GLEW", "GLFW" }
configuration { "windows" }
links { "glu32", "opengl32", "winmm" }
configuration { "macosx" }
linkoptions { "-framework OpenGL -framework Cocoa" }
configuration { "not windows", "not macosx" }
links { "X11", "GL", "GLU" }