Merge branch 'mingw' into 'main'

Cross-building with mingw & fixes

See merge request GNOME/gtk!4341
This commit is contained in:
Matthias Clasen 2022-08-19 11:06:10 +00:00
commit 3a8e45963f
2 changed files with 25 additions and 0 deletions

View File

@ -109,6 +109,29 @@ release-build:
- ninja -C _build
- .gitlab-ci/run-tests.sh _build x11
fedora-mingw64:
extends: .build-fedora-default
stage: build
needs: []
before_script:
- sudo dnf install -y
mingw64-filesystem
mingw64-gcc
mingw64-binutils
mingw64-cairo
mingw64-gdk-pixbuf
mingw64-gstreamer1-plugins-bad-free
mingw64-glib2
mingw64-libepoxy
mingw64-pango
# mingw64-graphene (rawhide)
script:
- .gitlab-ci/show-info-linux.sh
- meson subprojects update
- mkdir _build && cd _build
- mingw64-meson -Dintrospection=disabled -Dgraphene:introspection=disabled
- ninja
installed-tests:
extends: .build-fedora-default
stage: build

View File

@ -6,6 +6,8 @@ gtk_tests_export_dynamic_ldflag = []
if cc.get_id() != 'msvc'
if os_darwin
gtk_tests_export_dynamic_ldflag = ['-Wl,-export_dynamic']
elif os_win32
gtk_tests_export_dynamic_ldflag = ['-Wl,--export-all-symbols']
else
gtk_tests_export_dynamic_ldflag = ['-Wl,--export-dynamic']
endif