summaryrefslogtreecommitdiff
path: root/shm
diff options
context:
space:
mode:
Diffstat (limited to 'shm')
-rw-r--r--shm/Makefile.am2
-rw-r--r--shm/meson.build22
2 files changed, 24 insertions, 0 deletions
diff --git a/shm/Makefile.am b/shm/Makefile.am
index 936f88e..e7d8bc9 100644
--- a/shm/Makefile.am
+++ b/shm/Makefile.am
@@ -9,3 +9,5 @@ libdconf_shm_a_SOURCES = \
libdconf_shm_shared_a_CFLAGS = $(libdconf_shm_a_CFLAGS) -fPIC -DPIC
libdconf_shm_shared_a_SOURCES = $(libdconf_shm_a_SOURCES)
+
+EXTRA_DIST = meson.build
diff --git a/shm/meson.build b/shm/meson.build
new file mode 100644
index 0000000..01ced55
--- /dev/null
+++ b/shm/meson.build
@@ -0,0 +1,22 @@
+name = meson.project_name() + '-shm'
+
+sources = files('dconf-shm.c')
+
+cflags = '-DG_LOG_DOMAIN="@0@"'.format(meson.project_name())
+
+libdconf_shm = static_library(
+ name,
+ sources: sources,
+ include_directories: top_inc,
+ dependencies: glib_dep,
+ c_args: cflags
+)
+
+libdconf_shm_shared = static_library(
+ name + '-shared',
+ sources: sources,
+ include_directories: top_inc,
+ dependencies: glib_dep,
+ c_args: cflags,
+ pic: true
+)