blob: 2be3e675be06fbcfcd8f40e3ea28cb3fc0ef8279 [file] [log] [blame]
Fabien Sanglarde29055f2017-03-08 11:36:46 -08001// 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
15cc_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",
51 ],
52
53 srcs: [
54 "HWC2On1Adapter.cpp",
55 "MiniFence.cpp",
56 ],
57
58 shared_libs: [
59 "libutils",
60 "libcutils",
61 "liblog",
62 "libhardware",
63 ],
64
65 export_include_dirs: ["include"],
66
67 export_shared_lib_headers: ["libutils"],
68}