Forráskód Böngészése

chipmunk2d: support bsd (#4327)

M 1 éve
szülő
commit
07a84e8b5d
1 módosított fájl, 3 hozzáadás és 1 törlés
  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
         add_syslinks("pthread", "m")
+    elseif is_plat("bsd") then
+        add_syslinks("pthread", "m")
     elseif is_plat("android") then
         add_syslinks("log", "m")
     end
@@ -42,7 +44,7 @@ package("chipmunk2d")
         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"}
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         if package:config("shared") then