36 lines
883 B
Meson
36 lines
883 B
Meson
|
launcherconf = configuration_data()
|
||
|
launcherconf.set('app_id', app_id)
|
||
|
launcherconf.set('PACKAGE_NAME', meson.project_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: app_id + '.in',
|
||
|
output: app_id,
|
||
|
configuration: launcherconf,
|
||
|
install_dir: pkgdatadir,
|
||
|
)
|
||
|
|
||
|
config_dir = '@0@/../..'.format(meson.current_build_dir())
|
||
|
|
||
|
gnome.compile_resources(
|
||
|
app_id + '.src',
|
||
|
app_id + '.src.gresource.xml',
|
||
|
dependencies: [config_js],
|
||
|
source_dir: ['.', '../..', config_dir],
|
||
|
gresource_bundle: true,
|
||
|
install: true,
|
||
|
install_dir: pkgdatadir
|
||
|
)
|