|
|
@ -24,6 +24,8 @@ package("chipmunk2d") |
|
|
|
|
|
|
|
|
|
|
|
if is_plat("linux") then |
|
|
|
if is_plat("linux") then |
|
|
|
add_syslinks("pthread", "m") |
|
|
|
add_syslinks("pthread", "m") |
|
|
|
|
|
|
|
elseif is_plat("bsd") then |
|
|
|
|
|
|
|
add_syslinks("pthread", "m") |
|
|
|
elseif is_plat("android") then |
|
|
|
elseif is_plat("android") then |
|
|
|
add_syslinks("log", "m") |
|
|
|
add_syslinks("log", "m") |
|
|
|
end |
|
|
|
end |
|
|
@ -42,7 +44,7 @@ package("chipmunk2d") |
|
|
|
end |
|
|
|
end |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
on_install("windows", "linux", "macosx", "iphoneos", "mingw", "android", "wasm", function (package) |
|
|
|
on_install("windows", "linux", "macosx", "iphoneos", "mingw", "android", "wasm", "bsd",function (package) |
|
|
|
local configs = {"-DBUILD_DEMOS=OFF"} |
|
|
|
local configs = {"-DBUILD_DEMOS=OFF"} |
|
|
|
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) |
|
|
|
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) |
|
|
|
if package:config("shared") then |
|
|
|
if package:config("shared") then |
|
|
|