60d640189b
Follow the pattern used by most GNOME applications and add a profile build option that allows building a Devel app instead of the regular release. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3612 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1661>
37 lines
923 B
Meson
37 lines
923 B
Meson
launcherconf = configuration_data()
|
|
launcherconf.set('app_id', app_id)
|
|
launcherconf.set('PACKAGE_NAME', package_name)
|
|
launcherconf.set('PACKAGE_VERSION', meson.project_version())
|
|
launcherconf.set('prefix', prefix)
|
|
launcherconf.set('libdir', libdir)
|
|
launcherconf.set('pkgdatadir', pkgdatadir)
|
|
launcherconf.set('gjs', gjs.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,
|
|
)
|
|
|
|
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: ['.', '../../../js'],
|
|
gresource_bundle: true,
|
|
install: true,
|
|
install_dir: pkgdatadir
|
|
)
|