star9029 1 рік тому
батько
коміт
0c38b4e467
2 змінених файлів з 3 додано та 3 видалено
  1. 1 1
      packages/l/liba52/port/xmake.lua
  2. 2 2
      packages/l/liba52/xmake.lua

+ 1 - 1
packages/l/liba52/port/xmake.lua

@@ -3,7 +3,7 @@ option("tools", {default = false})
 add_rules("mode.debug", "mode.release")
 
 add_includedirs("include")
-if is_plat("windows", "mingw") and (not is_subhost("msys")) then
+if is_plat("windows", "mingw") or is_host("windows") then
     add_includedirs("vc++")
 end
 

+ 2 - 2
packages/l/liba52/xmake.lua

@@ -36,8 +36,8 @@ package("liba52")
         end
     end)
 
-    on_install(function (package)
-        if is_subhost("msys") or (not is_host("windows"))then
+    on_install("!iphoneos", function (package)
+        if not is_host("windows")then
             -- Generate config.h by autotools
             local configs = {}
             if package:is_plat("android", "bsd", "wasm") then