|
|
|
@ -7,6 +7,7 @@ package("bullet3") |
|
|
|
|
"https://github.com/bulletphysics/bullet3.git") |
|
|
|
|
add_versions("2.88", "f361d10961021a186b80821cfc1cfafc8dac48ce35f7d5e8de0943af4b3ddce4") |
|
|
|
|
add_versions("3.05", "e7ef322d8038e397cd6d79145a856cf5b4d558ce091d49b5239d625a46fef0d7") |
|
|
|
|
add_versions("3.09", "8443894e47167cf7f7b4433a365b428ebeb83ba64d64f2a741ec4d2da4992c3d") |
|
|
|
|
|
|
|
|
|
add_configs("double_precision", { description = "Enable double precision floats", default = false, type = "boolean"}) |
|
|
|
|
add_configs("extras", { description = "Build the extras", default = false, type = "boolean"}) |
|
|
|
@ -22,6 +23,7 @@ package("bullet3") |
|
|
|
|
table.insert(configs, "-DUSE_DOUBLE_PRECISION=" .. (package:config("double_precision") and "ON" or "OFF")) |
|
|
|
|
table.insert(configs, "-DBUILD_EXTRAS=" .. (package:config("extras") and "ON" or "OFF")) |
|
|
|
|
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) |
|
|
|
|
table.insert(configs, "-DUSE_MSVC_RUNTIME_LIBRARY_DLL=" .. (package:config("vs_runtime"):startswith("MD") and "ON" or "OFF")) |
|
|
|
|
import("package.tools.cmake").install(package, configs, {buildir = "build"}) |
|
|
|
|
|
|
|
|
|
os.cp("src/**.h", package:installdir("include", "bullet"), {rootdir = "src"}) |
|
|
|
|