|
1 | | -horrible hack to allow for both building the splash image and generating gir in cross-builds |
| 1 | +gimp tries to use target binaries without any exec wrapper that would let |
| 2 | +them be run on cross-builds |
2 | 3 |
|
3 | 4 | --- a/meson.build |
4 | 5 | +++ b/meson.build |
5 | | -@@ -1964,6 +1964,19 @@ |
| 6 | +@@ -2028,7 +2028,7 @@ |
6 | 7 | endif |
| 8 | + gimp_run_env.set('GIMP_PYTHON_WITH_GI', python.full_path()) |
7 | 9 |
|
8 | | - if meson.can_run_host_binaries() and have_gobject_introspection |
9 | | -+ if meson.is_cross_build() |
10 | | -+ native_gimp_exe = find_program([gimpconsole_exe_name, gimpmain_exe_name], |
11 | | -+ native: true, required: false) |
12 | | -+ native_gimp_run_env=environment() |
13 | | -+ native_gimp_run_env.set('GIMP_GLOBAL_BUILD_ROOT', meson.global_build_root()) |
14 | | -+ native_gimp_run_env.set('GIMP_GLOBAL_SOURCE_ROOT', meson.global_source_root()) |
15 | | -+ if get_option('debug-self-in-build') |
16 | | -+ native_gimp_run_env.set('GIMP_DEBUG_SELF', '1') |
17 | | -+ endif |
18 | | -+ native_gimp_run_env.set('GIMP_SELF_IN_BUILD', native_gimp_exe.full_path()) |
19 | | -+ native_gimp_exe_depends = [native_gimp_exe] |
20 | | -+ endif |
21 | | -+ |
| 10 | +-if meson.can_run_host_binaries() and have_gobject_introspection |
| 11 | ++if not meson.is_cross_build() and have_gobject_introspection |
22 | 12 | if enable_console_bin |
23 | 13 | gimp_real_exe = gimpconsole_exe |
24 | 14 | else |
25 | | ---- a/gimp-data/images/meson.build |
26 | | -+++ b/gimp-data/images/meson.build |
27 | | -@@ -1,18 +1,34 @@ |
28 | | - ## Splash Image and Welcome Dialog ## |
29 | | - |
30 | | --splash = custom_target('gimp-splash.png', |
31 | | -- input : [ 'export-splash.py' ], |
32 | | -- output: [ 'gimp-splash.png', ], |
33 | | -- depends: [ gimp_exe_depends ], |
34 | | -- command: [ gimp_exe, '-nidfs', |
35 | | -- files('gimp-splash.xcf.xz'), |
36 | | -- '--batch-interpreter', 'python-fu-eval', |
37 | | -- '-b', '-', '--quit'], |
38 | | -- feed: true, |
39 | | -- build_by_default: true, |
40 | | -- env: gimp_run_env, |
41 | | -- install_dir: gimpdatadir / 'images', |
42 | | -- install: true) |
43 | | -+if not meson.is_cross_build() |
44 | | -+ splash = custom_target('gimp-splash.png', |
45 | | -+ input : [ 'export-splash.py' ], |
46 | | -+ output: [ 'gimp-splash.png', ], |
47 | | -+ depends: [ gimp_exe_depends ], |
48 | | -+ command: [ gimp_exe, '-nidfs', |
49 | | -+ files('gimp-splash.xcf.xz'), |
50 | | -+ '--batch-interpreter', 'python-fu-eval', |
51 | | -+ '-b', '-', '--quit'], |
52 | | -+ feed: true, |
53 | | -+ build_by_default: true, |
54 | | -+ env: gimp_run_env, |
55 | | -+ install_dir: gimpdatadir / 'images', |
56 | | -+ install: true) |
57 | | -+else |
58 | | -+ splash = custom_target('gimp-splash.png', |
59 | | -+ input : [ 'export-splash.py' ], |
60 | | -+ output: [ 'gimp-splash.png', ], |
61 | | -+ depends: [], |
62 | | -+ command: [ gimp_exe, '-nidfs', |
63 | | -+ files('gimp-splash.xcf.xz'), |
64 | | -+ '--batch-interpreter', 'python-fu-eval', |
65 | | -+ '-b', '-', '--quit'], |
66 | | -+ feed: true, |
67 | | -+ build_by_default: true, |
68 | | -+ env: native_gimp_run_env, |
69 | | -+ install_dir: gimpdatadir / 'images', |
70 | | -+ install: true) |
71 | | -+endif |
72 | | - |
73 | | - ## Windows Installer's Splash Image and Intro Banner ## |
74 | | - |
0 commit comments