mirror of https://github.com/GNOME/gimp.git
meson: pass the executable name to `gimp-data` to build gimp.ico.
Note that the executables are not built yet at this point, but we just need to pass the name for configuration. The gimp.ico generation step is run manually anyway and requires a fully functional and installed GIMP. See commit gimp-data@40d4822.
This commit is contained in:
parent
cbdd45723a
commit
67f5dd0df8
|
@ -198,7 +198,7 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if enable_console_bin
|
if enable_console_bin
|
||||||
gimpconsole_exe = executable('gimp-console' + exec_ver,
|
gimpconsole_exe = executable(gimpconsole_exe_name,
|
||||||
'main.c',
|
'main.c',
|
||||||
libapp_sources,
|
libapp_sources,
|
||||||
console_rc_file,
|
console_rc_file,
|
||||||
|
@ -217,7 +217,7 @@ if enable_console_bin
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
gimpmain_exe = executable('gimp' + exec_ver,
|
gimpmain_exe = executable(gimpmain_exe_name,
|
||||||
'main.c',
|
'main.c',
|
||||||
gui_rc_file,
|
gui_rc_file,
|
||||||
c_args: libapp_c_args,
|
c_args: libapp_c_args,
|
||||||
|
|
10
meson.build
10
meson.build
|
@ -104,6 +104,9 @@ prefix = get_option('prefix')
|
||||||
buildtype = get_option('buildtype')
|
buildtype = get_option('buildtype')
|
||||||
exec_ver = '-' + gimp_app_version
|
exec_ver = '-' + gimp_app_version
|
||||||
|
|
||||||
|
gimpconsole_exe_name = 'gimp-console' + exec_ver
|
||||||
|
gimpmain_exe_name = 'gimp' + exec_ver
|
||||||
|
|
||||||
compiler_args = []
|
compiler_args = []
|
||||||
linker_args = []
|
linker_args = []
|
||||||
|
|
||||||
|
@ -1818,10 +1821,17 @@ subdir('etc')
|
||||||
subdir('menus')
|
subdir('menus')
|
||||||
subdir('themes')
|
subdir('themes')
|
||||||
|
|
||||||
|
if enable_console_bin
|
||||||
|
gimp_exe_name=gimpconsole_exe_name
|
||||||
|
else
|
||||||
|
gimp_exe_name=gimpmain_exe_name
|
||||||
|
endif
|
||||||
|
|
||||||
# Loading gimp-data subproject, the versions must be in sync.
|
# Loading gimp-data subproject, the versions must be in sync.
|
||||||
gimp_data = subproject('gimp-data', version: '=' + gimp_version,
|
gimp_data = subproject('gimp-data', version: '=' + gimp_version,
|
||||||
default_options: [
|
default_options: [
|
||||||
'gimp-datadir=' + gimpdatadir,
|
'gimp-datadir=' + gimpdatadir,
|
||||||
|
'gimp-exe=' + gimp_exe_name,
|
||||||
])
|
])
|
||||||
icons_imgs_sources = gimp_data.get_variable('icons_imgs_sources')
|
icons_imgs_sources = gimp_data.get_variable('icons_imgs_sources')
|
||||||
icons_core_sources = gimp_data.get_variable('icons_core_sources')
|
icons_core_sources = gimp_data.get_variable('icons_core_sources')
|
||||||
|
|
Loading…
Reference in New Issue