Add the sdk_version that this should be built against. Setting this enables our testing tools that must be SDK/NDK compliant to include these static libs in their builds. Bug: 74442448 Test: compile and CtsSkQPTestCases Change-Id: I0dc742c6c177a99e662af171bd41f789cf51a48f
diff --git a/Android.bp b/Android.bp index e5df946..4f16430 100644 --- a/Android.bp +++ b/Android.bp
@@ -1,7 +1,5 @@ -cc_library_static { - name: "libjsoncpp", - vendor_available: true, - host_supported: true, +cc_defaults { + name: "libjsoncpp_defaults", srcs: [ "src/lib_json/json_reader.cpp", @@ -27,3 +25,17 @@ }, }, } + +cc_library_static { + name: "libjsoncpp", + defaults: ["libjsoncpp_defaults"], + vendor_available: true, + host_supported: true, +} + +cc_library_static { + name: "libjsoncpp_ndk", + defaults: ["libjsoncpp_defaults"], + sdk_version: "9", + stl: "libc++_static", +}