diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-02-18 13:41:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-19 16:14:57 +0000 |
commit | 3b988a1ed233e7059157a4ae38a48bfaf8b92d2e (patch) | |
tree | c119d562470735ccb07af1a06e0ca9edea8840aa /meta/recipes-devtools/meson | |
parent | 85a4d9f53be0f2f17f51f90caa9dfafa3b83ac13 (diff) | |
download | poky-3b988a1ed233e7059157a4ae38a48bfaf8b92d2e.tar.gz |
meson: add a couple of patches to help with mingw builds
(From OE-Core rev: ee32c312d01f4abfca2d2587d7a3a7e0115f779c)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/meson')
3 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-devtools/meson/meson.inc b/meta/recipes-devtools/meson/meson.inc index d37afc3b0d..c39b1a3d5e 100644 --- a/meta/recipes-devtools/meson/meson.inc +++ b/meta/recipes-devtools/meson/meson.inc | |||
@@ -12,6 +12,8 @@ SRC_URI = "https://github.com/mesonbuild/meson/releases/download/${PV}/meson-${P | |||
12 | file://0001-python-module-do-not-manipulate-the-environment-when.patch \ | 12 | file://0001-python-module-do-not-manipulate-the-environment-when.patch \ |
13 | file://disable-rpath-handling.patch \ | 13 | file://disable-rpath-handling.patch \ |
14 | file://cross-libdir.patch \ | 14 | file://cross-libdir.patch \ |
15 | file://0001-modules-windows-split-WINDRES-env-variable.patch \ | ||
16 | file://0002-environment.py-detect-windows-also-if-the-system-str.patch \ | ||
15 | " | 17 | " |
16 | SRC_URI[sha256sum] = "fb0395c4ac208eab381cd1a20571584bdbba176eb562a7efa9cb17cace0e1551" | 18 | SRC_URI[sha256sum] = "fb0395c4ac208eab381cd1a20571584bdbba176eb562a7efa9cb17cace0e1551" |
17 | SRC_URI[md5sum] = "3c35b91e8040901034809576d54007c6" | 19 | SRC_URI[md5sum] = "3c35b91e8040901034809576d54007c6" |
diff --git a/meta/recipes-devtools/meson/meson/0001-modules-windows-split-WINDRES-env-variable.patch b/meta/recipes-devtools/meson/meson/0001-modules-windows-split-WINDRES-env-variable.patch new file mode 100644 index 0000000000..c334e6dd66 --- /dev/null +++ b/meta/recipes-devtools/meson/meson/0001-modules-windows-split-WINDRES-env-variable.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From 5293d0f5067b2aeefe9ce3c175c972de367589bc Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Wed, 13 Feb 2019 17:43:54 +0100 | ||
4 | Subject: [PATCH] modules/windows: split WINDRES env variable | ||
5 | |||
6 | As it may contain not just the binary, but also the arguments to it. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
10 | --- | ||
11 | mesonbuild/modules/windows.py | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py | ||
15 | index d185d89..dbaeb9b 100644 | ||
16 | --- a/mesonbuild/modules/windows.py | ||
17 | +++ b/mesonbuild/modules/windows.py | ||
18 | @@ -56,7 +56,7 @@ class WindowsModule(ExtensionModule): | ||
19 | if 'WINDRES' in os.environ: | ||
20 | # Pick-up env var WINDRES if set. This is often used for | ||
21 | # specifying an arch-specific windres. | ||
22 | - rescomp = ExternalProgram('windres', command=os.environ.get('WINDRES'), silent=True) | ||
23 | + rescomp = ExternalProgram('windres', command=os.environ.get('WINDRES').split(), silent=True) | ||
24 | |||
25 | if not rescomp or not rescomp.found(): | ||
26 | # Take windres from the config file after the environment, which is | ||
diff --git a/meta/recipes-devtools/meson/meson/0002-environment.py-detect-windows-also-if-the-system-str.patch b/meta/recipes-devtools/meson/meson/0002-environment.py-detect-windows-also-if-the-system-str.patch new file mode 100644 index 0000000000..1be5d66329 --- /dev/null +++ b/meta/recipes-devtools/meson/meson/0002-environment.py-detect-windows-also-if-the-system-str.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 7bf4c2c02eb7fe1bf24b23e3ba2d7df36495e0aa Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Wed, 13 Feb 2019 17:45:09 +0100 | ||
4 | Subject: [PATCH] environment.py: detect windows also if the system string | ||
5 | contains 'mingw' | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
9 | --- | ||
10 | mesonbuild/environment.py | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py | ||
14 | index b4fc0dc..845077e 100644 | ||
15 | --- a/mesonbuild/environment.py | ||
16 | +++ b/mesonbuild/environment.py | ||
17 | @@ -1247,7 +1247,7 @@ class MachineInfo: | ||
18 | """ | ||
19 | Machine is windows? | ||
20 | """ | ||
21 | - return self.system == 'windows' | ||
22 | + return self.system == 'windows' or 'mingw' in self.system | ||
23 | |||
24 | def is_cygwin(self): | ||
25 | """ | ||