• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15cc_binary {
16    name: "computepipe_face_runner",
17    srcs: [
18        "Runner.cpp",
19    ],
20    static_libs: [
21        "libcomputepipeprotos",
22        "computepipe_prebuilt_graph",
23        "computepipe_client_interface",
24    ],
25    shared_libs: [
26        "computepipe_runner_engine",
27        "libprotobuf-cpp-lite",
28        "libbase",
29        "libbinder_ndk",
30        "android.automotive.computepipe.runner-ndk_platform",
31        "android.automotive.computepipe.registry-ndk_platform",
32        "liblog",
33        "libutils",
34        "libdl",
35        "libfacegraph",
36	"libnativewindow",
37    ],
38    cflags: ["-DLOG_TAG=\"ComputepipeRunner\""] + [
39        "-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS",
40        "-Wall",
41        "-Werror",
42        "-Wunused",
43        "-Wunreachable-code",
44        "-Wthread-safety",
45    ],
46    header_libs: [
47        "computepipe_runner_includes",
48    ],
49    include_dirs: [
50        "packages/services/Car/computepipe",
51    ],
52}
53
54cc_prebuilt_library_shared {
55    name: "libfacegraph",
56    strip: {
57        keep_symbols: true,
58    },
59    target: {
60        android_arm64: {
61            srcs: ["lib_arm64/libfacegraph.so"],
62        },
63        android_arm: {
64            srcs: ["lib_arm/libfacegraph.so"],
65        },
66        android_x86_64: {
67            srcs: ["lib_x86_64/libfacegraph.so"],
68        },
69        android_x86: {
70            srcs: ["lib_x86/libfacegraph.so"],
71        },
72    },
73    shared_libs: [
74        "libc",
75        "libdl",
76        "libEGL",
77        "libGLESv2",
78        "liblog",
79        "libm",
80        "libz",
81    ],
82}
83
84cc_binary {
85    name: "computepipe_face_tracker",
86    srcs: [
87        "FaceTracker.cpp",
88	"ClientSvc.cpp",
89    ],
90    vendor: true,
91    static_libs: [
92        "libcomputepipefaceproto",
93    ],
94    shared_libs: [
95        "liblog",
96        "libbase",
97        "libbinder_ndk",
98        "libutils",
99        "android.hardware.automotive.occupant_awareness-ndk_platform",
100        "libprotobuf-cpp-lite",
101        "android.automotive.computepipe.runner-ndk_platform",
102        "android.automotive.computepipe.registry-ndk_platform",
103    ],
104    cflags: ["-DLOG_TAG=\"FaceTrackerClient\""] + [
105        "-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS",
106        "-Wall",
107        "-Werror",
108        "-Wunused",
109        "-Wunreachable-code",
110        "-Wthread-safety",
111    ],
112}
113
114cc_defaults {
115    name: "libcomputepipeface-defaults",
116
117    proto: {
118        export_proto_headers: true,
119        include_dirs: ["external/protobuf/src"],
120    },
121
122    cflags: [
123        "-Wall",
124        "-Werror",
125        "-Wno-unused-parameter",
126    ],
127
128    srcs: [
129        "*.proto",
130    ],
131}
132
133cc_library {
134    name: "libcomputepipefaceproto",
135    defaults: ["libcomputepipeface-defaults"],
136    host_supported: false,
137    vendor_available: true,
138    target: {
139        android: {
140            proto: {
141                type: "lite",
142            },
143            static_libs: [
144                "libprotobuf-cpp-lite",
145            ],
146            shared: {
147                enabled: false,
148            },
149        },
150    },
151}
152