| 1 |
pkgdatadir = join_paths(get_option('datadir'), meson.project_name()) |
| 2 |
gnome = import('gnome') |
| 3 |
|
| 4 |
dependency('appstream', version : '>= 1.0') |
| 5 |
dependency('libadwaita-1', version : '>= 1.8') |
| 6 |
dependency('webkitgtk-6.0', version : '>= 2.40') |
| 7 |
|
| 8 |
src_res = gnome.compile_resources('com.github.tchx84.Flatseal.src', |
| 9 |
'com.github.tchx84.Flatseal.src.gresource.xml', |
| 10 |
gresource_bundle: true, |
| 11 |
install: true, |
| 12 |
install_dir: pkgdatadir, |
| 13 |
) |
| 14 |
|
| 15 |
data_res = gnome.compile_resources('com.github.tchx84.Flatseal.data', |
| 16 |
'com.github.tchx84.Flatseal.data.gresource.xml', |
| 17 |
gresource_bundle: true, |
| 18 |
install: true, |
| 19 |
install_dir: pkgdatadir, |
| 20 |
) |
| 21 |
|
| 22 |
bin_conf = configuration_data() |
| 23 |
bin_conf.set('GJS', find_program('gjs').full_path()) |
| 24 |
bin_conf.set('PACKAGE_VERSION', meson.project_version()) |
| 25 |
bin_conf.set('PACKAGE_NAME', meson.project_name()) |
| 26 |
bin_conf.set('prefix', get_option('prefix')) |
| 27 |
bin_conf.set('libdir', join_paths(get_option('prefix'), get_option('libdir'))) |
| 28 |
bin_conf.set('datadir', join_paths(get_option('prefix'), get_option('datadir'))) |
| 29 |
|
| 30 |
configure_file( |
| 31 |
input: 'com.github.tchx84.Flatseal.in', |
| 32 |
output: 'com.github.tchx84.Flatseal', |
| 33 |
configuration: bin_conf, |
| 34 |
install: true, |
| 35 |
install_dir: get_option('bindir') |
| 36 |
) |