Bläddra i källkod

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

Chen Yufei 3 år sedan
förälder
incheckning
059405a2c8
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      packages/g/glog/xmake.lua

+ 2 - 2
packages/g/glog/xmake.lua

@@ -15,7 +15,7 @@ package("glog")
     end
 
     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
             package:add("defines", "GOOGLE_GLOG_DLL_DECL=")
         end
@@ -26,7 +26,7 @@ package("glog")
         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"}
         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"))