1/* 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at: 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16package { 17 // See: http://go/android-license-faq 18 // A large-scale-change added 'default_applicable_licenses' to import 19 // all of the 'license_kinds' from "frameworks_av_camera_license" 20 // to get the below license kinds: 21 // SPDX-license-identifier-Apache-2.0 22 default_applicable_licenses: ["frameworks_av_camera_license"], 23} 24 25cc_defaults { 26 name: "camera_defaults", 27 static_libs: [ 28 "libcamera_client", 29 ], 30 shared_libs: [ 31 "libbase", 32 "libcutils", 33 "libutils", 34 "liblog", 35 "libbinder", 36 "libgui", 37 "libcamera_metadata", 38 "libnativewindow", 39 ], 40 fuzz_config: { 41 cc: [ 42 "android-media-fuzzing-reports@google.com", 43 ], 44 componentid: 155276, 45 }, 46} 47 48cc_fuzz { 49 name: "camera_fuzzer", 50 srcs: [ 51 "camera_fuzzer.cpp", 52 ], 53 defaults: [ 54 "camera_defaults", 55 ], 56} 57 58cc_fuzz { 59 name: "camera_c2CaptureRequest_fuzzer", 60 srcs: [ 61 "camera_c2CaptureRequest_fuzzer.cpp", 62 ], 63 defaults: [ 64 "camera_defaults", 65 ], 66} 67 68cc_fuzz { 69 name: "camera_c2ConcurrentCamera_fuzzer", 70 srcs: [ 71 "camera_c2ConcurrentCamera_fuzzer.cpp", 72 ], 73 defaults: [ 74 "camera_defaults", 75 ], 76} 77 78cc_fuzz { 79 name: "camera_c2SubmitInfo_fuzzer", 80 srcs: [ 81 "camera_c2SubmitInfo_fuzzer.cpp", 82 ], 83 defaults: [ 84 "camera_defaults", 85 ], 86} 87 88cc_fuzz { 89 name: "camera_c2SessionConfiguration_fuzzer", 90 srcs: [ 91 "camera_c2SessionConfiguration_fuzzer.cpp", 92 ], 93 defaults: [ 94 "camera_defaults", 95 ], 96} 97 98cc_fuzz { 99 name: "camera_c2OutputConfiguration_fuzzer", 100 srcs: [ 101 "camera_c2OutputConfiguration_fuzzer.cpp", 102 ], 103 defaults: [ 104 "camera_defaults", 105 ], 106} 107 108cc_fuzz { 109 name: "camera_vendorTagDescriptor_fuzzer", 110 srcs: [ 111 "camera_vendorTagDescriptor_fuzzer.cpp", 112 ], 113 defaults: [ 114 "camera_defaults", 115 ], 116 include_dirs: [ 117 "system/media/camera/tests", 118 "system/media/private/camera/include", 119 ], 120} 121 122cc_fuzz { 123 name: "camera_Parameters_fuzzer", 124 srcs: [ 125 "camera_Parameters_fuzzer.cpp", 126 ], 127 defaults: [ 128 "camera_defaults", 129 ], 130} 131 132cc_fuzz { 133 name: "camera_SessionStats_fuzzer", 134 srcs: [ 135 "camera_SessionStats_fuzzer.cpp", 136 ], 137 defaults: [ 138 "camera_defaults", 139 ], 140} 141 142cc_fuzz { 143 name: "camera_captureResult_fuzzer", 144 srcs: [ 145 "camera_captureResult_fuzzer.cpp", 146 ], 147 defaults: [ 148 "camera_defaults", 149 ], 150} 151