summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-11-21 21:20:37 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-03-10 19:05:19 +0530
commit47a07daa561ea437b78fdcf782d28a64cbdfb4dc (patch)
treed90987e1afc858ca2c8df5bdcc0d9465e4c871d8
parentf1464c12f920ac9bf0b873a8fea4e721dbc3a636 (diff)
downloadgobject-introspection-47a07daa561ea437b78fdcf782d28a64cbdfb4dc.tar.gz
meson: Use ${prefix} in pkg-config files
This allows the pkg-config files to be relocated at on Windows by moving the entire prefix and pkg-config will automatically set the value of prefix.
-rw-r--r--meson.build8
1 files changed, 4 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index bf76da49..0c5d8f38 100644
--- a/meson.build
+++ b/meson.build
@@ -74,11 +74,11 @@ prefix = get_option('prefix')
pkgconfig_conf = configuration_data()
pkgconfig_conf.set('prefix', prefix)
pkgconfig_conf.set('exec_prefix', '${prefix}')
-pkgconfig_conf.set('bindir', join_paths(prefix, get_option('bindir')))
-pkgconfig_conf.set('libdir', join_paths(prefix, get_option('libdir')))
-pkgconfig_conf.set('datarootdir', join_paths(prefix, get_option('datadir')))
+pkgconfig_conf.set('bindir', join_paths('${prefix}', get_option('bindir')))
+pkgconfig_conf.set('libdir', join_paths('${prefix}', get_option('libdir')))
+pkgconfig_conf.set('datarootdir', join_paths('${prefix}', get_option('datadir')))
pkgconfig_conf.set('datadir', '${datarootdir}')
-pkgconfig_conf.set('includedir', join_paths(prefix, get_option('includedir')))
+pkgconfig_conf.set('includedir', join_paths('${prefix}', get_option('includedir')))
if host_system == 'windows' or host_system == 'cygwin'
pkgconfig_conf.set('EXEEXT', '.exe')
else