summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorEmilian Peev <epeev@google.com>2019-01-29 08:58:48 -0800
committerEmilian Peev <epeev@google.com>2019-02-04 16:18:10 -0800
commit1a5387f472b510232e0fd3af0b06e350341c334d (patch)
treeb70030c8a71135e0f226cf09252286fc64f4e48e /Android.bp
parent938d58078455ad446fb1196cb9978429faff36cc (diff)
downloaddynamic_depth-1a5387f472b510232e0fd3af0b06e350341c334d.tar.gz
Add an NDK library variant
An NDK built library variant is needed for clients using the NDK toolchain. Move the Android depth buffer validation sequence in a separate module. Bug: 123237859 Test: Camera CTS Change-Id: Ibf149f0be02a40de31e901cfc420f203d10e5bf3
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp25
1 files changed, 25 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index b015217..b66d9d7 100644
--- a/Android.bp
+++ b/Android.bp
@@ -50,3 +50,28 @@ cc_library {
"libxml2",
],
}
+
+cc_library_static {
+ name: "libdynamic_depth_ndk",
+ defaults: ["libdynamic_depth-defaults"],
+ vendor_available: false,
+ export_include_dirs: [
+ "includes",
+ "internal"
+ ],
+ srcs: ["internal/**/*.cc"],
+ shared_libs: [
+ "liblog",
+ ],
+ static_libs: [
+ "libimage_io_ndk",
+ "libbase_ndk",
+ "libxml2_ndk",
+ ],
+ cflags: [
+ "-fvisibility=hidden",
+ "-DSTATIC_LIBXML=1",
+ ],
+ sdk_version: "current",
+ stl: "c++_static",
+}