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