|
|
|
@ -41,6 +41,11 @@ package("libdeflate") |
|
|
|
|
table.insert(configs, "-DLIBDEFLATE_BUILD_STATIC_LIB=" .. (package:config("shared") and "OFF" or "ON")) |
|
|
|
|
table.insert(configs, "-DLIBDEFLATE_BUILD_SHARED_LIB=" .. (package:config("shared") and "ON" or "OFF")) |
|
|
|
|
import("package.tools.cmake").install(package, configs) |
|
|
|
|
|
|
|
|
|
if package:is_plat("windows") and package:is_debug() then |
|
|
|
|
local dir = package:installdir(package:config("shared") and "bin" or "lib") |
|
|
|
|
os.trycp(path.join(package:buildir(), "deflate.pdb"), dir) |
|
|
|
|
end |
|
|
|
|
end) |
|
|
|
|
|
|
|
|
|
on_test(function (package) |
|
|
|
|