blob: c9565780e0dce62bcba6965605a67c16dc87b5d0 [file] [log] [blame]
Alec Mouri671d0f52019-09-05 13:59:19 -07001// Copyright 2019 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
Alec Mouricc445222019-10-22 10:19:17 -070015ndk_headers {
Alec Mouri50a931d2019-11-19 16:23:59 -080016 name: "libnativedisplay_ndk_headers",
Alec Mouricc445222019-10-22 10:19:17 -070017 from: "include/android",
18 to: "android",
19 srcs: ["include/android/*.h"],
20 license: "NOTICE",
21}
22
Alec Mouri671d0f52019-09-05 13:59:19 -070023cc_library_headers {
24 name: "libnativedisplay_headers",
25 export_include_dirs: ["include"],
26}
27
28cc_library {
29 name: "libnativedisplay",
30 export_include_dirs: [
31 "include",
32 ],
33
34 clang: true,
35
36 cflags: [
37 "-Wall",
38 "-Werror",
39 "-Wno-enum-compare",
40 "-Wno-unused-function",
41 ],
42
Alec Mourid9ff3272019-11-19 16:23:59 -080043 version_script: "libnativedisplay.map.txt",
44
Alec Mouri671d0f52019-09-05 13:59:19 -070045 srcs: [
Alec Mouricc445222019-10-22 10:19:17 -070046 "AChoreographer.cpp",
Alec Mouri671d0f52019-09-05 13:59:19 -070047 "ADisplay.cpp",
Stan Iliev5d6bdb02020-01-13 11:19:44 -050048 "surfacetexture/surface_texture.cpp",
49 "surfacetexture/SurfaceTexture.cpp",
50 "surfacetexture/ImageConsumer.cpp",
51 "surfacetexture/EGLConsumer.cpp",
Alec Mouri671d0f52019-09-05 13:59:19 -070052 ],
53
54 shared_libs: [
Alec Mouri671d0f52019-09-05 13:59:19 -070055 "libgui",
56 "liblog",
Alec Mouri46170512019-11-20 11:04:55 -080057 "libnativewindow",
Alec Mouri671d0f52019-09-05 13:59:19 -070058 "libui",
59 "libutils",
Stan Iliev5d6bdb02020-01-13 11:19:44 -050060 "libcutils",
61 "libEGL",
62 "libGLESv2",
63 "libnativehelper",
Alec Mouri671d0f52019-09-05 13:59:19 -070064 ],
65
66 header_libs: [
67 "libnativedisplay_headers",
68 ],
69
70}