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 | |
| 15 | cc_library_headers { |
| 16 | name: "libnativedisplay_headers", |
Alec Mouri | 271de04 | 2020-04-27 22:38:19 -0700 | [diff] [blame] | 17 | export_include_dirs: ["include",], |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 18 | } |
| 19 | |
Alec Mouri | 271de04 | 2020-04-27 22:38:19 -0700 | [diff] [blame] | 20 | cc_library_shared { |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 21 | name: "libnativedisplay", |
| 22 | export_include_dirs: [ |
| 23 | "include", |
Alec Mouri | 271de04 | 2020-04-27 22:38:19 -0700 | [diff] [blame] | 24 | "include-private", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 25 | ], |
| 26 | |
| 27 | clang: true, |
| 28 | |
| 29 | cflags: [ |
| 30 | "-Wall", |
| 31 | "-Werror", |
| 32 | "-Wno-enum-compare", |
| 33 | "-Wno-unused-function", |
| 34 | ], |
| 35 | |
Alec Mouri | d9ff327 | 2019-11-19 16:23:59 -0800 | [diff] [blame] | 36 | version_script: "libnativedisplay.map.txt", |
| 37 | |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 38 | srcs: [ |
Alec Mouri | cc44522 | 2019-10-22 10:19:17 -0700 | [diff] [blame] | 39 | "AChoreographer.cpp", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 40 | "ADisplay.cpp", |
Stan Iliev | 5d6bdb0 | 2020-01-13 11:19:44 -0500 | [diff] [blame] | 41 | "surfacetexture/surface_texture.cpp", |
| 42 | "surfacetexture/SurfaceTexture.cpp", |
| 43 | "surfacetexture/ImageConsumer.cpp", |
| 44 | "surfacetexture/EGLConsumer.cpp", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 45 | ], |
| 46 | |
| 47 | shared_libs: [ |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 48 | "libgui", |
| 49 | "liblog", |
Alec Mouri | 4617051 | 2019-11-20 11:04:55 -0800 | [diff] [blame] | 50 | "libnativewindow", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 51 | "libui", |
| 52 | "libutils", |
Stan Iliev | 5d6bdb0 | 2020-01-13 11:19:44 -0500 | [diff] [blame] | 53 | "libcutils", |
| 54 | "libEGL", |
| 55 | "libGLESv2", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 56 | ], |
| 57 | |
Orion Hodson | e53587b | 2021-02-02 15:33:33 +0000 | [diff] [blame^] | 58 | export_header_lib_headers: ["jni_headers"], |
Alec Mouri | 271de04 | 2020-04-27 22:38:19 -0700 | [diff] [blame] | 59 | |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 60 | header_libs: [ |
Orion Hodson | e53587b | 2021-02-02 15:33:33 +0000 | [diff] [blame^] | 61 | "jni_headers", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 62 | "libnativedisplay_headers", |
Orion Hodson | e53587b | 2021-02-02 15:33:33 +0000 | [diff] [blame^] | 63 | "libnativehelper_header_only", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 64 | ], |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 65 | } |