Add OE-SDK option to Meson
Add option to enable oe-sdk which will setup linker arguments to allow
for building and running tests with the x86 SDK.
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: I8279b7d862e29235d2d4eae39405cc35a51b762f
diff --git a/tools/power-utils/test/meson.build b/tools/power-utils/test/meson.build
index 1d365c3..9f49857 100644
--- a/tools/power-utils/test/meson.build
+++ b/tools/power-utils/test/meson.build
@@ -10,6 +10,8 @@
],
implicit_include_directories: false,
include_directories: libpower_inc,
+ link_args: dynamic_linker,
+ build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
link_with: [
libpower,
],
@@ -34,6 +36,8 @@
libi2c_inc,
libi2c_dev_mock_inc
],
+ link_args: dynamic_linker,
+ build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
link_with: [
libpower,
libi2c_dev_mock