blob: b1263e8d8e56fc11758c5a7fc731f938c776fd95 [file] [log] [blame]
Corbin Souffrant84f5c0f2020-06-26 00:42:43 -07001//
2// Copyright (C) 2020 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
Bob Badour3c538232021-02-12 21:26:48 -080017package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "frameworks_native_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["frameworks_native_license"],
24}
25
Corbin Souffrant84f5c0f2020-06-26 00:42:43 -070026cc_defaults {
27 name: "binder_fuzz_defaults",
28 host_supported: true,
29 cflags: [
30 "-Wall",
31 "-Werror",
32 ],
33 shared_libs: [
34 "libbinder",
35 "libutils",
36 "libbase",
37 ],
Yifan Hongf856a982020-10-30 14:51:17 -070038 target: {
39 darwin: {
40 enabled: false,
41 }
42 }
Corbin Souffrant84f5c0f2020-06-26 00:42:43 -070043}
44
45cc_fuzz {
46 name: "binder_binderFuzz",
47 defaults: ["binder_fuzz_defaults"],
48 srcs: ["BinderFuzz.cpp"],
49}
50
51cc_fuzz {
52 name: "binder_bpBinderFuzz",
53 defaults: ["binder_fuzz_defaults"],
54 host_supported: false,
55 srcs: ["BpBinderFuzz.cpp"],
56}
57
58cc_fuzz {
59 name: "binder_persistableBundleFuzz",
60 defaults: ["binder_fuzz_defaults"],
61 srcs: ["PersistableBundleFuzz.cpp"],
62}
63
64cc_fuzz {
65 name: "binder_stabilityFuzz",
66 defaults: ["binder_fuzz_defaults"],
67 srcs: ["StabilityFuzz.cpp"],
68}
69
70cc_fuzz {
71 name: "binder_statusFuzz",
72 defaults: ["binder_fuzz_defaults"],
73 srcs: ["StatusFuzz.cpp"],
74}
75
76cc_fuzz {
77 name: "binder_textOutputFuzz",
78 defaults: ["binder_fuzz_defaults"],
79 srcs: ["TextOutputFuzz.cpp"],
80}
Michael Ensing4d90d802020-07-19 16:32:43 -070081
82cc_fuzz {
83 name: "binder_bufferedTextOutputFuzz",
84 include_dirs: [
85 "frameworks/native/libs/binder",
86 ],
87 defaults: ["binder_fuzz_defaults"],
88 srcs: ["BufferedTextOutputFuzz.cpp"],
89}
90
91cc_fuzz {
92 name: "binder_memoryDealerFuzz",
93 defaults: ["binder_fuzz_defaults"],
94 srcs: ["MemoryDealerFuzz.cpp"],
95}