blob: 74b8eb8d93e9ffe00e60a8938174d401333fda80 [file] [log] [blame]
Bob Badour3306e492021-02-25 15:35:37 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_native_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_native_license"],
8}
9
Steven Moreland88b1d3c2019-10-14 17:19:28 -070010cc_fuzz {
11 name: "binder_parcel_fuzzer",
Steven Moreland28f81422019-10-03 10:40:59 -070012 defaults: ["libbinder_ndk_host_user"],
Steven Moreland46e0da72019-09-05 15:52:02 -070013 host_supported: true,
Steven Moreland97d4e1a2019-10-29 14:24:26 -070014
15 fuzz_config: {
16 cc: ["smoreland@google.com"],
17 },
18
Steven Moreland46e0da72019-09-05 15:52:02 -070019 srcs: [
20 "binder.cpp",
Steven Moreland28f81422019-10-03 10:40:59 -070021 "binder_ndk.cpp",
Steven Moreland46e0da72019-09-05 15:52:02 -070022 "hwbinder.cpp",
23 "main.cpp",
Steven Moreland5e561af2020-10-08 02:16:03 +000024 "random_fd.cpp",
25 "random_parcel.cpp",
Steven Moreland46e0da72019-09-05 15:52:02 -070026 "util.cpp",
27 ],
28 static_libs: [
29 "libbase",
Steven Moreland362e4da2020-10-16 19:49:39 +000030 "libbinder_random_parcel",
Steven Moreland46e0da72019-09-05 15:52:02 -070031 "libcgrouprc",
32 "libcgrouprc_format",
33 "libcutils",
34 "libhidlbase",
35 "liblog",
36 "libprocessgroup",
37 "libjsoncpp",
38 "libutils",
39 ],
40
41 target: {
42 android: {
Steven Moreland28f81422019-10-03 10:40:59 -070043 shared_libs: [
44 "libbinder_ndk",
45 "libbinder",
46 ],
Steven Moreland46e0da72019-09-05 15:52:02 -070047 },
48 host: {
Steven Moreland28f81422019-10-03 10:40:59 -070049 static_libs: [
50 "libbinder_ndk",
51 "libbinder",
52 ],
Steven Moreland46e0da72019-09-05 15:52:02 -070053 },
54 },
Steven Moreland88b1d3c2019-10-14 17:19:28 -070055 // This flag enables verbose output in the fuzz target, and is very useful
56 // for debugging a failure. If you are trying to diagnose how a crash was
57 // produced, you may find uncommenting the below line very useful.
58 // cflags: ["-DENABLE_LOG_FUZZ"],
Steven Moreland46e0da72019-09-05 15:52:02 -070059}
Steven Moreland362e4da2020-10-16 19:49:39 +000060
61cc_library_static {
62 name: "libbinder_random_parcel",
63 host_supported: true,
Yifan Hongf856a982020-10-30 14:51:17 -070064 target: {
65 darwin: {
66 enabled: false,
67 }
68 },
Steven Moreland362e4da2020-10-16 19:49:39 +000069 srcs: [
70 "random_fd.cpp",
71 "random_parcel.cpp",
72 ],
73 shared_libs: [
74 "libbase",
75 "libbinder",
76 "libcutils",
77 "libutils",
78 ],
79 local_include_dirs: ["include_random_parcel"],
80 export_include_dirs: ["include_random_parcel"],
81}