diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2018-02-01 08:35:23 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2018-02-05 17:42:49 +0100 |
commit | f180fc7cd655d29d6fdae7e71e2cb6bc8672e823 (patch) | |
tree | c7552bdd1780262b13f4458cbbff1302b6016c0a /data | |
parent | 8351ff4d451da2004efc36a205e369b3207ecfe6 (diff) | |
download | gnome-settings-daemon-f180fc7cd655d29d6fdae7e71e2cb6bc8672e823.tar.gz |
build: Port to meson build system
meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.
https://bugzilla.gnome.org/show_bug.cgi?id=793087
Diffstat (limited to 'data')
-rw-r--r-- | data/meson.build | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 00000000..fcba7bb3 --- /dev/null +++ b/data/meson.build @@ -0,0 +1,66 @@ +data_inc = include_directories('.') + +schemas = [ + 'org.gnome.settings-daemon.peripherals.gschema.xml', + 'org.gnome.settings-daemon.peripherals.wacom.gschema.xml', + 'org.gnome.settings-daemon.plugins.gschema.xml', + 'org.gnome.settings-daemon.plugins.color.gschema.xml', + 'org.gnome.settings-daemon.plugins.housekeeping.gschema.xml', + 'org.gnome.settings-daemon.plugins.media-keys.gschema.xml', + 'org.gnome.settings-daemon.plugins.power.gschema.xml', + 'org.gnome.settings-daemon.plugins.sharing.gschema.xml', + 'org.gnome.settings-daemon.plugins.xsettings.gschema.xml' +] + +schema_conf = configuration_data() +schema_conf.set('GETTEXT_PACKAGE', meson.project_name()) + +foreach schema: schemas + schema_in = configure_file( + input: schema + '.in.in', + output: schema + '.in', + configuration: schema_conf + ) + + custom_target( + schema, + input: schema_in, + output: schema, + command: [intltool_merge, '-x', '-u', '--no-translations', '@INPUT@', '@OUTPUT@'], + install: true, + install_dir: gsd_schemadir + ) +endforeach + +enums_header = files('gsd-enums.h') + +gnome.mkenums( + 'org.gnome.settings-daemon.enums.xml', + sources: enums_header, + comments: '<!-- @comment@ -->', + fhead: '<schemalist>', + vhead: ' <@type@ id="org.gnome.settings-daemon.@EnumName@">', + vprod: ' <value nick="@valuenick@" value="@valuenum@"/>', + vtail: ' </@type@>', + ftail: '</schemalist>', + install_header: true, + install_dir: gsd_schemadir +) + +install_data( + enums_header, + install_dir: join_paths(gsd_pkgincludedir, meson.project_name()) +) + +install_data( + 'gnome-settings-daemon.convert', + install_dir: join_paths(gsd_datadir, 'GConf', 'gsettings') +) + +pkg.generate( + version: gsd_version, + name: meson.project_name(), + description: meson.project_name() + ' specific enumerations', + filebase: meson.project_name(), + subdirs: gsd_api_name +) |