glog: add platform android, iphoneos and cross. (#1020)

pull/1023/head
Chen Yufei 3 years ago committed by GitHub
parent dfa161a276
commit 059405a2c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/g/glog/xmake.lua

@ -15,7 +15,7 @@ package("glog")
end end
add_deps("cmake") add_deps("cmake")
on_load("windows", "linux", "macosx", function (package) on_load("windows", "linux", "macosx", "android", "iphoneos", "cross", function (package)
if package:is_plat("windows") and package:version():le("0.4") and not package:config("shared") then if package:is_plat("windows") and package:version():le("0.4") and not package:config("shared") then
package:add("defines", "GOOGLE_GLOG_DLL_DECL=") package:add("defines", "GOOGLE_GLOG_DLL_DECL=")
end end
@ -26,7 +26,7 @@ package("glog")
end end
end) end)
on_install("windows", "linux", "macosx", function (package) on_install("windows", "linux", "macosx", "android", "iphoneos", "cross", function (package)
local configs = {"-DBUILD_TESTING=OFF", "-DCMAKE_INSTALL_LIBDIR=lib"} local configs = {"-DBUILD_TESTING=OFF", "-DCMAKE_INSTALL_LIBDIR=lib"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF")) table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))

Loading…
Cancel
Save