Devendra Singhi | 6bb90f0 | 2021-12-02 09:42:35 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2021 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 | */ |
Bob Badour | 82a2ae9 | 2022-07-14 12:23:19 -0700 | [diff] [blame] | 16 | package { |
| 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_native_license" |
| 20 | // to get the below license kinds: |
| 21 | // SPDX-license-identifier-Apache-2.0 |
| 22 | default_applicable_licenses: ["frameworks_native_license"], |
| 23 | } |
| 24 | |
Devendra Singhi | 6bb90f0 | 2021-12-02 09:42:35 +0530 | [diff] [blame] | 25 | cc_defaults { |
| 26 | name: "libgui_fuzzer_defaults", |
| 27 | static_libs: [ |
| 28 | "android.hidl.token@1.0-utils", |
| 29 | "libbinder_random_parcel", |
| 30 | "libgui_aidl_static", |
| 31 | "libgui_window_info_static", |
| 32 | "libpdx", |
| 33 | "libgmock", |
| 34 | "libgui_mocks", |
| 35 | "libgmock_ndk", |
| 36 | "libgmock_main", |
| 37 | "libgtest_ndk_c++", |
| 38 | "libgmock_main_ndk", |
| 39 | "librenderengine_mocks", |
| 40 | "perfetto_trace_protos", |
| 41 | "libcompositionengine_mocks", |
| 42 | "perfetto_trace_protos", |
| 43 | ], |
| 44 | shared_libs: [ |
| 45 | "android.hardware.configstore@1.0", |
| 46 | "android.hardware.configstore-utils", |
| 47 | "android.hardware.graphics.bufferqueue@1.0", |
| 48 | "android.hardware.graphics.bufferqueue@2.0", |
| 49 | "android.hardware.power-V2-cpp", |
| 50 | "android.hidl.token@1.0", |
| 51 | "libSurfaceFlingerProp", |
| 52 | "libgui", |
| 53 | "libbase", |
| 54 | "liblog", |
| 55 | "libEGL", |
| 56 | "libGLESv2", |
| 57 | "libbinder", |
| 58 | "libcutils", |
| 59 | "libhidlbase", |
| 60 | "libinput", |
| 61 | "libui", |
| 62 | "libutils", |
| 63 | "libnativewindow", |
| 64 | "libvndksupport", |
| 65 | "libbufferhubqueue", |
| 66 | ], |
| 67 | header_libs: [ |
| 68 | "libdvr_headers", |
| 69 | "libui_fuzzableDataspaces_headers", |
| 70 | ], |
| 71 | fuzz_config: { |
| 72 | cc: [ |
| 73 | "android-media-fuzzing-reports@google.com", |
| 74 | ], |
| 75 | componentid: 155276, |
| 76 | }, |
| 77 | } |
| 78 | |
| 79 | cc_fuzz { |
| 80 | name: "libgui_surfaceComposer_fuzzer", |
| 81 | srcs: [ |
| 82 | "libgui_surfaceComposer_fuzzer.cpp", |
| 83 | ], |
| 84 | defaults: [ |
| 85 | "libgui_fuzzer_defaults", |
| 86 | ], |
| 87 | } |
Devendra Singhi | 0cf3045 | 2021-12-02 09:49:28 +0530 | [diff] [blame] | 88 | |
| 89 | cc_fuzz { |
| 90 | name: "libgui_surfaceComposerClient_fuzzer", |
| 91 | srcs: [ |
| 92 | "libgui_surfaceComposerClient_fuzzer.cpp", |
| 93 | ], |
| 94 | defaults: [ |
| 95 | "libgui_fuzzer_defaults", |
| 96 | ], |
| 97 | } |
Devendra Singhi | 447a9e6 | 2021-12-02 09:54:31 +0530 | [diff] [blame] | 98 | |
| 99 | cc_fuzz { |
| 100 | name: "libgui_parcelable_fuzzer", |
| 101 | srcs: [ |
| 102 | "libgui_parcelable_fuzzer.cpp", |
| 103 | ], |
| 104 | defaults: [ |
| 105 | "libgui_fuzzer_defaults", |
| 106 | ], |
| 107 | } |
Devendra Singhi | 42cb44a | 2021-12-02 09:58:34 +0530 | [diff] [blame] | 108 | |
| 109 | cc_fuzz { |
| 110 | name: "libgui_bufferQueue_fuzzer", |
| 111 | srcs: [ |
| 112 | "libgui_bufferQueue_fuzzer.cpp", |
| 113 | ], |
| 114 | defaults: [ |
| 115 | "libgui_fuzzer_defaults", |
| 116 | ], |
| 117 | } |
Devendra Singhi | e387a12 | 2021-12-02 10:13:52 +0530 | [diff] [blame] | 118 | |
| 119 | cc_fuzz { |
| 120 | name: "libgui_consumer_fuzzer", |
| 121 | srcs: [ |
| 122 | "libgui_consumer_fuzzer.cpp", |
| 123 | ], |
| 124 | defaults: [ |
| 125 | "libgui_fuzzer_defaults", |
| 126 | ], |
| 127 | } |
Devendra Singhi | becdc80 | 2021-12-02 10:16:07 +0530 | [diff] [blame^] | 128 | |
| 129 | cc_fuzz { |
| 130 | name: "libgui_displayEvent_fuzzer", |
| 131 | srcs: [ |
| 132 | "libgui_displayEvent_fuzzer.cpp", |
| 133 | ], |
| 134 | defaults: [ |
| 135 | "libgui_fuzzer_defaults", |
| 136 | ], |
| 137 | } |