2020-03-08 09:50:59 -04:00
|
|
|
launcherconf = configuration_data()
|
|
|
|
launcherconf.set('app_id', app_id)
|
2019-11-30 21:01:02 -05:00
|
|
|
launcherconf.set('PACKAGE_NAME', package_name)
|
2021-01-22 16:07:42 -05:00
|
|
|
if vcs_tag != ''
|
|
|
|
launcherconf.set('PACKAGE_VERSION', '@0@ (@1@)'.format(package_version, vcs_tag))
|
|
|
|
else
|
|
|
|
launcherconf.set('PACKAGE_VERSION', package_version)
|
|
|
|
endif
|
2020-03-08 09:50:59 -04:00
|
|
|
launcherconf.set('prefix', prefix)
|
|
|
|
launcherconf.set('libdir', libdir)
|
|
|
|
launcherconf.set('pkgdatadir', pkgdatadir)
|
2021-12-22 20:40:22 -05:00
|
|
|
launcherconf.set('gjs', gjs.full_path())
|
2020-03-08 09:50:59 -04:00
|
|
|
|
|
|
|
configure_file(
|
|
|
|
input: prgname + '.in',
|
|
|
|
output: prgname,
|
|
|
|
configuration: launcherconf,
|
|
|
|
install_dir: bindir,
|
|
|
|
install_mode: 'rwxr-xr-x',
|
|
|
|
)
|
|
|
|
|
|
|
|
configure_file(
|
2021-01-22 13:29:07 -05:00
|
|
|
input: base_id + '.in',
|
2020-03-08 09:50:59 -04:00
|
|
|
output: app_id,
|
|
|
|
configuration: launcherconf,
|
|
|
|
install_dir: pkgdatadir,
|
|
|
|
)
|
|
|
|
|
|
|
|
gnome.compile_resources(
|
|
|
|
app_id + '.src',
|
2021-01-22 13:29:07 -05:00
|
|
|
configure_file(
|
|
|
|
input: base_id + '.src.gresource.xml.in',
|
|
|
|
output: app_id + '.src.gresource.xml',
|
|
|
|
configuration: {'profile': '/'.join(profile.split('.')) },
|
|
|
|
),
|
2019-11-30 21:01:02 -05:00
|
|
|
source_dir: ['.', '../../../js'],
|
2020-03-08 09:50:59 -04:00
|
|
|
gresource_bundle: true,
|
|
|
|
install: true,
|
|
|
|
install_dir: pkgdatadir
|
|
|
|
)
|