gflags: support all platforms. (#1019)

* gflags: support all platforms.

* trigger ci
pull/1020/head
Chen Yufei 3 years ago committed by GitHub
parent 52aefef01f
commit 582e787caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/g/gflags/xmake.lua

@ -12,12 +12,12 @@ package("gflags")
add_configs("mt", {description = "Build the multi-threaded gflags library.", default = false, type = "boolean"}) add_configs("mt", {description = "Build the multi-threaded gflags library.", default = false, type = "boolean"})
add_deps("cmake") add_deps("cmake")
if is_plat("windows") then if is_plat("windows", "mingw") then
add_syslinks("shlwapi") add_syslinks("shlwapi")
elseif is_plat("linux") then elseif is_plat("linux") then
add_syslinks("pthread") add_syslinks("pthread")
end end
on_install("windows", "linux", "macosx", function (package) on_install(function (package)
local configs = { local configs = {
"-DBUILD_TESTING=OFF", "-DBUILD_TESTING=OFF",
"-DGFLAGS_REGISTER_BUILD_DIR=OFF", "-DGFLAGS_REGISTER_BUILD_DIR=OFF",

Loading…
Cancel
Save