2013-03-11 21:03:27 +00:00
|
|
|
|
|
|
|
solution "0MySolution"
|
|
|
|
|
|
|
|
-- Multithreaded compiling
|
|
|
|
if _ACTION == "vs2010" or _ACTION=="vs2008" then
|
|
|
|
buildoptions { "/MP" }
|
|
|
|
end
|
|
|
|
|
|
|
|
act = ""
|
|
|
|
|
|
|
|
if _ACTION then
|
|
|
|
act = _ACTION
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
newoption
|
|
|
|
{
|
|
|
|
trigger = "ios",
|
|
|
|
description = "Enable iOS target (requires xcode4)"
|
|
|
|
}
|
|
|
|
|
2013-05-01 01:17:44 +00:00
|
|
|
newoption
|
|
|
|
{
|
|
|
|
trigger = "bullet2gpu",
|
|
|
|
description = "Enable Bullet 2.x GPU using b3GpuDynamicsWorld bridge to Bullet 3.x"
|
|
|
|
}
|
2013-05-05 02:50:56 +00:00
|
|
|
|
|
|
|
newoption
|
|
|
|
{
|
|
|
|
trigger = "enet",
|
|
|
|
description = "Enable enet NAT punchthrough test"
|
|
|
|
}
|
2013-03-11 21:03:27 +00:00
|
|
|
|
|
|
|
configurations {"Release", "Debug"}
|
|
|
|
configuration "Release"
|
2013-07-30 19:37:16 +00:00
|
|
|
flags { "Optimize", "EnableSSE2","StaticRuntime", "NoMinimalRebuild", "FloatFast"}
|
2013-03-11 21:03:27 +00:00
|
|
|
configuration "Debug"
|
|
|
|
defines {"_DEBUG=1"}
|
|
|
|
flags { "Symbols", "StaticRuntime" , "NoMinimalRebuild", "NoEditAndContinue" ,"FloatFast"}
|
|
|
|
|
2013-03-14 00:38:16 +00:00
|
|
|
if os.is("Linux") then
|
|
|
|
if os.is64bit() then
|
|
|
|
platforms {"x64"}
|
|
|
|
else
|
|
|
|
platforms {"x32"}
|
|
|
|
end
|
|
|
|
else
|
|
|
|
platforms {"x32", "x64"}
|
|
|
|
end
|
2013-03-11 21:03:27 +00:00
|
|
|
|
|
|
|
configuration {"x32"}
|
|
|
|
targetsuffix ("_" .. act)
|
|
|
|
configuration "x64"
|
|
|
|
targetsuffix ("_" .. act .. "_64" )
|
|
|
|
configuration {"x64", "debug"}
|
|
|
|
targetsuffix ("_" .. act .. "_x64_debug")
|
|
|
|
configuration {"x64", "release"}
|
|
|
|
targetsuffix ("_" .. act .. "_x64_release" )
|
|
|
|
configuration {"x32", "debug"}
|
|
|
|
targetsuffix ("_" .. act .. "_debug" )
|
|
|
|
|
|
|
|
configuration{}
|
|
|
|
|
|
|
|
postfix=""
|
|
|
|
|
|
|
|
if _ACTION == "xcode4" then
|
|
|
|
if _OPTIONS["ios"] then
|
|
|
|
postfix = "ios";
|
|
|
|
xcodebuildsettings
|
|
|
|
{
|
|
|
|
'CODE_SIGN_IDENTITY = "iPhone Developer"',
|
|
|
|
"SDKROOT = iphoneos",
|
|
|
|
'ARCHS = "armv7"',
|
|
|
|
'TARGETED_DEVICE_FAMILY = "1,2"',
|
|
|
|
'VALID_ARCHS = "armv7"',
|
|
|
|
}
|
|
|
|
else
|
|
|
|
xcodebuildsettings
|
|
|
|
{
|
|
|
|
'ARCHS = "$(ARCHS_STANDARD_32_BIT) $(ARCHS_STANDARD_64_BIT)"',
|
|
|
|
'VALID_ARCHS = "x86_64 i386"',
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
flags { "NoRTTI", "NoExceptions"}
|
|
|
|
defines { "_HAS_EXCEPTIONS=0" }
|
|
|
|
targetdir "../bin"
|
|
|
|
location("./" .. act .. postfix)
|
|
|
|
|
|
|
|
|
|
|
|
projectRootDir = os.getcwd() .. "/../"
|
|
|
|
print("Project root directroy: " .. projectRootDir);
|
|
|
|
|
|
|
|
dofile ("findOpenCL.lua")
|
|
|
|
dofile ("findDirectX11.lua")
|
|
|
|
dofile ("findOpenGLGlewGlut.lua")
|
|
|
|
|
|
|
|
language "C++"
|
|
|
|
|
2013-07-31 00:00:50 +00:00
|
|
|
if not _OPTIONS["ios"] then
|
|
|
|
|
2013-11-09 20:12:33 +00:00
|
|
|
|
2013-07-31 00:00:50 +00:00
|
|
|
include "../Demos3/GpuDemos"
|
2013-11-09 20:12:33 +00:00
|
|
|
-- include "../Demos3/CpuDemos"
|
|
|
|
|
2013-07-18 22:55:38 +00:00
|
|
|
include "../Demos3/Wavefront"
|
2013-07-19 04:18:09 +00:00
|
|
|
include "../btgui/MultiThreading"
|
2013-11-09 20:12:33 +00:00
|
|
|
include "../Demos3/ImplicitCloth"
|
2013-07-31 00:00:50 +00:00
|
|
|
|
2013-04-30 02:04:08 +00:00
|
|
|
-- include "../demo/gpudemo"
|
|
|
|
-- include "../btgui/MidiTest"
|
2013-03-30 07:14:46 +00:00
|
|
|
-- include "../opencl/vector_add_simplified"
|
|
|
|
-- include "../opencl/vector_add"
|
2013-03-13 06:52:31 +00:00
|
|
|
include "../btgui/Gwen"
|
|
|
|
include "../btgui/GwenOpenGLTest"
|
2013-05-21 00:58:19 +00:00
|
|
|
include "../test/clew"
|
2013-05-21 01:09:02 +00:00
|
|
|
include "../Demos3/GpuGuiInitialize"
|
2013-07-18 22:55:38 +00:00
|
|
|
|
2013-04-30 02:04:08 +00:00
|
|
|
include "../test/OpenCL/BasicInitialize"
|
2013-08-08 19:24:09 +00:00
|
|
|
include "../test/OpenCL/KernelLaunch"--
|
2013-08-08 20:28:23 +00:00
|
|
|
-- include "../test/OpenCL/BroadphaseCollision"
|
2013-04-30 05:25:12 +00:00
|
|
|
-- include "../test/OpenCL/NarrowphaseCollision"
|
2013-04-30 18:40:09 +00:00
|
|
|
include "../test/OpenCL/ParallelPrimitives"
|
|
|
|
include "../test/OpenCL/RadixSortBenchmark"
|
|
|
|
include "../test/OpenCL/BitonicSort"
|
2013-04-30 02:04:08 +00:00
|
|
|
|
2013-04-19 06:28:13 +00:00
|
|
|
include "../src/Bullet3Dynamics"
|
|
|
|
include "../src/Bullet3Common"
|
|
|
|
include "../src/Bullet3Geometry"
|
|
|
|
include "../src/Bullet3Collision"
|
2013-04-23 23:07:17 +00:00
|
|
|
include "../src/Bullet3Serialize/Bullet2FileLoader"
|
2013-04-30 02:04:08 +00:00
|
|
|
|
|
|
|
include "../src/Bullet3OpenCL"
|
2013-07-31 00:00:50 +00:00
|
|
|
|
2013-05-05 02:50:56 +00:00
|
|
|
|
2013-04-30 02:04:08 +00:00
|
|
|
|
|
|
|
-- include "../demo/gpu_initialize"
|
|
|
|
-- include "../opencl/lds_bank_conflict"
|
|
|
|
-- include "../opencl/reduce"
|
2013-06-26 23:09:40 +00:00
|
|
|
include "../btgui/OpenGLTrueTypeFont"
|
2013-04-30 02:04:08 +00:00
|
|
|
-- include "../btgui/OpenGLWindow"
|
|
|
|
-- include "../demo/ObjLoader"
|
|
|
|
|
2013-04-23 23:07:17 +00:00
|
|
|
|
2013-04-30 02:04:08 +00:00
|
|
|
-- include "../test/b3DynamicBvhBroadphase"
|
2013-03-11 21:03:27 +00:00
|
|
|
|
2013-05-05 02:50:56 +00:00
|
|
|
if _OPTIONS["enet"] then
|
|
|
|
include "../btgui/enet"
|
|
|
|
include "../test/enet/server"
|
|
|
|
include "../test/enet/client"
|
|
|
|
end
|
2013-05-01 01:17:44 +00:00
|
|
|
|
|
|
|
|
2013-08-08 19:24:09 +00:00
|
|
|
|
2013-05-01 01:17:44 +00:00
|
|
|
if _OPTIONS["bullet2gpu"] then
|
|
|
|
include "../src/LinearMath"
|
|
|
|
include "../src/BulletCollision"
|
|
|
|
include "../src/BulletDynamics"
|
|
|
|
include "../src/BulletSoftBody"
|
|
|
|
include "../Demos/HelloWorld"
|
|
|
|
|
|
|
|
include "../Demos3"
|
2013-03-14 00:38:16 +00:00
|
|
|
end
|
2013-05-01 01:17:44 +00:00
|
|
|
|
|
|
|
end
|