瀏覽代碼

libuuid: support more platform (#7074)

* libuuid: support more platform

* limit windows
star9029 3 月之前
父節點
當前提交
177da0283d
共有 1 個文件被更改,包括 2 次插入6 次删除
  1. 2 6
      packages/l/libuuid/xmake.lua

+ 2 - 6
packages/l/libuuid/xmake.lua

@@ -9,7 +9,7 @@ package("libuuid")
 
     add_versions("1.0.3", "46af3275291091009ad7f1b899de3d0cea0252737550e7919d17237997db5644")
 
-    on_install("linux", "macosx", "bsd", "android", "iphoneos", "wasm", "cross", function(package)
+    on_install("!windows and !mingw", function(package)
         io.writefile("xmake.lua", [[
             includes("@builtin/check")
             add_rules("mode.debug", "mode.release")
@@ -42,11 +42,7 @@ package("libuuid")
                 check_cfuncs("HAVE_STRTOUL", "strtoul", {includes = "stdlib.h"})
                 check_cfuncs("HAVE_USLEEP", "usleep", {includes = "unistd.h"})
         ]])
-        local configs = {}
-        if package:config("shared") then
-            configs.kind = "shared"
-        end
-        import("package.tools.xmake").install(package, configs)
+        import("package.tools.xmake").install(package)
     end)
 
     on_test(function(package)