|
@@ -58,12 +58,12 @@ package("chipmunk2d")
|
|
if package:config("precision") == "double" then
|
|
if package:config("precision") == "double" then
|
|
opt.cxflags = {"-DCP_USE_DOUBLES=1"}
|
|
opt.cxflags = {"-DCP_USE_DOUBLES=1"}
|
|
if package:is_plat("macosx", "iphoneos") then
|
|
if package:is_plat("macosx", "iphoneos") then
|
|
- table.insert(opt.cxflags, "CP_USE_CGTYPES=1")
|
|
|
|
|
|
+ table.insert(opt.cxflags, "-DCP_USE_CGTYPES=1")
|
|
end
|
|
end
|
|
elseif package:config("precision") == "single" then
|
|
elseif package:config("precision") == "single" then
|
|
opt.cxflags = {"-DCP_USE_DOUBLES=0"}
|
|
opt.cxflags = {"-DCP_USE_DOUBLES=0"}
|
|
if package:is_plat("macosx", "iphoneos") then
|
|
if package:is_plat("macosx", "iphoneos") then
|
|
- table.insert(opt.cxflags, "CP_USE_CGTYPES=0")
|
|
|
|
|
|
+ table.insert(opt.cxflags, "-DCP_USE_CGTYPES=0")
|
|
end
|
|
end
|
|
end
|
|
end
|
|
import("package.tools.cmake").install(package, configs, opt)
|
|
import("package.tools.cmake").install(package, configs, opt)
|