Explorar o código

chipmunk2d: support bsd (#4327)

M hai 1 ano
pai
achega
07a84e8b5d
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      packages/c/chipmunk2d/xmake.lua

+ 3 - 1
packages/c/chipmunk2d/xmake.lua

@@ -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