blob: 6574ae64f7f00b1c77bfb206f18ef7915fd40827 [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
15cc_library_headers {
16 name: "libnativedisplay_headers",
Alec Mouri271de042020-04-27 22:38:19 -070017 export_include_dirs: ["include",],
Alec Mouri671d0f52019-09-05 13:59:19 -070018}
19
Alec Mouri271de042020-04-27 22:38:19 -070020cc_library_shared {
Alec Mouri671d0f52019-09-05 13:59:19 -070021 name: "libnativedisplay",
22 export_include_dirs: [
23 "include",
Alec Mouri271de042020-04-27 22:38:19 -070024 "include-private",
Alec Mouri671d0f52019-09-05 13:59:19 -070025 ],
26
27 clang: true,
28
29 cflags: [
30 "-Wall",
31 "-Werror",
32 "-Wno-enum-compare",
33 "-Wno-unused-function",
34 ],
35
Alec Mourid9ff3272019-11-19 16:23:59 -080036 version_script: "libnativedisplay.map.txt",
37
Alec Mouri671d0f52019-09-05 13:59:19 -070038 srcs: [
Alec Mouricc445222019-10-22 10:19:17 -070039 "AChoreographer.cpp",
Alec Mouri671d0f52019-09-05 13:59:19 -070040 "ADisplay.cpp",
Stan Iliev5d6bdb02020-01-13 11:19:44 -050041 "surfacetexture/surface_texture.cpp",
42 "surfacetexture/SurfaceTexture.cpp",
43 "surfacetexture/ImageConsumer.cpp",
44 "surfacetexture/EGLConsumer.cpp",
Alec Mouri671d0f52019-09-05 13:59:19 -070045 ],
46
47 shared_libs: [
Alec Mouri671d0f52019-09-05 13:59:19 -070048 "libgui",
49 "liblog",
Alec Mouri46170512019-11-20 11:04:55 -080050 "libnativewindow",
Alec Mouri671d0f52019-09-05 13:59:19 -070051 "libui",
52 "libutils",
Stan Iliev5d6bdb02020-01-13 11:19:44 -050053 "libcutils",
54 "libEGL",
55 "libGLESv2",
Alec Mouri671d0f52019-09-05 13:59:19 -070056 ],
57
Orion Hodsone53587b2021-02-02 15:33:33 +000058 export_header_lib_headers: ["jni_headers"],
Alec Mouri271de042020-04-27 22:38:19 -070059
Alec Mouri671d0f52019-09-05 13:59:19 -070060 header_libs: [
Orion Hodsone53587b2021-02-02 15:33:33 +000061 "jni_headers",
Alec Mouri671d0f52019-09-05 13:59:19 -070062 "libnativedisplay_headers",
Orion Hodsone53587b2021-02-02 15:33:33 +000063 "libnativehelper_header_only",
Alec Mouri671d0f52019-09-05 13:59:19 -070064 ],
Alec Mouri671d0f52019-09-05 13:59:19 -070065}