1/*
2 * Copyright (C) 2023 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
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_binary {
22    name: "android.hardware.camera.provider.ranchu",
23    vendor: true,
24    relative_install_path: "hw",
25    init_rc: ["android.hardware.camera.provider.ranchu.rc"],
26    vintf_fragments: ["android.hardware.camera.provider.ranchu.xml"],
27    srcs: [
28        "abc3d.cpp",
29        "acircles_pattern_512_512.cpp",
30        "AFStateMachine.cpp",
31        "AutoNativeHandle.cpp",
32        "CachedStreamBuffer.cpp",
33        "CameraDevice.cpp",
34        "CameraDeviceSession.cpp",
35        "CameraProvider.cpp",
36        "converters.cpp",
37        "exif.cpp",
38        "FakeRotatingCamera.cpp",
39        "HwCamera.cpp",
40        "jpeg.cpp",
41        "list_fake_rotating_cameras.cpp",
42        "list_qemu_cameras.cpp",
43        "main.cpp",
44        "metadata_utils.cpp",
45        "QemuCamera.cpp",
46        "qemu_channel.cpp",
47        "StreamBufferCache.cpp",
48        "service_entry.cpp",
49        "utils.cpp",
50        "yuv.cpp",
51    ],
52    shared_libs: [
53        "libbase",
54        "libbinder",
55        "libbinder_ndk",
56        "libcamera_metadata",
57        "libcutils",
58        "libEGL",
59        "libexif",
60        "libfmq",
61        "libGLESv2",
62        "libgralloctypes",
63        "libjpeg",
64        "liblog",
65        "libprocessgroup",
66        "libsync",
67        "libui",
68        "libutils",
69    ],
70    static_libs: [
71        "android.hardware.common-V2-ndk",
72        "android.hardware.common.fmq-V1-ndk",
73        "android.hardware.camera.common-V1-ndk",
74        "android.hardware.camera.device-V1-ndk",
75        "android.hardware.camera.provider-V1-ndk",
76        "libaidlcommonsupport",
77        "libqemud.ranchu",
78        "libqemupipe.ranchu",
79        "libyuv_static",
80    ],
81    header_libs: [
82        "libdebug.ranchu",
83        "libgralloc_cb.ranchu",
84    ],
85    cflags: [
86        "-DLOG_TAG=\"camera.provider.ranchu\"",
87    ],
88}
89