blob: 3e6fe99541cb52bf6f27ed3e14efea9dac2c5172 [file] [log] [blame]
Steven Moreland88b1d3c2019-10-14 17:19:28 -07001cc_fuzz {
2 name: "binder_parcel_fuzzer",
Steven Moreland28f81422019-10-03 10:40:59 -07003 defaults: ["libbinder_ndk_host_user"],
Steven Moreland46e0da72019-09-05 15:52:02 -07004 host_supported: true,
Steven Moreland97d4e1a2019-10-29 14:24:26 -07005
6 fuzz_config: {
7 cc: ["smoreland@google.com"],
8 },
9
Steven Moreland46e0da72019-09-05 15:52:02 -070010 srcs: [
11 "binder.cpp",
Steven Moreland28f81422019-10-03 10:40:59 -070012 "binder_ndk.cpp",
Steven Moreland46e0da72019-09-05 15:52:02 -070013 "hwbinder.cpp",
14 "main.cpp",
Steven Moreland5e561af2020-10-08 02:16:03 +000015 "random_fd.cpp",
16 "random_parcel.cpp",
Steven Moreland46e0da72019-09-05 15:52:02 -070017 "util.cpp",
18 ],
19 static_libs: [
20 "libbase",
Steven Moreland362e4da2020-10-16 19:49:39 +000021 "libbinder_random_parcel",
Steven Moreland46e0da72019-09-05 15:52:02 -070022 "libcgrouprc",
23 "libcgrouprc_format",
24 "libcutils",
25 "libhidlbase",
26 "liblog",
27 "libprocessgroup",
28 "libjsoncpp",
29 "libutils",
30 ],
31
32 target: {
33 android: {
Steven Moreland28f81422019-10-03 10:40:59 -070034 shared_libs: [
35 "libbinder_ndk",
36 "libbinder",
37 ],
Steven Moreland46e0da72019-09-05 15:52:02 -070038 },
39 host: {
Steven Moreland28f81422019-10-03 10:40:59 -070040 static_libs: [
41 "libbinder_ndk",
42 "libbinder",
43 ],
Steven Moreland46e0da72019-09-05 15:52:02 -070044 },
45 },
Steven Moreland88b1d3c2019-10-14 17:19:28 -070046 // This flag enables verbose output in the fuzz target, and is very useful
47 // for debugging a failure. If you are trying to diagnose how a crash was
48 // produced, you may find uncommenting the below line very useful.
49 // cflags: ["-DENABLE_LOG_FUZZ"],
Steven Moreland46e0da72019-09-05 15:52:02 -070050}
Steven Moreland362e4da2020-10-16 19:49:39 +000051
52cc_library_static {
53 name: "libbinder_random_parcel",
54 host_supported: true,
Yifan Hongf856a982020-10-30 14:51:17 -070055 target: {
56 darwin: {
57 enabled: false,
58 }
59 },
Steven Moreland362e4da2020-10-16 19:49:39 +000060 srcs: [
61 "random_fd.cpp",
62 "random_parcel.cpp",
63 ],
64 shared_libs: [
65 "libbase",
66 "libbinder",
67 "libcutils",
68 "libutils",
69 ],
70 local_include_dirs: ["include_random_parcel"],
71 export_include_dirs: ["include_random_parcel"],
72}