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