update build system

This commit is contained in:
2019-01-05 00:28:18 -03:00
parent c37c341784
commit ed580cfe2a
34 changed files with 164 additions and 64 deletions

View File

@@ -1,2 +1,9 @@
gnome = import('gnome')
gschemas = files(
'cl.cromer.ubb.sernatur.db.gschema.xml',
'cl.cromer.ubb.sernatur.window.gschema.xml')
gnome.compile_schemas(build_by_default: true,
depend_files: gschemas
)
install_data('cl.cromer.ubb.sernatur.db.gschema.xml', install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0', 'schemas'))
install_data('cl.cromer.ubb.sernatur.window.gschema.xml', install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0', 'schemas'))

View File

@@ -1,5 +1,7 @@
gnome = import('gnome')
sernatur_gresource_c = gnome.compile_resources('sernatur-resources',
gresource = gnome.compile_resources(meson.project_name() + '_gresource_main',
'sernatur.gresource.xml',
source_dir : '.',
c_name : 'sernatur')
source_dir: '.',
c_name: meson.project_name() + '_resource_main',
export: true,
install_header: true)