Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 1 | // Copyright (C) 2017 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 | ndk_headers { |
Fan Xu | b2b9dd7 | 2018-10-26 15:24:11 -0700 | [diff] [blame] | 16 | name: "libnativewindow_ndk_headers", |
Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 17 | from: "include/android", |
| 18 | to: "android", |
| 19 | srcs: ["include/android/*.h"], |
| 20 | license: "NOTICE", |
| 21 | } |
| 22 | |
Fan Xu | b2b9dd7 | 2018-10-26 15:24:11 -0700 | [diff] [blame] | 23 | // TODO(b/118715870): cleanup header files |
| 24 | cc_library_headers { |
| 25 | name: "libnativewindow_headers", |
| 26 | export_include_dirs: ["include"], |
Pawin Vongmasa | e672cd0 | 2019-02-14 16:01:29 -0800 | [diff] [blame] | 27 | vendor_available: true, |
Victor Khimenko | b7322fc | 2020-06-16 01:01:15 +0200 | [diff] [blame] | 28 | // TODO(b/153609531): remove when no longer needed. |
| 29 | native_bridge_supported: true, |
Jooyung Han | a395c8d | 2020-04-16 18:48:32 +0900 | [diff] [blame] | 30 | min_sdk_version: "29", |
Leon Scroggins III | c1f093f | 2021-01-08 14:25:31 -0500 | [diff] [blame] | 31 | host_supported: true, |
Fan Xu | b2b9dd7 | 2018-10-26 15:24:11 -0700 | [diff] [blame] | 32 | } |
| 33 | |
Mathias Agopian | 4a67a5f | 2017-02-28 17:00:29 -0800 | [diff] [blame] | 34 | ndk_library { |
Steven Moreland | 8644409 | 2017-04-10 12:56:54 -0700 | [diff] [blame] | 35 | name: "libnativewindow", |
Mathias Agopian | 4a67a5f | 2017-02-28 17:00:29 -0800 | [diff] [blame] | 36 | symbol_file: "libnativewindow.map.txt", |
| 37 | |
| 38 | // Android O |
| 39 | first_version: "26", |
| 40 | } |
| 41 | |
Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 42 | cc_library { |
| 43 | name: "libnativewindow", |
Colin Cross | 8af6d1c | 2020-10-19 13:38:00 -0700 | [diff] [blame] | 44 | llndk_stubs: "libnativewindow.llndk", |
Justin Yun | ab66edc | 2017-11-28 16:54:21 +0900 | [diff] [blame] | 45 | export_include_dirs: [ |
| 46 | "include", |
| 47 | "include-private", |
| 48 | ], |
Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 49 | |
| 50 | clang: true, |
| 51 | |
Chih-Hung Hsieh | 6e36725 | 2017-10-05 14:23:38 -0700 | [diff] [blame] | 52 | cflags: [ |
| 53 | "-Wall", |
| 54 | "-Werror", |
Krzysztof KosiĆski | 7a2bcc5 | 2018-11-09 20:25:52 -0800 | [diff] [blame] | 55 | "-Wno-enum-compare", |
Chih-Hung Hsieh | 6e36725 | 2017-10-05 14:23:38 -0700 | [diff] [blame] | 56 | "-Wno-unused-function", |
| 57 | ], |
| 58 | |
dimitry | b9fdddb | 2017-11-21 18:24:36 +0100 | [diff] [blame] | 59 | version_script: "libnativewindow.map.txt", |
| 60 | |
Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 61 | srcs: [ |
| 62 | "AHardwareBuffer.cpp", |
| 63 | "ANativeWindow.cpp", |
| 64 | ], |
| 65 | |
| 66 | shared_libs: [ |
Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 67 | "libcutils", |
| 68 | "liblog", |
| 69 | "libutils", |
| 70 | "libui", |
Craig Donner | e6ecb92 | 2017-12-27 14:59:29 -0800 | [diff] [blame] | 71 | "android.hardware.graphics.common@1.1", |
Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 72 | ], |
| 73 | |
| 74 | static_libs: [ |
| 75 | "libarect", |
Jesse Hall | 7992781 | 2017-03-23 11:03:23 -0700 | [diff] [blame] | 76 | "libgrallocusage", |
Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 77 | ], |
| 78 | |
Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 79 | header_libs: [ |
| 80 | "libnativebase_headers", |
Fan Xu | b2b9dd7 | 2018-10-26 15:24:11 -0700 | [diff] [blame] | 81 | "libnativewindow_headers", |
Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 82 | ], |
| 83 | |
Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 84 | // headers we include in our public headers |
| 85 | export_static_lib_headers: [ |
| 86 | "libarect", |
| 87 | ], |
Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 88 | |
| 89 | export_header_lib_headers: [ |
| 90 | "libnativebase_headers", |
| 91 | ], |
Przemyslaw Szczepaniak | 7864fbc | 2019-11-14 16:05:43 +0000 | [diff] [blame] | 92 | |
| 93 | stubs: { |
| 94 | symbol_file: "libnativewindow.map.txt", |
| 95 | versions: ["29"], |
| 96 | }, |
Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 97 | } |
Craig Donner | a5a719e | 2017-02-24 16:02:08 -0800 | [diff] [blame] | 98 | |
Jiyong Park | 73ac419 | 2017-04-28 20:20:33 +0900 | [diff] [blame] | 99 | llndk_library { |
Colin Cross | 8af6d1c | 2020-10-19 13:38:00 -0700 | [diff] [blame] | 100 | name: "libnativewindow.llndk", |
Jiyong Park | 8ebc072 | 2017-05-03 11:33:18 +0900 | [diff] [blame] | 101 | symbol_file: "libnativewindow.map.txt", |
Jiyong Park | 73ac419 | 2017-04-28 20:20:33 +0900 | [diff] [blame] | 102 | unversioned: true, |
| 103 | export_include_dirs: ["include"], |
| 104 | } |
| 105 | |
Craig Donner | a5a719e | 2017-02-24 16:02:08 -0800 | [diff] [blame] | 106 | subdirs = ["tests"] |