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