2 // Copyright (C) 2016 The Android Open Source Project
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 name: "perfprofd_defaults",
25 // Try some more extreme warnings.
27 "-Wunreachable-code-aggressive",
28 // And disable some dumb things.
29 "-Wno-zero-length-array",
30 "-Wno-c99-extensions",
31 "-Wno-language-extension-token",
32 "-Wno-gnu-zero-variadic-macro-arguments",
33 "-Wno-nested-anon-types",
34 "-Wno-gnu-statement-expression",
39 "-Wno-unused-parameter",
44 name: "perfprofd_debug_defaults",
52 // Add sanitizers that work w/o extra libraries. This is important
53 // for atest etc to work.
55 integer_overflow: true,
60 // On the host add ASAN.
70 // Static library containing guts of AWP daemon.
74 name: "libperfprofdcore_defaults",
87 "libsimpleperf_elf_read",
93 "perfprofd_record.proto",
94 "perf_data_converter.cc",
98 "perfprofd_cmdline.cc",
104 export_proto_headers: true,
105 include_dirs: ["external/perf_data_converter/src/quipper"],
109 "-Wno-gnu-anonymous-struct",
112 export_include_dirs: ["."],
116 name: "libperfprofdcore",
118 "libperfprofdcore_defaults",
124 name: "libperfprofdcored",
126 "libperfprofdcore_defaults",
127 "perfprofd_debug_defaults",
138 "perfprofd_defaults",
147 "libperfprofd_binder",
148 "libsimpleperf_elf_read",
150 group_static_libs: true,
154 "libprotobuf-cpp-lite",
161 init_rc: ["perfprofd.rc"],
169 // We're technically independent, but ensure simpleperf is there.