1 | local NV_BT_SFX = ""
|
---|
2 | if NV_RUNTIME == "dcrt" then
|
---|
3 | NV_BT_SFX = "_dcrt"
|
---|
4 | end
|
---|
5 |
|
---|
6 | function nv_bullet_configure( dir, subdir, suffix )
|
---|
7 | suffix = suffix or ""
|
---|
8 | links
|
---|
9 | {
|
---|
10 | "BulletCollision"..suffix..NV_BT_SFX,
|
---|
11 | "BulletDynamics"..suffix..NV_BT_SFX,
|
---|
12 | "BulletSoftBody"..suffix..NV_BT_SFX,
|
---|
13 | "LinearMath"..suffix..NV_BT_SFX,
|
---|
14 | }
|
---|
15 | libdirs { dir.."lib/"..subdir.."/" }
|
---|
16 | includedirs { dir.."src/" }
|
---|
17 | end
|
---|
18 |
|
---|
19 | project "nv-bullet"
|
---|
20 | location (_ACTION.."/"..NV_RUNTIME)
|
---|
21 | language "C++"
|
---|
22 | kind "StaticLib"
|
---|
23 | files { "nv/bullet/**.hh", "src/bullet/**.cc" }
|
---|
24 | includedirs {
|
---|
25 | "../nv"
|
---|
26 | }
|
---|
27 | links { "nv-core", "nv-gl", "nv-formats", "nv-lua", "nv-lib", "nv-io", "nv-gfx" }
|
---|
28 |
|
---|
29 | includedirs { "D:/Libraries/bullet2/src/" }
|
---|
30 |
|
---|
31 | filter { "configurations:debug", "platforms:*32" }
|
---|
32 | nv_bullet_configure( "D:/Libraries/bullet2/x86/", "RelWithDebInfo", "_rdbg" )
|
---|
33 | -- nv_bullet_configure( "D:/Libraries/bullet2/x86/", "Debug", "_debug" )
|
---|
34 |
|
---|
35 | filter { "configurations:profiler", "platforms:*32" }
|
---|
36 | nv_bullet_configure( "D:/Libraries/bullet2/x86/", "Release" )
|
---|
37 |
|
---|
38 | filter { "configurations:release", "platforms:*32" }
|
---|
39 | nv_bullet_configure( "D:/Libraries/bullet2/x86/", "Release" )
|
---|
40 |
|
---|
41 | filter { "configurations:debug", "platforms:*64" }
|
---|
42 | nv_bullet_configure( "D:/Libraries/bullet2/x86_64/", "RelWithDebInfo", "_rdbg" )
|
---|
43 | -- nv_bullet_configure( "D:/Libraries/bullet2/x86_64/", "Debug", "_debug" )
|
---|
44 |
|
---|
45 | filter { "configurations:profiler", "platforms:*64" }
|
---|
46 | nv_bullet_configure( "D:/Libraries/bullet2/x86_64/", "Release" )
|
---|
47 |
|
---|
48 | filter { "configurations:release", "platforms:*64" }
|
---|
49 | nv_bullet_configure( "D:/Libraries/bullet2/x86_64/", "Release" )
|
---|
50 |
|
---|
51 | filter {}
|
---|
52 |
|
---|