zstd: add version for pkgconfig file. (#1083)

pull/1086/head
Chen Yufei 3 years ago committed by GitHub
parent 69cf2192d9
commit dac60710c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      packages/z/zstd/xmake.lua

@ -10,7 +10,8 @@ package("zstd")
add_versions("v1.5.2", "f7de13462f7a82c29ab865820149e778cbfe01087b3a55b5332707abf9db4a6e")
on_install(function (package)
io.writefile("xmake.lua", [[
io.writefile("xmake.lua", ([[
set_version("%s")
add_rules("mode.debug", "mode.release", "asm")
add_rules("utils.install.pkgconfig_importfiles", {filename = "libzstd.pc"})
target("zstd")
@ -30,7 +31,7 @@ package("zstd")
target:add("defines", "ZSTD_DISABLE_ASM")
end
end)
]])
]]):format(package:version_str()))
import("package.tools.xmake").install(package)
end)

Loading…
Cancel
Save