brotli: add version for pkgconfig file. (#1084)

pull/1086/head
Chen Yufei 3 years ago committed by GitHub
parent dac60710c4
commit 4b57a224b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      packages/b/brotli/port/xmake.lua
  2. 2
      packages/b/brotli/xmake.lua

@ -1,5 +1,14 @@
add_rules("mode.debug", "mode.release")
option("vers")
set_default("")
set_showmenu(true)
option_end()
if has_config("vers") then
set_version(get_config("vers"))
end
target("brotlienc")
set_kind("$(kind)")
add_deps("brotlicommon")

@ -50,7 +50,7 @@ package("brotli")
on_install(function (package)
os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua")
local configs = {buildir = "xbuild"}
local configs = {buildir = "xbuild", vers = package:version_str()}
if package:config("shared") then
configs.kind = "shared"
end

Loading…
Cancel
Save