| 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", | 
|  | 33 | export_include_dirs: ["include"], | 
|  | 34 |  | 
|  | 35 | clang: true, | 
|  | 36 |  | 
| Jesse Hall | 09932ec | 2017-03-13 11:36:05 -0700 | [diff] [blame] | 37 | cppflags: [ | 
|  | 38 | "-std=c++1z" | 
|  | 39 | ], | 
|  | 40 |  | 
| Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 41 | srcs: [ | 
|  | 42 | "AHardwareBuffer.cpp", | 
|  | 43 | "ANativeWindow.cpp", | 
|  | 44 | ], | 
|  | 45 |  | 
|  | 46 | shared_libs: [ | 
|  | 47 | "libhardware", | 
|  | 48 | "libcutils", | 
|  | 49 | "liblog", | 
|  | 50 | "libutils", | 
|  | 51 | "libui", | 
| Mathias Agopian | 2c38b56 | 2017-04-20 16:35:39 -0700 | [diff] [blame] | 52 | "android.hardware.graphics.common@1.0", | 
| Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 53 | ], | 
|  | 54 |  | 
|  | 55 | static_libs: [ | 
|  | 56 | "libarect", | 
| Jesse Hall | 7992781 | 2017-03-23 11:03:23 -0700 | [diff] [blame] | 57 | "libgrallocusage", | 
| Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 58 | ], | 
|  | 59 |  | 
|  | 60 | // headers we include in our public headers | 
|  | 61 | export_static_lib_headers: [ | 
|  | 62 | "libarect", | 
|  | 63 | ], | 
|  | 64 | } | 
| Craig Donner | a5a719e | 2017-02-24 16:02:08 -0800 | [diff] [blame] | 65 |  | 
|  | 66 | subdirs = ["tests"] |