Added Box2D

This commit is contained in:
Julian Nießner
2018-05-06 12:43:20 +02:00
parent cb5469bb89
commit d175d433a8
351 changed files with 123545 additions and 1 deletions

67
external/Box2D-2.3.1/Box2D/premake4.lua vendored Normal file
View File

@@ -0,0 +1,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" }