From: Benedikt Morbach Date: Fri, 10 Aug 2018 02:59:54 +0000 (+0200) Subject: meson: actually honor pkgconfig*dir options (#9841) X-Git-Tag: v240~844 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a95696e33d750b4a6d3213c23ac4c7899131bb37;p=platform%2Fupstream%2Fsystemd.git meson: actually honor pkgconfig*dir options (#9841) both were silently ignored leading to some of the pkg-config files ending up in the wrong place --- diff --git a/meson.build b/meson.build index 9bfe112..f79ac4b 100644 --- a/meson.build +++ b/meson.build @@ -90,8 +90,8 @@ if rootlibdir == '' endif # Dirs of external packages -pkgconfigdatadir = join_paths(datadir, 'pkgconfig') -pkgconfiglibdir = join_paths(libdir, 'pkgconfig') +pkgconfigdatadir = get_option('pkgconfigdatadir') == '' ? join_paths(datadir, 'pkgconfig') : get_option('pkgconfigdatadir') +pkgconfiglibdir = get_option('pkgconfiglibdir') == '' ? join_paths(libdir, 'pkgconfig') : get_option('pkgconfiglibdir') polkitpolicydir = join_paths(datadir, 'polkit-1/actions') polkitrulesdir = join_paths(datadir, 'polkit-1/rules.d') polkitpkladir = join_paths(localstatedir, 'lib/polkit-1/localauthority/10-vendor.d') diff --git a/meson_options.txt b/meson_options.txt index a927473..e3140c8 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -130,7 +130,7 @@ option('dbussessionservicedir', type : 'string', description : 'D-Bus session service directory') option('dbussystemservicedir', type : 'string', description : 'D-Bus system service directory') -option('pkgconfigdatadir', type : 'string', value : 'share/pkgconfig', +option('pkgconfigdatadir', type : 'string', value : '', description : 'directory for ') option('pkgconfiglibdir', type : 'string', value : '', description : 'directory for ')