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