Selaa lähdekoodia

improve autotools

star9029 1 vuosi sitten
vanhempi
commit
8c7116a5ec
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  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

@@ -7,7 +7,7 @@ if is_plat("windows", "mingw") and (not is_subhost("msys")) then
     add_includedirs("vc++")
 end
 
-if is_plat("windows") then
+if is_plat("windows") and has_config("tools") then
     add_requires("strings_h")
 end
 

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

@@ -26,7 +26,7 @@ package("liba52")
         add_syslinks("m")
     end
 
-    if not (is_plat("windows") or (is_plat("mingw") and is_subhost("msys"))) then
+    if is_subhost("msys") or (not is_plat("windows", "mingw")) then
         add_deps("autoconf", "automake", "libtool", "m4")
     end
 
@@ -37,7 +37,7 @@ package("liba52")
     end)
 
     on_install(function (package)
-        if not (is_plat("windows") or (is_plat("mingw") and is_subhost("msys"))) then
+        if  is_subhost("msys") or (not is_plat("windows", "mingw")) then
             -- Generate config.h by autotools
             os.vrun("./configure")
         end