summaryrefslogtreecommitdiff
path: root/shm/meson.build
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-04-10 22:50:31 +0200
committerIñigo Martínez <inigomartinez@gmail.com>2018-08-11 22:56:33 +0200
commitc50f3758d3e5da4f8b244227b211c3c3f454275c (patch)
tree3dacd4bde8e8c368710b1cecf46df808d4eb98ef /shm/meson.build
parent183e193ba8823de398e8b22491478176acb923c9 (diff)
downloaddconf-c50f3758d3e5da4f8b244227b211c3c3f454275c.tar.gz
build: Fix internal dependencies
meson is able to generate internal dependencies for handling built libraries. These internal dependencies depend on other dependencies as well, based on the includes exposed by their headers. This have been fixed by using proper internal dependencies for these libraries.
Diffstat (limited to 'shm/meson.build')
-rw-r--r--shm/meson.build11
1 files changed, 8 insertions, 3 deletions
diff --git a/shm/meson.build b/shm/meson.build
index d904cd0..4f95b98 100644
--- a/shm/meson.build
+++ b/shm/meson.build
@@ -1,12 +1,17 @@
-sources = files('dconf-shm.c')
+name = meson.project_name() + '-shm'
cflags = '-DG_LOG_DOMAIN="@0@"'.format(meson.project_name())
libdconf_shm = static_library(
- meson.project_name() + '-shm',
- sources: sources,
+ name,
+ sources: name + '.c',
include_directories: top_inc,
dependencies: glib_dep,
c_args: cflags,
pic: true
)
+
+libdconf_shm_dep = declare_dependency(
+ dependencies: glib_dep,
+ link_with: libdconf_shm
+)