summaryrefslogtreecommitdiff
path: root/gdbus/meson.build
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-04-10 22:22:47 +0200
committerIñigo Martínez <inigomartinez@gmail.com>2018-08-11 22:56:33 +0200
commit183e193ba8823de398e8b22491478176acb923c9 (patch)
tree3df2e0b063e0eb05e934978a0c22a3a3c4bd4a83 /gdbus/meson.build
parent9ce9c03de0a7fbb1ec2ed83b2f02cb8b1459c58f (diff)
downloaddconf-183e193ba8823de398e8b22491478176acb923c9.tar.gz
build: Avoid building libraries twice
dconf builts a number of internal static libraries which in some cases are duplicated. This duplication comes from autotools that used to built two libraries for each library, one with PIC enabled and the other one without it. This has been changed to build only one library for each library to be built, except `libdconf-common-hidden` which hides some symbols for the GIO module to be built.
Diffstat (limited to 'gdbus/meson.build')
-rw-r--r--gdbus/meson.build24
1 files changed, 2 insertions, 22 deletions
diff --git a/gdbus/meson.build b/gdbus/meson.build
index 4dda78d..c22a81d 100644
--- a/gdbus/meson.build
+++ b/gdbus/meson.build
@@ -1,19 +1,9 @@
-name = meson.project_name() + '-gdbus-thread'
-
sources = files('dconf-gdbus-thread.c')
cflags = '-DG_LOG_DOMAIN="@0@"'.format(meson.project_name())
libdconf_gdbus_thread = static_library(
- name,
- sources: sources,
- include_directories: top_inc,
- dependencies: gio_unix_dep,
- c_args: cflags
-)
-
-libdconf_gdbus_thread_shared = static_library(
- name + '-shared',
+ meson.project_name() + '-gdbus-thread',
sources: sources,
include_directories: top_inc,
dependencies: gio_unix_dep,
@@ -21,20 +11,10 @@ libdconf_gdbus_thread_shared = static_library(
pic: true
)
-name = meson.project_name() + '-gdbus-filter'
-
sources = files('dconf-gdbus-filter.c')
libdconf_gdbus_filter = static_library(
- name,
- sources: sources,
- include_directories: top_inc,
- dependencies: gio_unix_dep,
- c_args: cflags
-)
-
-libdconf_gdbus_filter_shared = static_library(
- name + '-shared',
+ meson.project_name() + '-gdbus-filter',
sources: sources,
include_directories: top_inc,
dependencies: gio_unix_dep,