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 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "device_generic_goldfish_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["device_generic_goldfish_license"], 22} 23 24cc_library_shared { 25 name: "camera.ranchu", 26 vendor: true, 27 relative_install_path: "hw", 28 srcs: [ 29 "EmulatedCameraHal.cpp", 30 "EmulatedCameraFactory.cpp", 31 "EmulatedCameraHotplugThread.cpp", 32 "EmulatedBaseCamera.cpp", 33 "EmulatedCamera.cpp", 34 "EmulatedCameraDevice.cpp", 35 "EmulatedQemuCamera.cpp", 36 "EmulatedQemuCameraDevice.cpp", 37 "EmulatedFakeCamera.cpp", 38 "EmulatedFakeCameraDevice.cpp", 39 "EmulatedFakeRotatingCameraDevice.cpp", 40 "Converters.cpp", 41 "PreviewWindow.cpp", 42 "CallbackNotifier.cpp", 43 "QemuClient.cpp", 44 "JpegCompressor.cpp", 45 "EmulatedCamera2.cpp", 46 "EmulatedFakeCamera2.cpp", 47 "EmulatedQemuCamera2.cpp", 48 "fake-pipeline2/Scene.cpp", 49 "fake-pipeline2/Sensor.cpp", 50 "fake-pipeline2/JpegCompressor.cpp", 51 "EmulatedCamera3.cpp", 52 "EmulatedFakeCamera3.cpp", 53 "CameraRotator.cpp", 54 "EmulatedFakeRotatingCamera3.cpp", 55 "EmulatedQemuCamera3.cpp", 56 "qemu-pipeline3/QemuSensor.cpp", 57 "Exif.cpp", 58 "Thumbnail.cpp", 59 "WorkerThread.cpp", 60 ], 61 shared_libs: [ 62 "libbinder", 63 "libexif", 64 "liblog", 65 "libutils", 66 "libcutils", 67 "libEGL", 68 "libGLESv1_CM", 69 "libGLESv2", 70 "libui", 71 "libdl", 72 "libjpeg", 73 "libcamera_metadata", 74 "libqemupipe.ranchu", 75 ], 76 static_libs: [ 77 "libqemud.ranchu", 78 "android.hardware.camera.common@1.0-helper", 79 "libyuv_static", 80 ], 81 header_libs: [ 82 "libhardware_headers", 83 "media_plugin_headers", 84 "libgralloc_cb.ranchu", 85 ], 86 cflags: [ 87 "-Wno-unused-parameter", 88 "-Wno-c++11-narrowing", 89 ] 90} 91 92cc_binary { 93 name: "emulatorcameratest", 94 vendor: true, 95 relative_install_path: "hw", 96 srcs: ["EmulatorCameraTest.cpp"], 97 shared_libs: [ 98 "camera.ranchu", 99 "libcamera_metadata", 100 "libui", 101 "libutils", 102 ], 103 header_libs: [ 104 "libhardware_headers", 105 "libgralloc_cb.ranchu", 106 ], 107 cflags: [ 108 "-Wno-unused-parameter", 109 ] 110} 111