sdbusplus: use meson build
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I2ba6002911b35dd67010d981aedaf25c0fc56fc0
diff --git a/meson.build b/meson.build
index 52337df..584c0f8 100644
--- a/meson.build
+++ b/meson.build
@@ -42,16 +42,8 @@
endif
sdbusplus = dependency('sdbusplus', required: false)
if not sdbusplus.found()
- subproject('sdbusplus', required: false)
- run_command(find_program('build-sdbusplus.sh'), check: true)
- sdbusplus = declare_dependency(
- dependencies: dependency('libsystemd'),
- include_directories: 'sdbusplus',
- link_args: [
- 'sdbusplus/.libs/libsdbusplus.so',
- '-Wl,-rpath,$ORIGIN/../sdbusplus/.libs'
- ],
- )
+ sdbusplus_proj = subproject('sdbusplus', required: true)
+ sdbusplus = sdbusplus_proj.get_variable('sdbusplus_dep')
endif
systemd = dependency('systemd')
systemd_system_unit_dir = systemd.get_pkgconfig_variable(