summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Port-cross-compilation-support-to-meson.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Port-cross-compilation-support-to-meson.patch')
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Port-cross-compilation-support-to-meson.patch20
1 files changed, 10 insertions, 10 deletions
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Port-cross-compilation-support-to-meson.patch b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Port-cross-compilation-support-to-meson.patch
index 5747d61c19..639f9c8f61 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Port-cross-compilation-support-to-meson.patch
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Port-cross-compilation-support-to-meson.patch
@@ -1,4 +1,4 @@
1From 2b3bce1526b538dc2c7fa223eaf9808858aa1b06 Mon Sep 17 00:00:00 2001 1From 0417a1bb08745f2bf5310d20b342c2b3b9b212d3 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 15 Nov 2018 15:10:05 +0100 3Date: Thu, 15 Nov 2018 15:10:05 +0100
4Subject: [PATCH] Port cross-compilation support to meson 4Subject: [PATCH] Port cross-compilation support to meson
@@ -13,10 +13,10 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
13 3 files changed, 68 insertions(+), 18 deletions(-) 13 3 files changed, 68 insertions(+), 18 deletions(-)
14 14
15diff --git a/gir/meson.build b/gir/meson.build 15diff --git a/gir/meson.build b/gir/meson.build
16index 85ae575..327c134 100644 16index c312100..a028033 100644
17--- a/gir/meson.build 17--- a/gir/meson.build
18+++ b/gir/meson.build 18+++ b/gir/meson.build
19@@ -36,16 +36,29 @@ gir_files = [ 19@@ -41,16 +41,29 @@ gir_files = [
20 typelibdir = join_paths(get_option('libdir'), 'girepository-1.0') 20 typelibdir = join_paths(get_option('libdir'), 'girepository-1.0')
21 install_data(gir_files, install_dir: girdir) 21 install_data(gir_files, install_dir: girdir)
22 22
@@ -56,7 +56,7 @@ index 85ae575..327c134 100644
56 56
57 dep_type = glib_dep.type_name() 57 dep_type = glib_dep.type_name()
58 if dep_type == 'internal' 58 if dep_type == 'internal'
59@@ -58,6 +71,12 @@ if dep_type == 'internal' 59@@ -63,6 +76,12 @@ if dep_type == 'internal'
60 '--extra-library=glib-2.0', '--extra-library=gobject-2.0'] 60 '--extra-library=glib-2.0', '--extra-library=gobject-2.0']
61 endif 61 endif
62 62
@@ -69,7 +69,7 @@ index 85ae575..327c134 100644
69 # Take a glob and print to newlines 69 # Take a glob and print to newlines
70 globber = ''' 70 globber = '''
71 from glob import glob 71 from glob import glob
72@@ -84,8 +103,8 @@ glib_command = scanner_command + [ 72@@ -89,8 +108,8 @@ glib_command = scanner_command + [
73 73
74 if dep_type == 'pkgconfig' 74 if dep_type == 'pkgconfig'
75 glib_command += ['--external-library', '--pkg=glib-2.0'] 75 glib_command += ['--external-library', '--pkg=glib-2.0']
@@ -80,8 +80,8 @@ index 85ae575..327c134 100644
80 glib_libincdir = join_paths(glib_libdir, 'glib-2.0', 'include') 80 glib_libincdir = join_paths(glib_libdir, 'glib-2.0', 'include')
81 glib_files += join_paths(glib_incdir, 'gobject', 'glib-types.h') 81 glib_files += join_paths(glib_incdir, 'gobject', 'glib-types.h')
82 glib_files += join_paths(glib_libincdir, 'glibconfig.h') 82 glib_files += join_paths(glib_libincdir, 'glibconfig.h')
83@@ -339,7 +358,7 @@ endforeach 83@@ -345,7 +364,7 @@ if giounix_dep.found()
84 if giounix_dep.found() 84 dep_type = giounix_dep.type_name()
85 if dep_type == 'pkgconfig' 85 if dep_type == 'pkgconfig'
86 gio_command += ['--pkg=gio-unix-2.0'] 86 gio_command += ['--pkg=gio-unix-2.0']
87- giounix_includedir = join_paths(giounix_dep.get_pkgconfig_variable('includedir'), 'gio-unix-2.0') 87- giounix_includedir = join_paths(giounix_dep.get_pkgconfig_variable('includedir'), 'gio-unix-2.0')
@@ -89,7 +89,7 @@ index 85ae575..327c134 100644
89 # Get the installed gio-unix header list 89 # Get the installed gio-unix header list
90 ret = run_command(python, '-c', globber.format(join_paths(giounix_includedir, 'gio', '*.h'))) 90 ret = run_command(python, '-c', globber.format(join_paths(giounix_includedir, 'gio', '*.h')))
91 if ret.returncode() != 0 91 if ret.returncode() != 0
92@@ -422,15 +441,24 @@ gir_files += custom_target('gir-girepository', 92@@ -428,15 +447,24 @@ gir_files += custom_target('gir-girepository',
93 ) 93 )
94 94
95 typelibs = [] 95 typelibs = []
@@ -119,10 +119,10 @@ index 85ae575..327c134 100644
119 install_dir: typelibdir, 119 install_dir: typelibdir,
120 ) 120 )
121diff --git a/meson.build b/meson.build 121diff --git a/meson.build b/meson.build
122index 95bbd2b..f7baefd 100644 122index a5e825f..a28490a 100644
123--- a/meson.build 123--- a/meson.build
124+++ b/meson.build 124+++ b/meson.build
125@@ -163,7 +163,9 @@ endif 125@@ -168,7 +168,9 @@ endif
126 subdir('girepository') 126 subdir('girepository')
127 subdir('tools') 127 subdir('tools')
128 subdir('giscanner') 128 subdir('giscanner')