• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15ndk_headers {
16    name: "libnativewindow_ndk_headers",
17    from: "include/android",
18    to: "android",
19    srcs: ["include/android/*.h"],
20    license: "NOTICE",
21}
22
23// TODO(b/118715870): cleanup header files
24cc_library_headers {
25    name: "libnativewindow_headers",
26    export_include_dirs: ["include"],
27    vendor_available: true,
28}
29
30ndk_library {
31    name: "libnativewindow",
32    symbol_file: "libnativewindow.map.txt",
33
34    // Android O
35    first_version: "26",
36}
37
38cc_library {
39    name: "libnativewindow",
40    export_include_dirs: [
41        "include",
42        "include-private",
43    ],
44
45    clang: true,
46
47    cflags: [
48        "-Wall",
49        "-Werror",
50        "-Wno-enum-compare",
51        "-Wno-unused-function",
52    ],
53
54    version_script: "libnativewindow.map.txt",
55
56    srcs: [
57        "AHardwareBuffer.cpp",
58        "ANativeWindow.cpp",
59    ],
60
61    shared_libs: [
62        "libhardware",
63        "libcutils",
64        "liblog",
65        "libutils",
66        "libui",
67        "android.hardware.graphics.common@1.1",
68    ],
69
70    static_libs: [
71        "libarect",
72        "libgrallocusage",
73    ],
74
75    header_libs: [
76        "libnativebase_headers",
77        "libnativewindow_headers",
78    ],
79
80    // headers we include in our public headers
81    export_static_lib_headers: [
82        "libarect",
83    ],
84
85    export_header_lib_headers: [
86        "libnativebase_headers",
87    ],
88}
89
90llndk_library {
91    name: "libnativewindow",
92    symbol_file: "libnativewindow.map.txt",
93    unversioned: true,
94    export_include_dirs: ["include"],
95}
96
97subdirs = ["tests"]
98