1/* 2 * Copyright 2017 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 17 18cc_defaults { 19 name: "NeuralNetworksSampleDriver_defaults", 20 defaults: ["neuralnetworks_defaults"], 21 relative_install_path: "hw", 22 proprietary: true, 23 srcs: [ 24 "SampleDriver.cpp", 25 ], 26 header_libs: [ 27 "libneuralnetworks_headers", 28 ], 29 shared_libs: [ 30 "libbase", 31 "libdl", 32 "libhardware", 33 "libhidlbase", 34 "libhidlmemory", 35 "libhidltransport", 36 "libtextclassifier_hash", 37 "liblog", 38 "libutils", 39 "android.hardware.neuralnetworks@1.0", 40 "android.hidl.allocator@1.0", 41 "android.hidl.memory@1.0", 42 ], 43 static_libs: [ 44 "libneuralnetworks_common", 45 ], 46} 47 48cc_binary { 49 name: "android.hardware.neuralnetworks@1.0-service-sample-all", 50 defaults: ["NeuralNetworksSampleDriver_defaults"], 51 init_rc: ["SampleDriverAll.rc"], 52 srcs: ["SampleDriverAll.cpp"] 53} 54 55cc_binary { 56 name: "android.hardware.neuralnetworks@1.0-service-sample-float-fast", 57 defaults: ["NeuralNetworksSampleDriver_defaults"], 58 init_rc: ["SampleDriverFloatFast.rc"], 59 srcs: ["SampleDriverFloatFast.cpp"] 60} 61 62cc_binary { 63 name: "android.hardware.neuralnetworks@1.0-service-sample-float-slow", 64 defaults: ["NeuralNetworksSampleDriver_defaults"], 65 init_rc: ["SampleDriverFloatSlow.rc"], 66 srcs: ["SampleDriverFloatSlow.cpp"] 67} 68 69cc_binary { 70 name: "android.hardware.neuralnetworks@1.0-service-sample-quant", 71 defaults: ["NeuralNetworksSampleDriver_defaults"], 72 init_rc: ["SampleDriverQuant.rc"], 73 srcs: ["SampleDriverQuant.cpp"] 74} 75 76cc_binary { 77 name: "android.hardware.neuralnetworks@1.0-service-sample-minimal", 78 defaults: ["NeuralNetworksSampleDriver_defaults"], 79 init_rc: ["SampleDriverMinimal.rc"], 80 srcs: ["SampleDriverMinimal.cpp"] 81} 82