/* * Copyright 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ cc_library_headers { name: "libneuralnetworks_headers", host_supported: false, vendor_available: true, export_include_dirs: ["include"], } cc_library_headers { name: "libneuralnetworks_private_headers", host_supported: false, export_include_dirs: ["."], } cc_library { name: "libneuralnetworks", defaults: ["neuralnetworks_defaults"], host_supported: false, srcs: [ "Callbacks.cpp", "CompilationBuilder.cpp", "ExecutionBuilder.cpp", "ExecutionPlan.cpp", "Manager.cpp", "Memory.cpp", "ModelBuilder.cpp", "NeuralNetworks.cpp", ], target: { android: { shared_libs: [ "libbase", "libcutils", "libhidlbase", "libhidltransport", "libhidlmemory", "liblog", "libnativehelper", "libutils", "android.hardware.neuralnetworks@1.0", "android.hidl.allocator@1.0", "android.hidl.memory@1.0", ], }, host: { shared_libs: [ ], }, }, static_libs: [ "libneuralnetworks_common", ], shared_libs: [ "libtextclassifier_hash" ], header_libs: [ "libneuralnetworks_headers", ], export_header_lib_headers: [ "libneuralnetworks_headers", ], } ndk_headers { name: "libneuralnetworks_ndk_headers", from: "include", to: "android", srcs: ["include/NeuralNetworks.h"], license: "NOTICE", } ndk_library { name: "libneuralnetworks", symbol_file: "libneuralnetworks.map.txt", // Android O-MR1 first_version: "27", } subdirs = ["test"]