Jelajahi Sumber

improve libxml2

ruki 5 tahun lalu
induk
melakukan
95f3d0eac6
1 mengubah file dengan 5 tambahan dan 8 penghapusan
  1. 5 8
      packages/l/libxml2/xmake.lua

+ 5 - 8
packages/l/libxml2/xmake.lua

@@ -23,14 +23,11 @@ package("libxml2")
         end
     end)
 
-    if is_plat("windows") and winos.version():gt("winxp") then
-        on_install("windows", function (package)
-            os.cd("win32")
-            os.vrun("cscript configure.js iso8859x=yes iconv=no compiler=msvc cruntime=/MT debug=%s prefix=\"%s\"", package:debug() and "yes" or "no", package:installdir())
-            os.vrun("nmake /f Makefile.msvc")
-            os.vrun("nmake /f Makefile.msvc install")
-        end)
-    end
+    on_install("windows", function (package)
+        os.cd("win32")
+        os.vrun("cscript configure.js iso8859x=yes iconv=no compiler=msvc cruntime=/MT debug=%s prefix=\"%s\"", package:debug() and "yes" or "no", package:installdir())
+        import("package.tools.nmake").install(package, {"/f", "Makefile.msvc"})
+    end)
 
     on_install("macosx", "linux", "iphoneos", "android", function (package)
         local configs = {"--disable-dependency-tracking",