
Now that we bumped our meson requirement, meson is complaining about several features now deprecated even in the minimum required meson version: s/meson.source_root/meson.project_source_root/ to fix: > WARNING: Project targets '>=0.56.0' but uses feature deprecated since '0.56.0': meson.source_root. use meson.project_source_root() or meson.global_source_root() instead. s/meson.build_root/meson.project_build_root/ to fix: > WARNING: Project targets '>=0.56.0' but uses feature deprecated since '0.56.0': meson.build_root. use meson.project_build_root() or meson.global_build_root() instead. Fixing using path() on xdg_email and python ExternalProgram variables: > WARNING: Project targets '>=0.56.0' but uses feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead s/get_pkgconfig_variable *(\([^)]*\))/get_variable(pkgconfig: \1)/ to fix: > WARNING: Project targets '>=0.56.0' but uses feature deprecated since '0.56.0': dependency.get_pkgconfig_variable. use dependency.get_variable(pkgconfig : ...) instead
77 lines
1.7 KiB
Meson
77 lines
1.7 KiB
Meson
sizes = [
|
|
'16',
|
|
'22',
|
|
'24',
|
|
'32',
|
|
'48',
|
|
'64',
|
|
'256',
|
|
]
|
|
|
|
foreach size : sizes
|
|
sizedir = size+'x'+size
|
|
install_data(sizedir / 'gimp.png',
|
|
install_dir: get_option('datadir') / 'icons' / 'hicolor' / sizedir / 'apps'
|
|
)
|
|
endforeach
|
|
install_data('scalable/gimp.svg',
|
|
install_dir: get_option('datadir') / 'icons' / 'hicolor' / 'scalable' / 'apps'
|
|
)
|
|
|
|
desktopfilename = 'gimp.desktop'
|
|
|
|
desktop_conf = configuration_data()
|
|
desktop_conf.set('GIMP_COMMAND', gimp_command)
|
|
desktop_conf.set('GIMP_VERSION', gimp_version)
|
|
desktop_conf.set('GIMP_APP_VERSION', gimp_app_version)
|
|
desktop_conf.set('MIME_TYPES', ';'.join(MIMEtypes))
|
|
desktop_conf.set('BUG_REPORT_URL', bug_report_url)
|
|
|
|
desktopfilein = configure_file(
|
|
input : desktopfilename+'.in.in',
|
|
output: desktopfilename+'.in',
|
|
configuration: desktop_conf,
|
|
)
|
|
|
|
desktopfile = i18n.merge_file(
|
|
input : desktopfilein,
|
|
output: desktopfilename,
|
|
type: 'desktop',
|
|
po_dir: po_dir,
|
|
install: true,
|
|
install_dir: get_option('datadir') / 'applications',
|
|
)
|
|
|
|
appdatafilename = 'org.gimp.GIMP.appdata.xml'
|
|
appdatafilein = configure_file(
|
|
input : appdatafilename+'.in.in',
|
|
output: appdatafilename+'.in',
|
|
configuration: desktop_conf,
|
|
)
|
|
appdatafile = i18n.merge_file(
|
|
input : appdatafilein,
|
|
output: appdatafilename,
|
|
po_dir: po_dir,
|
|
install: true,
|
|
install_dir: get_option('datadir') / 'metainfo',
|
|
)
|
|
|
|
if desktop_validate.found()
|
|
test('validate-desktop',
|
|
desktop_validate,
|
|
args: [ desktopfile ],
|
|
suite: 'desktop',
|
|
)
|
|
endif
|
|
|
|
if appstreamcli.found()
|
|
test('appdata_file',
|
|
appstreamcli,
|
|
args: [ 'validate', appdatafile ],
|
|
env: [
|
|
'GIMP_TESTING_ABS_TOP_BUILDDIR=' + meson.project_build_root(),
|
|
],
|
|
suite: 'desktop',
|
|
)
|
|
endif
|