Pārlūkot izejas kodu

[AppVeyor] use Visual Studio to compile hashlink

Andy Li 7 gadi atpakaļ
vecāks
revīzija
f7bce200b5
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      tests/runci/targets/Hl.hx

+ 3 - 3
tests/runci/targets/Hl.hx

@@ -23,8 +23,8 @@ class Hl {
         runCommand("git", ["clone", "https://github.com/HaxeFoundation/hashlink.git", hlSrc]);
         runCommand("git", ["clone", "https://github.com/HaxeFoundation/hashlink.git", hlSrc]);
         var hlBuild = Path.join([Sys.getEnv("HOME"), "hashlink_build"]);
         var hlBuild = Path.join([Sys.getEnv("HOME"), "hashlink_build"]);
         FileSystem.createDirectory(hlBuild);
         FileSystem.createDirectory(hlBuild);
-        runCommand("cmake", [
-            "-GNinja",
+        var generator = systemName == "Windows" ? [] : ["-GNinja"];
+        runCommand("cmake", generator.concat([
             "-DBUILD_TESTING=OFF",
             "-DBUILD_TESTING=OFF",
             "-DWITH_BULLET=OFF",
             "-DWITH_BULLET=OFF",
             "-DWITH_DIRECTX=OFF",
             "-DWITH_DIRECTX=OFF",
@@ -38,7 +38,7 @@ class Hl {
             "-DWITH_VIDEO=OFF",
             "-DWITH_VIDEO=OFF",
             "-B" + hlBuild,
             "-B" + hlBuild,
             "-H" + hlSrc
             "-H" + hlSrc
-        ]);
+        ]));
         runCommand("cmake", [
         runCommand("cmake", [
             "--build", hlBuild
             "--build", hlBuild
         ]);
         ]);