diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2017-07-12 16:30:51 +0200 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2017-10-17 16:32:41 -0500 |
commit | f7a71bd57254912547256045b747f9181eef3529 (patch) | |
tree | e7278e8dc0fdddc5b2e6acbd74e72c7626c5f497 /gvdb | |
parent | 8ff1b86cb8f6c848be82d99dbb593a50713ce6ad (diff) | |
download | dconf-f7a71bd57254912547256045b747f9181eef3529.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=784910
Diffstat (limited to 'gvdb')
-rw-r--r-- | gvdb/Makefile.am | 2 | ||||
-rw-r--r-- | gvdb/meson.build | 24 |
2 files changed, 26 insertions, 0 deletions
diff --git a/gvdb/Makefile.am b/gvdb/Makefile.am index 7194b2f..6802959 100644 --- a/gvdb/Makefile.am +++ b/gvdb/Makefile.am @@ -12,3 +12,5 @@ libgvdb_a_SOURCES = \ libgvdb_shared_a_CFLAGS = $(libgvdb_a_CFLAGS) -fPIC -DPIC libgvdb_shared_a_SOURCES = $(libgvdb_a_SOURCES) + +EXTRA_DIST = meson.build diff --git a/gvdb/meson.build b/gvdb/meson.build new file mode 100644 index 0000000..4543430 --- /dev/null +++ b/gvdb/meson.build @@ -0,0 +1,24 @@ +name = 'gvdb' + +gvdb_builder = files('gvdb-builder.c') + +sources = gvdb_builder + files('gvdb-reader.c') + +cflags = '-DG_LOG_DOMAIN="gvdb (via @0@)"'.format(meson.project_name()) + +libgvdb = static_library( + name, + sources: sources, + include_directories: top_inc, + dependencies: glib_dep, + c_args: cflags +) + +libgvdb_shared = static_library( + name + '-shared', + sources: sources, + include_directories: top_inc, + dependencies: glib_dep, + c_args: cflags, + pic: true +) |