fix glog & folly (#4228)

pull/4232/head
ruki 6 months ago committed by GitHub
parent b7c6ef58e3
commit f7b851b181
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 13
      packages/g/glog/xmake.lua

@ -36,10 +36,6 @@ package("glog")
package:add("deps", dep)
end
end
if package:version():ge("0.7.0") then
package:add("defines", "GLOG_USE_GLOG_EXPORT")
end
end)
on_install(function (package)
@ -50,11 +46,18 @@ package("glog")
table.insert(configs, "-DWITH_" .. config:upper() .. "=" .. (package:config(config) and "ON" or "OFF"))
end
if package:is_plat("mingw") then
-- fix cmake try run
if package:is_plat("mingw") then
table.insert(configs, "-DHAVE_SYMBOLIZE_EXITCODE=ON")
end
import("package.tools.cmake").install(package, configs)
-- fix https://github.com/xmake-io/xmake-repo/discussions/4221
if package:version() and package:version():ge("0.7.0") then
io.replace(path.join(package:installdir("include"), "glog/logging.h"),
"#define GLOG_LOGGING_H", "#define GLOG_LOGGING_H\n#define GLOG_USE_GLOG_EXPORT", {plain = true})
end
end)
on_test(function (package)

Loading…
Cancel
Save