diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2018-08-11 13:57:42 +0200 |
---|---|---|
committer | Iñigo Martínez <inigomartinez@gmail.com> | 2018-08-11 22:56:33 +0200 |
commit | 11085f91c24dd895dfd1e9d02a71f1a3346e3c00 (patch) | |
tree | 8e56a2f455e0a1335c912674759e8bf0c3ec7b6a /client | |
parent | 4ef809a42f55adec9d32210867028aa502639a88 (diff) | |
download | dconf-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 'client')
-rw-r--r-- | client/meson.build | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/client/meson.build b/client/meson.build index a526c11..776665e 100644 --- a/client/meson.build +++ b/client/meson.build @@ -2,21 +2,21 @@ client_inc = include_directories('.') install_headers( 'dconf.h', - subdir: meson.project_name() + subdir: 'dconf' ) install_headers( 'dconf-client.h', - subdir: join_paths(meson.project_name(), 'client') + subdir: join_paths('dconf', 'client') ) -name = meson.project_name() + '-client' +sources = files('dconf-client.c') -cflags = '-DG_LOG_DOMAIN="@0@"'.format(meson.project_name()) +cflags = '-DG_LOG_DOMAIN="dconf"' libdconf_client = static_library( - name, - sources: name + '.c', + 'dconf-client', + sources: sources, include_directories: top_inc, dependencies: libdconf_gdbus_thread_dep, c_args: cflags, @@ -29,8 +29,8 @@ libdconf_client_dep = declare_dependency( ) libdconf = shared_library( - meson.project_name(), - sources: name + '.c', + 'dconf', + sources: sources, version: libversion, soversion: soversion, include_directories: top_inc, @@ -48,17 +48,17 @@ libdconf_dep = declare_dependency( pkg.generate( libraries: libdconf, version: meson.project_version(), - name: meson.project_name(), - description: meson.project_name() + ' client library', - filebase: meson.project_name(), - subdirs: meson.project_name(), + name: 'dconf', + description: 'dconf client library', + filebase: 'dconf', + subdirs: 'dconf', requires: 'gio-2.0 ' + gio_req_version, variables: 'exec_prefix=${prefix}' ) -libdconf_vapi = files(meson.project_name() + '.vapi') +libdconf_vapi = files('dconf.vapi') -vapi_data = libdconf_vapi + files(meson.project_name() + '.deps') +vapi_data = libdconf_vapi + files('dconf.deps') install_data( vapi_data, |