47 lines
1.4 KiB
Meson
47 lines
1.4 KiB
Meson
pkgdatadir = get_option('datadir') / meson.project_name()
|
|
gnome = import('gnome')
|
|
blueprints = custom_target('blueprints',
|
|
input: files(
|
|
'window.blp',
|
|
'register.blp',
|
|
'shortcuts-dialog.blp',
|
|
),
|
|
output: '.',
|
|
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
|
)
|
|
|
|
src_res = gnome.compile_resources('me.winsdominoes.JobWizardDesktop.src',
|
|
'me.winsdominoes.JobWizardDesktop.src.gresource.xml',
|
|
gresource_bundle: true,
|
|
install: true,
|
|
install_dir: pkgdatadir,
|
|
dependencies: blueprints,
|
|
)
|
|
|
|
data_res = gnome.compile_resources('me.winsdominoes.JobWizardDesktop.data',
|
|
'me.winsdominoes.JobWizardDesktop.data.gresource.xml',
|
|
gresource_bundle: true,
|
|
install: true,
|
|
install_dir: pkgdatadir,
|
|
dependencies: blueprints,
|
|
)
|
|
|
|
bin_conf = configuration_data()
|
|
bin_conf.set('GJS', find_program('gjs').full_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', get_option('prefix') / get_option('libdir'))
|
|
bin_conf.set('datadir', get_option('prefix') / get_option('datadir'))
|
|
bin_conf.set('resource_path', '/me/winsdominoes/JobWizardDesktop')
|
|
|
|
configure_file(
|
|
input: 'me.winsdominoes.JobWizardDesktop.in',
|
|
output: 'me.winsdominoes.JobWizardDesktop',
|
|
configuration: bin_conf,
|
|
install: true,
|
|
install_dir: get_option('bindir')
|
|
)
|
|
|
|
|