blob: 420a1f6066d0b606724f8caa3cd7cd9f0baab237 [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",
Logan Chiena3896502017-05-16 13:15:49 +080017 vendor: true,
Fabien Sanglarde29055f2017-03-08 11:36:46 -080018
19 clang: true,
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070020 cflags: [
21 "-Wall",
22 "-Werror",
23 "-Wno-user-defined-warnings",
24 ],
Fabien Sanglarde29055f2017-03-08 11:36:46 -080025 cppflags: [
26 "-Weverything",
Fabien Sanglarde29055f2017-03-08 11:36:46 -080027 "-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 Sanglard5b78aa42017-03-21 09:20:26 -070056 "-Wno-shorten-64-to-32",
57 "-Wno-sign-compare",
58 "-Wno-missing-prototypes",
Fabien Sanglarde29055f2017-03-08 11:36:46 -080059 ],
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}