33 lines
1011 B
Meson
33 lines
1011 B
Meson
pkgdatadir = join_paths(get_option('datadir'), meson.project_name())
|
|
gnome = import('gnome')
|
|
|
|
src_res = gnome.compile_resources('de.swingbe.hello-js.src',
|
|
'de.swingbe.hello-js.src.gresource.xml',
|
|
gresource_bundle: true,
|
|
install: true,
|
|
install_dir: pkgdatadir,
|
|
)
|
|
|
|
data_res = gnome.compile_resources('de.swingbe.hello-js.data',
|
|
'de.swingbe.hello-js.data.gresource.xml',
|
|
gresource_bundle: true,
|
|
install: true,
|
|
install_dir: pkgdatadir,
|
|
)
|
|
|
|
bin_conf = configuration_data()
|
|
bin_conf.set('GJS', find_program('gjs').path())
|
|
bin_conf.set('PACKAGE_VERSION', meson.project_version())
|
|
bin_conf.set('PACKAGE_NAME', meson.project_name())
|
|
bin_conf.set('prefix', get_option('prefix'))
|
|
bin_conf.set('libdir', join_paths(get_option('prefix'), get_option('libdir')))
|
|
bin_conf.set('datadir', join_paths(get_option('prefix'), get_option('datadir')))
|
|
|
|
configure_file(
|
|
input: 'de.swingbe.hello-js.in',
|
|
output: 'de.swingbe.hello-js',
|
|
configuration: bin_conf,
|
|
install: true,
|
|
install_dir: get_option('bindir')
|
|
)
|