1/* 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21cc_library_shared { 22 name: "libneuralnetworkshelper_statsdatom", 23 srcs: ["jni/trigger_libneuralnetworks_atoms.cpp"], 24 cflags: [ 25 "-Wall", 26 "-Werror", 27 ], 28 header_libs: ["jni_headers"], 29 shared_libs: [ 30 "liblog", 31 "libnativewindow", 32 "libneuralnetworks", 33 ], 34 static_libs: ["libbase_ndk"], 35 stl: "c++_static", 36 sdk_version: "current", 37 min_sdk_version: "29", 38} 39 40android_test_helper_app { 41 name: "CtsNnapiStatsdAtomApp", 42 defaults: ["cts_defaults"], 43 platform_apis: true, 44 min_sdk_version: "29", 45 srcs: [ 46 "src/**/*.java", 47 ], 48 privileged: true, 49 jni_libs: [ 50 "libneuralnetworkshelper_statsdatom", 51 ], 52 compile_multilib: "both", 53 v4_signature: true, 54} 55