gitlab-ci: Add a mingw x86_64 job
authorDylan Baker <dylan@pnwbakers.com>
Thu, 19 Sep 2019 17:21:51 +0000 (10:21 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 10 Oct 2019 23:33:05 +0000 (16:33 -0700)
Acked-by: Eric Engestrom <eric.engestrom@intel.com> (v1)
Acked-by: Kristian H. Kristensen <hoegsberg@google.com>
.gitlab-ci.yml
.gitlab-ci/debian-install.sh
.gitlab-ci/x86_64-w64-mingw32 [new file with mode: 0644]

index f245ee687c11e3b54ad2349274afbfb1c497ee7c..b5d2d2f2876b53a5f89b6caddeae1661ecf72e2a 100644 (file)
@@ -14,7 +14,7 @@
 # repository's registry will be used there as well.
 variables:
   UPSTREAM_REPO: mesa/mesa
-  DEBIAN_TAG: "2019-09-30"
+  DEBIAN_TAG: "2019-10-07_1"
   DEBIAN_ARM64_TAG: "arm64v8-2019-08-09"
   STRETCH_TAG: "2019-09-18"
   DEBIAN_VERSION: buster-slim
@@ -344,6 +344,17 @@ meson-i386:
       -D llvm=false
       -D osmesa=classic
 
+meson-mingw32-x86_64:
+  extends: .meson-build
+  variables:
+    UNWIND: "false"
+    DRI_DRIVERS: ""
+    GALLIUM_DRIVERS: "swrast"
+    EXTRA_OPTION: >
+      -Dllvm=false
+      -Dosmesa=gallium
+      --cross-file=.gitlab-ci/x86_64-w64-mingw32
+
 scons:
   extends: .scons-build
   variables:
index ef690ce830c2165cf9ca3395759ece253422614b..c874a892e7b869889227421993c3f1075f0efea4 100644 (file)
@@ -82,7 +82,12 @@ for arch in $CROSS_ARCHITECTURES; do
 done
 
 # for 64bit windows cross-builds
-apt-get install -y --no-remove mingw-w64
+apt-get install -y --no-remove \
+    mingw-w64 \
+    libz-mingw-w64-dev \
+    wine \
+    wine32 \
+    wine64
 
 # for the vulkan overlay layer
 wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip
diff --git a/.gitlab-ci/x86_64-w64-mingw32 b/.gitlab-ci/x86_64-w64-mingw32
new file mode 100644 (file)
index 0000000..f4346c8
--- /dev/null
@@ -0,0 +1,20 @@
+[binaries]
+c = ['ccache', 'x86_64-w64-mingw32-gcc']
+cpp = ['ccache', 'x86_64-w64-mingw32-g++']
+ar = 'x86_64-w64-mingw32-ar'
+strip = 'x86_64-w64-mingw32-strip'
+pkgconfig = 'x86_64-w64-mingw32-pkg-config'
+windres = 'x86_64-w64-mingw32-windres'
+exe_wrapper = ['wine64']
+
+[properties]
+needs_exe_wrapper = True
+sys_root = '/usr/x86_64-w64-mingw32/'
+
+[host_machine]
+system = 'windows'
+cpu_family = 'x86_64'
+cpu = 'x86_64'
+endian = 'little'
+
+; vim: ft=dosini