1// Copyright 2020 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_binary { 20 name: "computepipe_face_runner", 21 srcs: [ 22 "Runner.cpp", 23 ], 24 static_libs: [ 25 "libcomputepipeprotos", 26 "computepipe_prebuilt_graph", 27 "computepipe_client_interface", 28 ], 29 shared_libs: [ 30 "computepipe_runner_engine", 31 "libprotobuf-cpp-lite", 32 "libbase", 33 "libbinder_ndk", 34 "android.automotive.computepipe.runner-V2-ndk_platform", 35 "android.automotive.computepipe.registry-V2-ndk_platform", 36 "liblog", 37 "libutils", 38 "libdl", 39 "libfacegraph", 40 "libnativewindow", 41 ], 42 cflags: ["-DLOG_TAG=\"ComputepipeRunner\""] + [ 43 "-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS", 44 "-Wall", 45 "-Werror", 46 "-Wunused", 47 "-Wunreachable-code", 48 "-Wthread-safety", 49 ], 50 header_libs: [ 51 "computepipe_runner_includes", 52 ], 53 include_dirs: [ 54 "packages/services/Car/cpp/computepipe", 55 ], 56} 57 58cc_prebuilt_library_shared { 59 name: "libfacegraph", 60 strip: { 61 keep_symbols: true, 62 }, 63 target: { 64 android_arm64: { 65 srcs: ["lib_arm64/libfacegraph.so"], 66 }, 67 android_arm: { 68 srcs: ["lib_arm/libfacegraph.so"], 69 }, 70 android_x86_64: { 71 srcs: ["lib_x86_64/libfacegraph.so"], 72 }, 73 android_x86: { 74 srcs: ["lib_x86/libfacegraph.so"], 75 }, 76 }, 77 shared_libs: [ 78 "libc", 79 "libdl", 80 "libEGL", 81 "libGLESv2", 82 "liblog", 83 "libm", 84 "libz", 85 ], 86} 87 88cc_binary { 89 name: "computepipe_face_tracker", 90 srcs: [ 91 "FaceTracker.cpp", 92 "ClientSvc.cpp", 93 ], 94 vendor: true, 95 static_libs: [ 96 "libcomputepipefaceproto", 97 ], 98 shared_libs: [ 99 "liblog", 100 "libbase", 101 "libbinder_ndk", 102 "libutils", 103 "android.hardware.automotive.occupant_awareness-V1-ndk_platform", 104 "libprotobuf-cpp-lite", 105 "android.automotive.computepipe.runner-V2-ndk_platform", 106 "android.automotive.computepipe.registry-V2-ndk_platform", 107 ], 108 cflags: ["-DLOG_TAG=\"FaceTrackerClient\""] + [ 109 "-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS", 110 "-Wall", 111 "-Werror", 112 "-Wunused", 113 "-Wunreachable-code", 114 "-Wthread-safety", 115 ], 116} 117 118cc_defaults { 119 name: "libcomputepipeface-defaults", 120 121 proto: { 122 export_proto_headers: true, 123 include_dirs: ["external/protobuf/src"], 124 }, 125 126 cflags: [ 127 "-Wall", 128 "-Werror", 129 "-Wno-unused-parameter", 130 ], 131 132 srcs: [ 133 "*.proto", 134 ], 135} 136 137cc_library { 138 name: "libcomputepipefaceproto", 139 defaults: ["libcomputepipeface-defaults"], 140 host_supported: false, 141 vendor_available: true, 142 target: { 143 android: { 144 proto: { 145 type: "lite", 146 }, 147 static_libs: [ 148 "libprotobuf-cpp-lite", 149 ], 150 shared: { 151 enabled: false, 152 }, 153 }, 154 }, 155} 156