summaryrefslogtreecommitdiff
path: root/nn/runtime/test/Android.bp
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2020-01-07 12:58:39 +0900
committerJiyong Park <jiyong@google.com>2020-01-15 01:10:30 +0000
commit5e69d36e7a959e05735d2b89b9fedd5a70c68e7a (patch)
treeb20d2a31d623937a51a11df0c639567c7e538afa /nn/runtime/test/Android.bp
parentfa86e588f324fbb6a27bbb45a9d11a931f199350 (diff)
downloadml-5e69d36e7a959e05735d2b89b9fedd5a70c68e7a.tar.gz
Introduce libneuralnetworks_static
The library is a static variant of the existing libneuralnetworks. It is introduced because the existing one isn't available to the platform due to the apex_available property. (the property was set in order to prevent installation of the lib to /system/lib) The problem was that a few number of nn tests are statically linking the library. Since the nn tests are outside of the APEX, they need the platform variant of the library. In order to solve the problem, the static variant is introduced just for the tests. Since it's a static library, it still isn't installable to /system/lib. Bug: 147158681 Test: mma under frameworks/ml/nn Change-Id: I61a56bf3bb9fde87d0268d911f4a22ff0febafd9
Diffstat (limited to 'nn/runtime/test/Android.bp')
-rw-r--r--nn/runtime/test/Android.bp8
1 files changed, 4 insertions, 4 deletions
diff --git a/nn/runtime/test/Android.bp b/nn/runtime/test/Android.bp
index af87d699d..feff1c195 100644
--- a/nn/runtime/test/Android.bp
+++ b/nn/runtime/test/Android.bp
@@ -128,7 +128,7 @@ cc_defaults {
static_libs: [
"libSampleDriver",
"libgmock",
- "libneuralnetworks",
+ "libneuralnetworks_static",
"libneuralnetworks_common",
],
shared_libs: [
@@ -163,7 +163,7 @@ cc_test {
static_libs: [
"libSampleDriver",
"libgmock",
- "libneuralnetworks",
+ "libneuralnetworks_static",
"libneuralnetworks_common",
],
header_libs: [
@@ -186,7 +186,7 @@ cc_fuzz {
corpus: ["android_fuzzing/corpus/*"],
shared_libs: ["libprotobuf-cpp-full"],
static_libs: [
- "libneuralnetworks",
+ "libneuralnetworks_static",
"libneuralnetworks_common",
"libneuralnetworks_fuzzer_proto",
"libneuralnetworks_generated_test_harness",
@@ -255,7 +255,7 @@ cc_defaults {
static_libs: [
"libSampleDriver",
"libgmock",
- "libneuralnetworks",
+ "libneuralnetworks_static",
"libneuralnetworks_common",
],
whole_static_libs: [