• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2011 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_library_shared {
16    name: "camera.ranchu",
17    vendor: true,
18    relative_install_path: "hw",
19    srcs: [
20        "EmulatedCameraHal.cpp",
21        "EmulatedCameraFactory.cpp",
22        "EmulatedCameraHotplugThread.cpp",
23        "EmulatedBaseCamera.cpp",
24        "EmulatedCamera.cpp",
25        "EmulatedCameraDevice.cpp",
26        "EmulatedQemuCamera.cpp",
27        "EmulatedQemuCameraDevice.cpp",
28        "EmulatedFakeCamera.cpp",
29        "EmulatedFakeCameraDevice.cpp",
30        "EmulatedFakeRotatingCameraDevice.cpp",
31        "Converters.cpp",
32        "PreviewWindow.cpp",
33        "CallbackNotifier.cpp",
34        "QemuClient.cpp",
35        "JpegCompressor.cpp",
36        "EmulatedCamera2.cpp",
37        "EmulatedFakeCamera2.cpp",
38        "EmulatedQemuCamera2.cpp",
39        "fake-pipeline2/Scene.cpp",
40        "fake-pipeline2/Sensor.cpp",
41        "fake-pipeline2/JpegCompressor.cpp",
42        "EmulatedCamera3.cpp",
43        "EmulatedFakeCamera3.cpp",
44        "EmulatedQemuCamera3.cpp",
45        "qemu-pipeline3/QemuSensor.cpp",
46        "Exif.cpp",
47        "Thumbnail.cpp",
48        "WorkerThread.cpp",
49    ],
50    shared_libs: [
51        "libbinder",
52        "libexif",
53        "liblog",
54        "libutils",
55        "libcutils",
56        "libEGL",
57        "libGLESv1_CM",
58        "libGLESv2",
59        "libui",
60        "libdl",
61        "libjpeg",
62        "libcamera_metadata",
63        "libui",
64        "android.hardware.graphics.mapper@2.0",
65        "libqemupipe.ranchu",
66    ],
67    static_libs: [
68        "libqemud.ranchu",
69        "android.hardware.camera.common@1.0-helper",
70        "libyuv_static",
71    ],
72    header_libs: [
73        "libhardware_headers",
74        "media_plugin_headers",
75        "libgralloc_cb.ranchu",
76    ],
77    cflags: [
78        "-Wno-unused-parameter",
79        "-Wno-c++11-narrowing",
80    ]
81}
82
83cc_binary {
84    name: "emulatorcameratest",
85    vendor: true,
86    relative_install_path: "hw",
87    srcs: ["EmulatorCameraTest.cpp"],
88    shared_libs: [
89        "camera.ranchu",
90        "libcamera_metadata",
91        "libui",
92        "libutils",
93    ],
94    header_libs: [
95        "libhardware_headers",
96        "libgralloc_cb.ranchu",
97    ],
98    cflags: [
99        "-Wno-unused-parameter",
100    ]
101}
102