Add meson build system (#1)

Initial meson build system support. We do not create .desktop file yet, but we need an option to open media files from GUI first anyway.
This commit is contained in:
Rafostar
2020-09-08 19:55:59 +02:00
committed by GitHub
parent fd22457857
commit edcc7b71b9
11 changed files with 104 additions and 58 deletions

16
bin/meson.build Normal file
View File

@@ -0,0 +1,16 @@
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: 'com.github.rafostar.Clapper.in',
output: 'com.github.rafostar.Clapper',
configuration: bin_conf,
install: true,
install_dir: get_option('bindir'),
install_mode: 'rwxr-xr-x'
)