From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <mail@3v1n0.net>
Date: Thu, 17 Jun 2021 13:51:47 +0200
Subject: meson: Only generate typelib and install win32 files on windows

There's no need to expose them in other platforms, but we do.

So only include the win32-1.0.gir in windows.

Forwarded: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/280
---
 gir/meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gir/meson.build b/gir/meson.build
index e5a7a13..9c396cc 100644
--- a/gir/meson.build
+++ b/gir/meson.build
@@ -10,9 +10,12 @@ gir_files = [
   {'name': 'xlib', 'file': 'xlib-2.0.gir' },
   {'name': 'xfixes', 'file': 'xfixes-4.0.gir' },
   {'name': 'xrandr', 'file': 'xrandr-1.3.gir' },
-  {'name': 'win32', 'file': 'win32-1.0.gir' },
 ]
 
+if host_system == 'windows'
+  gir_files += {'name': 'win32', 'file': 'win32-1.0.gir'}
+endif
+
 uninstalled_gir_files = []
 
 # Copy gir files to build directory to have them all in a single place.
