2 // Copyright (C) 2018 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: "simpleperf_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",
36 "-Wno-extended-offsetof",
40 "-Wno-unused-parameter",
45 name: "libsimpleperf_elf_read",
47 "simpleperf_defaults",
51 export_include_dirs: [
55 // TODO: fix or workaround this.
57 "-DSIMPLEPERF_REVISION=\"dummy\"",
63 // Use whole-static to avoid having to pull this in later.
92 group_static_libs: true,