Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 1 | // Copyright 2019 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 | |
Alec Mouri | cc44522 | 2019-10-22 10:19:17 -0700 | [diff] [blame] | 15 | ndk_headers { |
Alec Mouri | 50a931d | 2019-11-19 16:23:59 -0800 | [diff] [blame] | 16 | name: "libnativedisplay_ndk_headers", |
Alec Mouri | cc44522 | 2019-10-22 10:19:17 -0700 | [diff] [blame] | 17 | from: "include/android", |
| 18 | to: "android", |
| 19 | srcs: ["include/android/*.h"], |
| 20 | license: "NOTICE", |
| 21 | } |
| 22 | |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 23 | cc_library_headers { |
| 24 | name: "libnativedisplay_headers", |
| 25 | export_include_dirs: ["include"], |
| 26 | } |
| 27 | |
| 28 | cc_library { |
| 29 | name: "libnativedisplay", |
| 30 | export_include_dirs: [ |
| 31 | "include", |
| 32 | ], |
| 33 | |
| 34 | clang: true, |
| 35 | |
| 36 | cflags: [ |
| 37 | "-Wall", |
| 38 | "-Werror", |
| 39 | "-Wno-enum-compare", |
| 40 | "-Wno-unused-function", |
| 41 | ], |
| 42 | |
Alec Mouri | d9ff327 | 2019-11-19 16:23:59 -0800 | [diff] [blame^] | 43 | version_script: "libnativedisplay.map.txt", |
| 44 | |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 45 | srcs: [ |
Alec Mouri | cc44522 | 2019-10-22 10:19:17 -0700 | [diff] [blame] | 46 | "AChoreographer.cpp", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 47 | "ADisplay.cpp", |
| 48 | ], |
| 49 | |
| 50 | shared_libs: [ |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 51 | "libgui", |
| 52 | "liblog", |
Alec Mouri | 4617051 | 2019-11-20 11:04:55 -0800 | [diff] [blame] | 53 | "libnativewindow", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 54 | "libui", |
| 55 | "libutils", |
| 56 | ], |
| 57 | |
| 58 | header_libs: [ |
| 59 | "libnativedisplay_headers", |
| 60 | ], |
| 61 | |
| 62 | } |