summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2017-11-14 11:25:35 +0100
committerBastien Nocera <hadess@hadess.net>2017-11-15 13:49:46 +0100
commita18ecf2fd8c0a396526765ffdebb43fec661451b (patch)
treee9d0d004915317ff0dcd4c2a9deb9dba1208940b /meson.build
parentceb066a1ea088f63597a39f0188d2bac7301171e (diff)
downloadgnome-bluetooth-a18ecf2fd8c0a396526765ffdebb43fec661451b.tar.gz
build: Improve post-install script
The post install script is executing a rename process from when the icons' filenames also contained their installation path, which is not necessary anymore. It also contains a fixed path for datadir, which might change. This patch removes the unnecessary rename process and also uses the provided datadir path, if the user provides one, or the default path. https://bugzilla.gnome.org/show_bug.cgi?id=790332
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 5 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 9c7bd428..bdc8eaf3 100644
--- a/meson.build
+++ b/meson.build
@@ -32,8 +32,6 @@ gnomebt_mandir = join_paths(gnomebt_prefix, get_option('mandir'))
gnomebt_pkgdatadir = join_paths(gnomebt_datadir, meson.project_name())
gnomebt_pkglibdir = join_paths(gnomebt_libdir, meson.project_name())
-gnomebt_icondir = join_paths(gnomebt_datadir, 'icons')
-
gnomebt_buildtype = get_option('buildtype')
gnomebt_debug = gnomebt_buildtype.contains('debug')
@@ -128,7 +126,11 @@ configure_file(
configuration: config_h
)
-meson.add_install_script('meson_post_install.py', get_option('icon_update') ? 'icon_update' : '')
+meson.add_install_script(
+ 'meson_post_install.py',
+ get_option('icon_update') ? 'icon_update' : '',
+ gnomebt_datadir
+)
output = '\nConfigure summary:\n\n'
output += ' Compiler....................: ' + cc.get_id() + '\n\n'