1package {
2    // See: http://go/android-license-faq
3    default_applicable_licenses: ["Android-Apache-2.0"],
4}
5
6cc_defaults {
7    name: "libgooglecamerahwl_impl_defaults",
8    owner: "google",
9    proprietary: true,
10    srcs: [
11        "EmulatedCameraProviderHWLImpl.cpp",
12        "EmulatedCameraDeviceInfo.cpp",
13        "EmulatedCameraDeviceHWLImpl.cpp",
14        "EmulatedCameraDeviceSessionHWLImpl.cpp",
15        "EmulatedLogicalRequestState.cpp",
16        "EmulatedRequestProcessor.cpp",
17        "EmulatedRequestState.cpp",
18        "EmulatedTorchState.cpp",
19        "GrallocSensorBuffer.cpp",
20    ],
21    cflags: [
22        "-Werror",
23        "-Wextra",
24        "-Wall",
25    ],
26    shared_libs: [
27        "[email protected]",
28        "[email protected]",
29        "[email protected]",
30        "[email protected]",
31        "[email protected]",
32        "[email protected]",
33        "[email protected]",
34        "[email protected]",
35        "[email protected]",
36        "[email protected]",
37        "lib_profiler",
38        "libbase",
39        "libcamera_metadata",
40        "libcutils",
41        "libexif",
42        "libgralloctypes",
43        "libhardware",
44        "libhidlbase",
45        "libgooglecamerahalutils",
46        "libjpeg",
47        "libjsoncpp",
48        "liblog",
49        "libsync",
50        "libui",
51        "libutils",
52        "libyuv",
53        "libultrahdr",
54    ],
55    static_libs: [
56        "[email protected]",
57        "libgooglecamerahwl_sensor_impl",
58    ],
59    include_dirs: [
60        "system/media/private/camera/include",
61    ],
62    header_libs: [
63        "libgooglecamerahal_headers",
64    ],
65}
66
67cc_library_shared {
68    name: "libgooglecamerahwl_impl",
69    defaults: ["libgooglecamerahwl_impl_defaults"],
70}
71
72cc_library_shared {
73    name: "libgooglecamerahwl_impl_fast_scene_cycle",
74    defaults: ["libgooglecamerahwl_impl_defaults"],
75    stem: "libgooglecamerahwl_impl",
76    cflags: ["-DFAST_SCENE_CYCLE"],
77    // Never installed to /vendor, only used inside an APEX.
78    installable: false,
79}
80
81cc_library_static {
82    name: "libgooglecamerahwl_sensor_impl",
83    owner: "google",
84    proprietary: true,
85    host_supported: true,
86    defaults: ["android.hardware.graphics.common-ndk_shared"],
87
88    srcs: [
89        "EmulatedScene.cpp",
90        "EmulatedSensor.cpp",
91        "JpegCompressor.cpp",
92        "utils/ExifUtils.cpp",
93        "utils/HWLUtils.cpp",
94        "utils/StreamConfigurationMap.cpp",
95    ],
96
97    header_libs: [
98        "libhardware_headers",
99    ],
100
101    shared_libs: [
102        "libcamera_metadata",
103        "libcutils",
104        "libexif",
105        "libjpeg",
106        "liblog",
107        "libyuv",
108        "libultrahdr",
109    ],
110
111    static_libs: [
112        "[email protected]",
113        "[email protected]",
114    ],
115
116    include_dirs: [
117        "system/media/private/camera/include",
118        "hardware/google/camera/common/hal/common",
119        "hardware/google/camera/common/hal/hwl_interface",
120        "hardware/google/camera/common/hal/utils",
121    ],
122
123    export_include_dirs: ["."],
124
125    cflags: [
126        "-Werror",
127        "-Wextra",
128        "-Wall",
129    ],
130}
131