summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-08-11 13:57:42 +0200
committerIñigo Martínez <inigomartinez@gmail.com>2018-08-11 22:56:33 +0200
commit11085f91c24dd895dfd1e9d02a71f1a3346e3c00 (patch)
tree8e56a2f455e0a1335c912674759e8bf0c3ec7b6a /common
parent4ef809a42f55adec9d32210867028aa502639a88 (diff)
downloaddconf-11085f91c24dd895dfd1e9d02a71f1a3346e3c00.tar.gz
build: Do not make heavy use of project_name
The current meson build files make heavy use of meson's `project_name` function. However this makes difficult for any developer to find for given program/library/file names. The project name is also never going to change. Due to this reason these calls have been changed for `dconf` itself.
Diffstat (limited to 'common')
-rw-r--r--common/meson.build10
1 files changed, 4 insertions, 6 deletions
diff --git a/common/meson.build b/common/meson.build
index 51eb939..00f27ad 100644
--- a/common/meson.build
+++ b/common/meson.build
@@ -8,21 +8,19 @@ headers = files(
install_headers(
headers,
- subdir: join_paths(meson.project_name(), 'common')
+ subdir: join_paths('dconf', 'common')
)
-name = meson.project_name() + '-common'
-
sources = files(
'dconf-changeset.c',
'dconf-error.c',
'dconf-paths.c'
)
-cflags = ['-DG_LOG_DOMAIN="@0@"'.format(meson.project_name())]
+cflags = ['-DG_LOG_DOMAIN="dconf"']
libdconf_common = static_library(
- name,
+ 'dconf-common',
sources: sources,
include_directories: top_inc,
dependencies: glib_dep,
@@ -38,7 +36,7 @@ libdconf_common_dep = declare_dependency(
cflags += cc.get_supported_arguments('-fvisibility=hidden')
libdconf_common_hidden = static_library(
- name + '-hidden',
+ 'dconf-common-hidden',
sources: sources,
include_directories: top_inc,
dependencies: glib_dep,