blob: ec7a0b927a59eb3b3dcb3de66b0d2d9e7102fc7b [file] [log] [blame]
Chia-I Wu34dc4dd2017-12-27 13:46:06 -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 vendor: true,
18
19 clang: true,
20 cflags: [
21 "-Wall",
22 "-Werror",
Chia-I Wu34dc4dd2017-12-27 13:46:06 -080023 ],
24 cppflags: [
Colin Crossd180b2b2019-11-08 13:08:36 -080025 "-Wextra",
Chia-I Wu34dc4dd2017-12-27 13:46:06 -080026 "-Wunused",
27 "-Wunreachable-code",
28
Chia-I Wu34dc4dd2017-12-27 13:46:06 -080029 // Disabling warning specific to hwc2on1adapter code
Chia-I Wu34dc4dd2017-12-27 13:46:06 -080030 "-Wno-sign-compare",
Chia-I Wu34dc4dd2017-12-27 13:46:06 -080031 ],
32
33 srcs: [
34 "HWC2On1Adapter.cpp",
35 "MiniFence.cpp",
36 ],
37
38 shared_libs: [
39 "libutils",
40 "libcutils",
41 "liblog",
42 "libhardware",
43 ],
44
45 export_include_dirs: ["include"],
46
47 export_shared_lib_headers: ["libutils"],
48}