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", 35 "android.automotive.computepipe.registry-V2-ndk", 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 ignore_max_page_size: true, 64 target: { 65 android_arm64: { 66 srcs: ["lib_arm64/libfacegraph.so"], 67 }, 68 android_arm: { 69 srcs: ["lib_arm/libfacegraph.so"], 70 }, 71 android_x86_64: { 72 srcs: ["lib_x86_64/libfacegraph.so"], 73 }, 74 android_x86: { 75 srcs: ["lib_x86/libfacegraph.so"], 76 }, 77 }, 78 shared_libs: [ 79 "libc", 80 "libdl", 81 "libEGL", 82 "libGLESv2", 83 "liblog", 84 "libm", 85 "libz", 86 ], 87} 88 89cc_binary { 90 name: "computepipe_face_tracker", 91 srcs: [ 92 "FaceTracker.cpp", 93 "ClientSvc.cpp", 94 ], 95 vendor: true, 96 static_libs: [ 97 "libcomputepipefaceproto", 98 ], 99 shared_libs: [ 100 "liblog", 101 "libbase", 102 "libbinder_ndk", 103 "libutils", 104 "android.hardware.automotive.occupant_awareness-V1-ndk", 105 "libprotobuf-cpp-lite", 106 "android.automotive.computepipe.runner-V2-ndk", 107 "android.automotive.computepipe.registry-V2-ndk", 108 ], 109 cflags: ["-DLOG_TAG=\"FaceTrackerClient\""] + [ 110 "-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS", 111 "-Wall", 112 "-Werror", 113 "-Wunused", 114 "-Wunreachable-code", 115 "-Wthread-safety", 116 ], 117} 118 119cc_defaults { 120 name: "libcomputepipeface-defaults", 121 122 proto: { 123 export_proto_headers: true, 124 include_dirs: ["external/protobuf/src"], 125 }, 126 127 cflags: [ 128 "-Wall", 129 "-Werror", 130 "-Wno-unused-parameter", 131 ], 132 133 srcs: [ 134 "*.proto", 135 ], 136} 137 138cc_library { 139 name: "libcomputepipefaceproto", 140 defaults: ["libcomputepipeface-defaults"], 141 host_supported: false, 142 vendor_available: true, 143 target: { 144 android: { 145 proto: { 146 type: "lite", 147 }, 148 static_libs: [ 149 "libprotobuf-cpp-lite", 150 ], 151 shared: { 152 enabled: false, 153 }, 154 }, 155 }, 156} 157