ruki 4 anni fa
parent
commit
fbed297097
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      packages/t/tbox/xmake.lua

+ 8 - 0
packages/t/tbox/xmake.lua

@@ -40,6 +40,11 @@ package("tbox")
         if package:debug() then
             package:add("defines", "__tb_debug__")
         end
+        for _, dep in ipairs({"mbedtls", "openssl", "sqlite3", "pcre2", "pcre", "mysql", "zlib"}) do
+            if package:config(dep) then
+                package:add("deps", dep)
+            end
+        end
     end)
 
     on_install(function (package)
@@ -63,6 +68,9 @@ package("tbox")
                 configs[name] = true
             end
         end
+        if not package:is_plat("windows", "mingw") and package:config("pic") ~= false then
+            configs.cxflags = "-fPIC"
+        end
         import("package.tools.xmake").install(package, configs)
     end)