1 --add the 0 so the solution comes first in the directory (when sorted on name)
\r
2 --print "uncomment this hello premake4 world for debugging the script"
\r
4 solution "0BulletSolution"
\r
8 description = "Enable iOS target (requires xcode4)"
\r
12 trigger = "without-demos",
\r
13 description = "Disable demos and extras"
\r
17 trigger = "with-double-precision",
\r
18 description = "Enable double precision build"
\r
23 trigger = "with-nacl",
\r
24 description = "Enable Native Client build"
\r
28 trigger = "with-dx11",
\r
29 description = "Enable DirectX11 build"
\r
33 trigger = "with-opencl",
\r
34 description = "Enable OpenCL builds (various SDKs)"
\r
38 trigger = "with-opencl-amd",
\r
39 description = "Enable OpenCL builds (AMD SDK)"
\r
43 trigger = "with-opencl-intel",
\r
44 description = "Enable OpenCL builds (Intel SDK)"
\r
47 trigger = "with-opencl-nvidia",
\r
48 description = "Enable OpenCL builds (NVIDIA SDK)"
\r
52 configurations {"Release", "Debug"}
\r
53 configuration "Release"
\r
54 flags { "Optimize", "StaticRuntime", "NoMinimalRebuild", "FloatFast"}
\r
55 configuration "Debug"
\r
56 flags { "Symbols", "StaticRuntime" , "NoMinimalRebuild", "NoEditAndContinue" ,"FloatFast"}
\r
58 platforms {"x32", "x64"}
\r
61 configuration {"Windows"}
\r
62 defines { "_CRT_SECURE_NO_WARNINGS","_CRT_SECURE_NO_DEPRECATE"}
\r
68 if _OPTIONS["with-double-precision"] then
\r
69 defines {"BT_USE_DOUBLE_PRECISION"}
\r
72 if _ACTION == "xcode4" then
\r
73 if _OPTIONS["ios"] then
\r
77 'INFOPLIST_FILE = "../../Test/Info.plist"',
\r
78 'CODE_SIGN_IDENTITY = "iPhone Developer"',
\r
79 "SDKROOT = iphoneos",
\r
81 'TARGETED_DEVICE_FAMILY = "1,2"',
\r
82 'VALID_ARCHS = "armv7"',
\r
87 'ARCHS = "$(ARCHS_STANDARD_32_BIT) $(ARCHS_STANDARD_64_BIT)"',
\r
88 'VALID_ARCHS = "x86_64 i386"',
\r
100 configuration {"x32"}
\r
101 targetsuffix ("_" .. act)
\r
102 configuration "x64"
\r
103 targetsuffix ("_" .. act .. "_64" )
\r
104 configuration {"x64", "debug"}
\r
105 targetsuffix ("_" .. act .. "_x64_debug")
\r
106 configuration {"x64", "release"}
\r
107 targetsuffix ("_" .. act .. "_x64_release" )
\r
108 configuration {"x32", "debug"}
\r
109 targetsuffix ("_" .. act .. "_debug" )
\r
115 if not _OPTIONS["with-nacl"] then
\r
120 -- Disable exception handling on MSVC 2008 and higher. MSVC 2005 without service pack has some linker issue (ConvexDecompositionDemo uses STL through HACD library)
\r
121 if _ACTION == "vs2010" or _ACTION=="vs2008" then
\r
122 flags { "NoExceptions"}
\r
123 defines { "_HAS_EXCEPTIONS=0" }
\r
126 -- Multithreaded compiling
\r
127 if _ACTION == "vs2010" then
\r
128 buildoptions { "/MP" }
\r
133 targetdir "../bin_html"
\r
137 dofile ("findOpenCL.lua")
\r
138 dofile ("findDirectX11.lua")
\r
142 location("./" .. act .. postfix)
\r
145 if _OPTIONS["with-dx11"] then
\r
146 include "../Demos/DX11ClothDemo"
\r
147 include "../src/BulletMultiThreaded/GpuSoftBodySolvers/DX11"
\r
150 --choose any OpenCL sdk that is installed on the system
\r
151 if _OPTIONS["with-opencl"] then
\r
152 include "../Demos/OpenCLClothDemo/AMD"
\r
153 include "../src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/AMD"
\r
154 include "../Demos/OpenCLClothDemo/NVidia"
\r
155 include "../src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/NVidia"
\r
156 include "../Demos/OpenCLClothDemo/Intel"
\r
157 include "../src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/Intel"
\r
160 --choose a particular OpenCL sdk, this is useful for distributing project files that just work for one OpenCL SDK
\r
161 if _OPTIONS["with-opencl-amd"] then
\r
162 include "../Demos/OpenCLClothDemo/AMD"
\r
163 include "../Demos/OpenGL"
\r
164 include "../Demos/SoftDemo/AMD"
\r
165 include "../src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/AMD"
\r
168 if _OPTIONS["with-opencl-intel"] then
\r
169 include "../Demos/OpenCLClothDemo/Intel"
\r
170 include "../src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/Intel"
\r
173 if _OPTIONS["with-opencl-nvidia"] then
\r
174 include "../Demos/OpenCLClothDemo/NVidia"
\r
175 include "../src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/NVidia"
\r
178 if not _OPTIONS["without-demos"] then
\r
179 if not _OPTIONS["ios"] then
\r
182 include "../Extras"
\r
186 if _OPTIONS["with-nacl"] then
\r
187 include "../Demos/NativeClient"
\r
189 include "../src/LinearMath"
\r
190 include "../src/BulletCollision"
\r
191 include "../src/BulletDynamics"
\r
192 include "../src/BulletSoftBody"
\r
196 include "../Demos/HelloWorld"
\r
197 include "../Demos/Benchmarks"
\r