| 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, | 
| Fan Xu | b2b9dd7 | 2018-10-26 15:24:11 -0700 | [diff] [blame] | 28 | } | 
 | 29 |  | 
| Mathias Agopian | 4a67a5f | 2017-02-28 17:00:29 -0800 | [diff] [blame] | 30 | ndk_library { | 
| Steven Moreland | 8644409 | 2017-04-10 12:56:54 -0700 | [diff] [blame] | 31 |     name: "libnativewindow", | 
| Mathias Agopian | 4a67a5f | 2017-02-28 17:00:29 -0800 | [diff] [blame] | 32 |     symbol_file: "libnativewindow.map.txt", | 
 | 33 |  | 
 | 34 |     // Android O | 
 | 35 |     first_version: "26", | 
 | 36 | } | 
 | 37 |  | 
| Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 38 | cc_library { | 
 | 39 |     name: "libnativewindow", | 
| Justin Yun | ab66edc | 2017-11-28 16:54:21 +0900 | [diff] [blame] | 40 |     export_include_dirs: [ | 
 | 41 |         "include", | 
 | 42 |         "include-private", | 
 | 43 |     ], | 
| Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 44 |  | 
 | 45 |     clang: true, | 
 | 46 |  | 
| Chih-Hung Hsieh | 6e36725 | 2017-10-05 14:23:38 -0700 | [diff] [blame] | 47 |     cflags: [ | 
 | 48 |         "-Wall", | 
 | 49 |         "-Werror", | 
| Krzysztof KosiĆski | 7a2bcc5 | 2018-11-09 20:25:52 -0800 | [diff] [blame] | 50 |         "-Wno-enum-compare", | 
| Chih-Hung Hsieh | 6e36725 | 2017-10-05 14:23:38 -0700 | [diff] [blame] | 51 |         "-Wno-unused-function", | 
 | 52 |     ], | 
 | 53 |  | 
| dimitry | b9fdddb | 2017-11-21 18:24:36 +0100 | [diff] [blame] | 54 |     version_script: "libnativewindow.map.txt", | 
 | 55 |  | 
| Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 56 |     srcs: [ | 
 | 57 |         "AHardwareBuffer.cpp", | 
 | 58 |         "ANativeWindow.cpp", | 
 | 59 |     ], | 
 | 60 |  | 
 | 61 |     shared_libs: [ | 
 | 62 |         "libhardware", | 
 | 63 |         "libcutils", | 
 | 64 |         "liblog", | 
 | 65 |         "libutils", | 
 | 66 |         "libui", | 
| Craig Donner | e6ecb92 | 2017-12-27 14:59:29 -0800 | [diff] [blame] | 67 |         "android.hardware.graphics.common@1.1", | 
| Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 68 |     ], | 
 | 69 |  | 
 | 70 |     static_libs: [ | 
 | 71 |         "libarect", | 
| Jesse Hall | 7992781 | 2017-03-23 11:03:23 -0700 | [diff] [blame] | 72 |         "libgrallocusage", | 
| Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 73 |     ], | 
 | 74 |  | 
| Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 75 |     header_libs: [ | 
 | 76 |         "libnativebase_headers", | 
| Fan Xu | b2b9dd7 | 2018-10-26 15:24:11 -0700 | [diff] [blame] | 77 |         "libnativewindow_headers", | 
| Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 78 |     ], | 
 | 79 |  | 
| Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 80 |     // headers we include in our public headers | 
 | 81 |     export_static_lib_headers: [ | 
 | 82 |         "libarect", | 
 | 83 |     ], | 
| Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 84 |  | 
 | 85 |     export_header_lib_headers: [ | 
 | 86 |         "libnativebase_headers", | 
 | 87 |     ], | 
| Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 88 | } | 
| Craig Donner | a5a719e | 2017-02-24 16:02:08 -0800 | [diff] [blame] | 89 |  | 
| Jiyong Park | 73ac419 | 2017-04-28 20:20:33 +0900 | [diff] [blame] | 90 | llndk_library { | 
 | 91 |     name: "libnativewindow", | 
| Jiyong Park | 8ebc072 | 2017-05-03 11:33:18 +0900 | [diff] [blame] | 92 |     symbol_file: "libnativewindow.map.txt", | 
| Jiyong Park | 73ac419 | 2017-04-28 20:20:33 +0900 | [diff] [blame] | 93 |     unversioned: true, | 
 | 94 |     export_include_dirs: ["include"], | 
 | 95 | } | 
 | 96 |  | 
| Craig Donner | a5a719e | 2017-02-24 16:02:08 -0800 | [diff] [blame] | 97 | subdirs = ["tests"] |