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 "android.frameworks.sensorservice@1.0", 28 "android.hardware.graphics.mapper@2.0", 29 "android.hardware.graphics.mapper@3.0", 30 "android.hardware.graphics.mapper@4.0", 31 "android.hardware.camera.provider@2.4", 32 "android.hardware.camera.provider@2.5", 33 "android.hardware.camera.provider@2.6", 34 "android.hardware.camera.provider@2.7", 35 "android.hardware.sensors@1.0", 36 "android.hidl.allocator@1.0", 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 ], 54 static_libs: [ 55 "android.hardware.camera.common@1.0-helper", 56 "libgooglecamerahwl_sensor_impl", 57 ], 58 include_dirs: [ 59 "system/media/private/camera/include", 60 ], 61 header_libs: [ 62 "libgooglecamerahal_headers", 63 ], 64} 65 66cc_library_shared { 67 name: "libgooglecamerahwl_impl", 68 defaults: ["libgooglecamerahwl_impl_defaults"], 69} 70 71cc_library_shared { 72 name: "libgooglecamerahwl_impl_fast_scene_cycle", 73 defaults: ["libgooglecamerahwl_impl_defaults"], 74 stem: "libgooglecamerahwl_impl", 75 cflags: ["-DFAST_SCENE_CYCLE"], 76 // Never installed to /vendor, only used inside an APEX. 77 installable: false, 78} 79 80cc_library_static { 81 name: "libgooglecamerahwl_sensor_impl", 82 owner: "google", 83 proprietary: true, 84 host_supported: true, 85 86 srcs: [ 87 "EmulatedScene.cpp", 88 "EmulatedSensor.cpp", 89 "JpegCompressor.cpp", 90 "utils/ExifUtils.cpp", 91 "utils/HWLUtils.cpp", 92 "utils/StreamConfigurationMap.cpp", 93 ], 94 95 header_libs: [ 96 "libhardware_headers", 97 ], 98 99 shared_libs: [ 100 "libcamera_metadata", 101 "libcutils", 102 "libexif", 103 "libjpeg", 104 "liblog", 105 "libyuv", 106 ], 107 108 static_libs: [ 109 "android.hardware.graphics.common@1.1", 110 "android.hardware.graphics.common@1.2", 111 ], 112 113 include_dirs: [ 114 "system/media/private/camera/include", 115 "hardware/google/camera/common/hal/common", 116 "hardware/google/camera/common/hal/hwl_interface", 117 "hardware/google/camera/common/hal/utils", 118 ], 119 120 export_include_dirs: ["."], 121 122 cflags: [ 123 "-Werror", 124 "-Wextra", 125 "-Wall", 126 ], 127} 128