Fabien Sanglard | e29055f | 2017-03-08 11:36:46 -0800 | [diff] [blame] | 1 | // Copyright 2010 The Android Open Source Project |
| 2 | // |
| 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 |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 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. |
| 14 | |
| 15 | cc_library_shared { |
| 16 | name: "libhwc2on1adapter", |
| 17 | |
| 18 | clang: true, |
| 19 | cppflags: [ |
| 20 | "-Weverything", |
| 21 | "-Wall", |
| 22 | "-Wunused", |
| 23 | "-Wunreachable-code", |
| 24 | |
| 25 | // The static constructors and destructors in this library have not been noted to |
| 26 | // introduce significant overheads |
| 27 | "-Wno-exit-time-destructors", |
| 28 | "-Wno-global-constructors", |
| 29 | |
| 30 | // We only care about compiling as C++14 |
| 31 | "-Wno-c++98-compat-pedantic", |
| 32 | |
| 33 | // android/sensors.h uses nested anonymous unions and anonymous structs |
| 34 | "-Wno-nested-anon-types", |
| 35 | "-Wno-gnu-anonymous-struct", |
| 36 | |
| 37 | // Don't warn about struct padding |
| 38 | "-Wno-padded", |
| 39 | |
| 40 | // hwcomposer2.h features switch covering all cases. |
| 41 | "-Wno-covered-switch-default", |
| 42 | |
| 43 | // hwcomposer.h features zero size array. |
| 44 | "-Wno-zero-length-array", |
| 45 | |
| 46 | // Disabling warning specific to hwc2on1adapter code |
| 47 | "-Wno-double-promotion", |
| 48 | "-Wno-sign-conversion", |
| 49 | "-Wno-switch-enum", |
| 50 | "-Wno-float-equal", |
Fabien Sanglard | 5b78aa4 | 2017-03-21 09:20:26 -0700 | [diff] [blame] | 51 | "-Wno-shorten-64-to-32", |
| 52 | "-Wno-sign-compare", |
| 53 | "-Wno-missing-prototypes", |
Fabien Sanglard | e29055f | 2017-03-08 11:36:46 -0800 | [diff] [blame] | 54 | ], |
| 55 | |
| 56 | srcs: [ |
| 57 | "HWC2On1Adapter.cpp", |
| 58 | "MiniFence.cpp", |
| 59 | ], |
| 60 | |
| 61 | shared_libs: [ |
| 62 | "libutils", |
| 63 | "libcutils", |
| 64 | "liblog", |
| 65 | "libhardware", |
| 66 | ], |
| 67 | |
| 68 | export_include_dirs: ["include"], |
| 69 | |
| 70 | export_shared_lib_headers: ["libutils"], |
| 71 | } |