app, tools: fix build without iso-codes package.

This commit is contained in:
Jehan 2024-08-17 20:54:12 +02:00
parent 57d9f63ce4
commit 59eeae66fd
2 changed files with 20 additions and 15 deletions

View File

@ -17,10 +17,13 @@ stamp_widgets_enums = custom_target('stamp-widgets-enums.h',
build_by_default: true
)
gimp_language_store_data = custom_target('gimplanguagestore-data.h',
input: [ gen_languages ],
output: 'gimplanguagestore-data.h',
command: [ gen_languages ])
gimp_language_store_data = []
if isocodes.found()
gimp_language_store_data = custom_target('gimplanguagestore-data.h',
input: [ gen_languages ],
output: 'gimplanguagestore-data.h',
command: [ gen_languages ])
endif
libappwidgets_sources = [
'gimpaccellabel.c',

View File

@ -30,17 +30,19 @@ gimp_test_clipboard = executable('gimp-test-clipboard' + exec_ver,
install: true,
)
gen_languages = executable('gen-languages',
'gen-languages.c',
'../app/config/gimpxmlparser.c',
include_directories: [ rootInclude, appInclude ],
dependencies: [ gio, gegl ],
link_with: [ libgimpbase ],
c_args: [
'-DSRCDIR="@0@"'.format(meson.project_source_root()),
'-DISOCODES_LOCALEDIR="@0@"'.format(isocodes_localedir),
],
install: false)
if isocodes.found()
gen_languages = executable('gen-languages',
'gen-languages.c',
'../app/config/gimpxmlparser.c',
include_directories: [ rootInclude, appInclude ],
dependencies: [ gio, gegl ],
link_with: [ libgimpbase ],
c_args: [
'-DSRCDIR="@0@"'.format(meson.project_source_root()),
'-DISOCODES_LOCALEDIR="@0@"'.format(isocodes_localedir),
],
install: false)
endif
if enable_default_bin
if not platform_windows