summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build1
-rw-r--r--src/meson.build2
2 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index e071a5e40..5463b1a9f 100644
--- a/meson.build
+++ b/meson.build
@@ -127,6 +127,7 @@ xau_dep = dependency('xau')
ice_dep = dependency('ice')
atk_dep = dependency('atk', version: atk_req)
libcanberra_dep = dependency('libcanberra', version: libcanberra_req)
+dbus_dep = dependency('dbus-1')
# For now always require X11 support
have_x11 = true
diff --git a/src/meson.build b/src/meson.build
index 31840d5bd..85f24e963 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -715,7 +715,7 @@ if have_profiler
'backends/meta-profiler.h',
]
- dbus_interfaces_dir = join_paths(datadir, 'dbus-1', 'interfaces')
+ dbus_interfaces_dir = dbus_dep.get_pkgconfig_variable('interfaces_dir')
sysprof3_dbus_file = join_paths(dbus_interfaces_dir, 'org.gnome.Sysprof3.Profiler.xml')
dbus_sysprof3_profiler_built_sources = gnome.gdbus_codegen('meta-dbus-sysprof3-profiler',