blob: 3a075de651184c28458d06c246610e6df0783fac [file] [log] [blame]
Patrick Williams03907ee2022-05-01 06:28:52 -05001From 179102310e9a3729fb5b00f2a7bf24b12f4a7a83 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Sat, 16 Apr 2022 20:04:14 +0200
4Subject: [PATCH] Allow building gir in cross environments
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9For us this works perfectly fine
10
11Upstream-Status: Inappropriate [OE-specific]
12
13Signed-off-by: Andreas MΓΌller <schnitzeltony@gmail.com>
Andrew Geissler517393d2023-01-13 08:55:19 -060014Signed-off-by: Markus Volk <f_l_k@t-online.de>
Patrick Williams03907ee2022-05-01 06:28:52 -050015
Andrew Geissler517393d2023-01-13 08:55:19 -060016--- a/meson.build 2022-09-18 14:48:53.000000000 +0200
17+++ b/meson.build 2022-11-26 14:05:13.302487232 +0100
18@@ -51,7 +51,7 @@
19 gen_locations_variant = find_program('build-aux/meson/gen_locations_variant.py')
Patrick Williams03907ee2022-05-01 06:28:52 -050020
21 g_ir_scanner = find_program('g-ir-scanner', required: get_option('introspection'))
22-build_gir = get_option('introspection') and g_ir_scanner.found() and not meson.is_cross_build()
23+build_gir = get_option('introspection') and g_ir_scanner.found()
Andrew Geissler517393d2023-01-13 08:55:19 -060024 build_docs = get_option('gtk_doc') and build_gir
Patrick Williams03907ee2022-05-01 06:28:52 -050025
Andrew Geissler517393d2023-01-13 08:55:19 -060026 schemas_srcdir = meson.project_source_root() / 'schemas'