[520] | 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 |
|
---|
[533] | 29 | includedirs { "D:/Libraries/bullet2/src/" }
|
---|
[551] | 30 |
|
---|
| 31 | filter { "configurations:debug", "platforms:*32" }
|
---|
[533] | 32 | nv_bullet_configure( "D:/Libraries/bullet2/x86/", "RelWithDebInfo", "_rdbg" )
|
---|
| 33 | -- nv_bullet_configure( "D:/Libraries/bullet2/x86/", "Debug", "_debug" )
|
---|
[520] | 34 |
|
---|
[551] | 35 | filter { "configurations:profiler", "platforms:*32" }
|
---|
[533] | 36 | nv_bullet_configure( "D:/Libraries/bullet2/x86/", "Release" )
|
---|
[520] | 37 |
|
---|
[551] | 38 | filter { "configurations:release", "platforms:*32" }
|
---|
[533] | 39 | nv_bullet_configure( "D:/Libraries/bullet2/x86/", "Release" )
|
---|
[520] | 40 |
|
---|
[551] | 41 | filter { "configurations:debug", "platforms:*64" }
|
---|
[533] | 42 | nv_bullet_configure( "D:/Libraries/bullet2/x86_64/", "RelWithDebInfo", "_rdbg" )
|
---|
| 43 | -- nv_bullet_configure( "D:/Libraries/bullet2/x86_64/", "Debug", "_debug" )
|
---|
| 44 |
|
---|
[551] | 45 | filter { "configurations:profiler", "platforms:*64" }
|
---|
[533] | 46 | nv_bullet_configure( "D:/Libraries/bullet2/x86_64/", "Release" )
|
---|
| 47 |
|
---|
[551] | 48 | filter { "configurations:release", "platforms:*64" }
|
---|
[533] | 49 | nv_bullet_configure( "D:/Libraries/bullet2/x86_64/", "Release" )
|
---|
| 50 |
|
---|
[551] | 51 | filter {}
|
---|
[533] | 52 |
|
---|