Chia-I Wu | 34dc4dd | 2017-12-27 13:46:06 -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 | vendor: true, |
| 18 | |
| 19 | clang: true, |
| 20 | cflags: [ |
| 21 | "-Wall", |
| 22 | "-Werror", |
Chia-I Wu | 34dc4dd | 2017-12-27 13:46:06 -0800 | [diff] [blame] | 23 | ], |
| 24 | cppflags: [ |
Colin Cross | d180b2b | 2019-11-08 13:08:36 -0800 | [diff] [blame] | 25 | "-Wextra", |
Chia-I Wu | 34dc4dd | 2017-12-27 13:46:06 -0800 | [diff] [blame] | 26 | "-Wunused", |
| 27 | "-Wunreachable-code", |
| 28 | |
Chia-I Wu | 34dc4dd | 2017-12-27 13:46:06 -0800 | [diff] [blame] | 29 | // Disabling warning specific to hwc2on1adapter code |
Chia-I Wu | 34dc4dd | 2017-12-27 13:46:06 -0800 | [diff] [blame] | 30 | "-Wno-sign-compare", |
Chia-I Wu | 34dc4dd | 2017-12-27 13:46:06 -0800 | [diff] [blame] | 31 | ], |
| 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 | } |