|
@@ -14,7 +14,11 @@ package("libdicom")
|
|
|
end
|
|
|
add_deps("uthash")
|
|
|
|
|
|
- on_install("windows|!arm64", "linux", "macosx", "bsd", "mingw", "msys", "iphoneos", "cross", function (package)
|
|
|
+ if is_plat("linux", "wasm") then
|
|
|
+ add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
|
|
|
+ end
|
|
|
+
|
|
|
+ on_install("!android and (windows|!arm64 or !windows)", function (package)
|
|
|
local configs = {"-Dtests=false"}
|
|
|
table.insert(configs, "-Ddefault_library=" .. (package:config("shared") and "shared" or "static"))
|
|
|
import("package.tools.meson").install(package, configs)
|