| Aditya Wazir | 55fec45 | 2021-08-27 17:47:41 +0530 | [diff] [blame] | 1 | /* | 
|  | 2 | * Copyright (C) 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 | */ | 
|  | 16 | cc_defaults { | 
|  | 17 | name: "updateEngineFuzzer_defaults", | 
|  | 18 | static_libs: [ | 
|  | 19 | "libupdate_engine_android", | 
|  | 20 | "libavb", | 
|  | 21 | "libavb_user", | 
|  | 22 | "gkiprops", | 
|  | 23 | "libpayload_consumer", | 
|  | 24 | "libupdate_engine_boot_control", | 
|  | 25 | "PlatformProperties", | 
|  | 26 | ], | 
|  | 27 | shared_libs: [ | 
|  | 28 | "apex_aidl_interface-cpp", | 
|  | 29 | "libandroid_net", | 
|  | 30 | "libbase", | 
|  | 31 | "libbinder", | 
|  | 32 | "libbinderwrapper", | 
|  | 33 | "libbootloader_message", | 
|  | 34 | "libbrillo-binder", | 
|  | 35 | "libcurl", | 
|  | 36 | "libcutils", | 
|  | 37 | "libupdate_engine_stable-V1-cpp", | 
|  | 38 | "liblog", | 
|  | 39 | "libssl", | 
|  | 40 | "libstatslog", | 
|  | 41 | "libutils", | 
|  | 42 | "libbrillo-stream", | 
|  | 43 | "libbrillo", | 
|  | 44 | "libchrome", | 
|  | 45 | ], | 
|  | 46 | include_dirs: ["system"], | 
|  | 47 | fuzz_config: { | 
|  | 48 | cc: [ | 
|  | 49 | "android-ota@google.com", | 
|  | 50 | ], | 
|  | 51 | componentid: 155276, | 
|  | 52 | }, | 
|  | 53 | } | 
|  | 54 |  | 
|  | 55 | cc_fuzz { | 
|  | 56 | name: "updateEngine_downloadAction_fuzzer", | 
|  | 57 | srcs: [ | 
|  | 58 | "updateEngine_downloadAction_fuzzer.cpp", | 
|  | 59 | ], | 
|  | 60 | defaults: [ | 
|  | 61 | "updateEngineFuzzer_defaults", | 
|  | 62 | "libupdate_engine_boot_control_exports", | 
|  | 63 | "libpayload_consumer_exports", | 
|  | 64 | ], | 
|  | 65 | cflags: [ | 
|  | 66 | "-Wno-unused-parameter", | 
|  | 67 | ], | 
|  | 68 | } |