diff options
author | Yuntao Xu <yuntaoxu@google.com> | 2021-05-19 19:52:49 -0700 |
---|---|---|
committer | Yuntao Xu <yuntaoxu@google.com> | 2021-06-01 12:29:01 -0700 |
commit | 97ef52c311a2e785072fb6c2e78bf3761134d25f (patch) | |
tree | bf181c0ff1d5da937fedc0d6511abd842cdd2a88 | |
parent | 632ff3f6169ef18a6947c53bd6f3cb5bf7fc26a6 (diff) | |
download | tensorflow-97ef52c311a2e785072fb6c2e78bf3761134d25f.tar.gz |
Add a cc_library_static type module in Soong
This module is generated by converting line 15-52 of the following .mk
file, due to the fact that the files included are outside the directory
where the .mk file locates,
cts/tests/tests/neuralnetworks/tflite_delegate/Android.mk
Bug: 188730371
Test: manual `m module-name`
Test: TreeHugger
Change-Id: I38f4724e02b906c767278b5ee49f0f60f9ab247a
Merged-In: I38f4724e02b906c767278b5ee49f0f60f9ab247a
-rw-r--r-- | Android.bp | 44 | ||||
-rw-r--r-- | tensorflow/lite/tflite_static.bp | 1 |
2 files changed, 45 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index 7828d88f347..d9b16535b53 100644 --- a/Android.bp +++ b/Android.bp @@ -77,3 +77,47 @@ genrule { } subdirs = ["tensorflow/lite"] + +cc_library_static { + name: "TfliteNnapiDelegateTests_static", + srcs: [ + "tensorflow/lite/delegates/nnapi/nnapi_delegate_test.cc", + "tensorflow/lite/kernels/test_util.cc", + "tensorflow/core/platform/default/logging.cc", + "tensorflow/core/platform/default/env_time.cc", + "tensorflow/lite/kernels/acceleration_test_util.cc", + "tensorflow/lite/kernels/acceleration_test_util_internal.cc", + "tensorflow/lite/delegates/nnapi/acceleration_test_list.cc", + "tensorflow/lite/delegates/nnapi/acceleration_test_util.cc", + ], + include_dirs: [ + "external/flatbuffers/include", + "external/tensorflow", + "external/ruy", + ], + cflags: [ + "-DPLATFORM_POSIX_ANDROID", + "-Wextra", + "-Wno-extern-c-compat", + "-Wno-sign-compare", + "-Wno-unused-parameter", + "-Wno-unused-private-field", + ], + shared_libs: [ + "libandroid", + "liblog", + "libneuralnetworks", + ], + static_libs: [ + "libgtest_ndk_c++", + "libgmock_ndk", + "libtflite_static", + ], + header_libs: [ + "libeigen", + "gemmlowp_headers", + "libtflite_schema_headers", + ], + sdk_version: "current", + stl: "c++_static", +} diff --git a/tensorflow/lite/tflite_static.bp b/tensorflow/lite/tflite_static.bp index 5e29bb7eece..68d37eccbf1 100644 --- a/tensorflow/lite/tflite_static.bp +++ b/tensorflow/lite/tflite_static.bp @@ -223,4 +223,5 @@ cc_library_headers { export_generated_headers: [ "libtflite_mutable_schema", ], + sdk_version: "current", } |