1 // Copyright 2010 The Android Open Source Project
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
16 name: "libhwc2on1adapter",
26 // The static constructors and destructors in this library have not been noted to
27 // introduce significant overheads
28 "-Wno-exit-time-destructors",
29 "-Wno-global-constructors",
31 // We only care about compiling as C++14
32 "-Wno-c++98-compat-pedantic",
34 // android/sensors.h uses nested anonymous unions and anonymous structs
35 "-Wno-nested-anon-types",
36 "-Wno-gnu-anonymous-struct",
38 // Don't warn about struct padding
41 // hwcomposer2.h features switch covering all cases.
42 "-Wno-covered-switch-default",
44 // hwcomposer.h features zero size array.
45 "-Wno-zero-length-array",
47 // Disabling warning specific to hwc2on1adapter code
48 "-Wno-double-promotion",
49 "-Wno-sign-conversion",
52 "-Wno-shorten-64-to-32",
54 "-Wno-missing-prototypes",
69 export_include_dirs: ["include"],
71 export_shared_lib_headers: ["libutils"],