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

View File

@@ -1,6 +1,6 @@
imports.gi.versions.Gdk = '3.0';
imports.gi.versions.Gtk = '3.0';
imports.searchPath.unshift('/usr/local/share/clapper');
imports.searchPath.unshift('@importspath@');
const ClapperSrc = imports.clapper_src;

14
gjs-1.0/meson.build Normal file
View File

@@ -0,0 +1,14 @@
sharedir = join_paths(get_option('prefix'), 'share')
gjsdir = join_paths(sharedir, 'gjs-1.0')
importspath = join_paths(sharedir, meson.project_name())
gjs_conf = configuration_data()
gjs_conf.set('importspath', importspath)
configure_file(
input: 'clapper.js.in',
output: 'clapper.js',
configuration: gjs_conf,
install: true,
install_dir: gjsdir
)