File: meson-Only-generate-typelib-and-install-win32-files-on-wi.patch

package info (click to toggle)
gobject-introspection 1.86.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 72,400 kB
  • sloc: ansic: 562,323; python: 23,750; xml: 16,240; yacc: 1,720; perl: 1,624; sh: 1,139; lex: 513; cpp: 487; makefile: 182; javascript: 15; lisp: 1
file content (31 lines) | stat: -rw-r--r-- 1,012 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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.