c67614b522
We currently include a fake config.js file to satisfy the indirect import from ExtensionUtils. However we're about to need to pass build-time information into the program ourselves, so generate a proper file. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2841>
43 lines
1.1 KiB
Meson
43 lines
1.1 KiB
Meson
launcherconf = configuration_data()
|
|
launcherconf.set('app_id', app_id)
|
|
launcherconf.set('PACKAGE_NAME', package_name)
|
|
if vcs_tag != ''
|
|
launcherconf.set('PACKAGE_VERSION', '@0@ (@1@)'.format(package_version, vcs_tag))
|
|
else
|
|
launcherconf.set('PACKAGE_VERSION', package_version)
|
|
endif
|
|
launcherconf.set('prefix', prefix)
|
|
launcherconf.set('libdir', libdir)
|
|
launcherconf.set('pkgdatadir', pkgdatadir)
|
|
launcherconf.set('gjs', gjs.full_path())
|
|
|
|
configure_file(
|
|
input: prgname + '.in',
|
|
output: prgname,
|
|
configuration: launcherconf,
|
|
install_dir: bindir,
|
|
install_mode: 'rwxr-xr-x',
|
|
)
|
|
|
|
configure_file(
|
|
input: base_id + '.in',
|
|
output: app_id,
|
|
configuration: launcherconf,
|
|
install_dir: pkgdatadir,
|
|
)
|
|
|
|
subdir('misc')
|
|
|
|
gnome.compile_resources(
|
|
app_id + '.src',
|
|
configure_file(
|
|
input: base_id + '.src.gresource.xml.in',
|
|
output: app_id + '.src.gresource.xml',
|
|
configuration: {'profile': '/'.join(profile.split('.')) },
|
|
),
|
|
source_dir: ['.', meson.current_build_dir(), '../../../js'],
|
|
gresource_bundle: true,
|
|
install: true,
|
|
install_dir: pkgdatadir
|
|
)
|