Use "data: libsepolwrap" in python binaries
To avoid hard-coded paths in Android.mk rules.
Test: m selinux_policy
Change-Id: I7b464fa2953e01ccb6fff8daa3e219ae372313c5
diff --git a/tests/Android.bp b/tests/Android.bp
index 959a214..78a631f 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -11,6 +11,7 @@
srcs: ["sepol_wrap.cpp"],
cflags: ["-Wall", "-Werror",],
export_include_dirs: ["include"],
+ stl: "c++_static",
// libsepolwrap gets loaded from the system python, which does not have the
// ASAN runtime. So turn off sanitization for ourself, and use static
@@ -32,7 +33,7 @@
"policy.py",
"treble_sepolicy_tests.py",
],
- required: ["libsepolwrap"],
+ data: [":libsepolwrap"],
}
python_binary_host {
@@ -42,7 +43,7 @@
"policy.py",
"sepolicy_tests.py",
],
- required: ["libsepolwrap"],
+ data: [":libsepolwrap"],
}
python_binary_host {