Add a cc_library_static type module in Soong am: 97ef52c311
Original change: https://android-review.googlesource.com/c/platform/external/tensorflow/+/1712606
Change-Id: I99b2b4a53e22ada5b9c0477b140f65db700d46d0
diff --git a/Android.bp b/Android.bp
index 7828d88..d9b1653 100644
--- a/Android.bp
+++ b/Android.bp
@@ -77,3 +77,47 @@
}
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 5e29bb7..68d37ec 100644
--- a/tensorflow/lite/tflite_static.bp
+++ b/tensorflow/lite/tflite_static.bp
@@ -223,4 +223,5 @@
export_generated_headers: [
"libtflite_mutable_schema",
],
+ sdk_version: "current",
}