blob: bcc99fc33be710e208eb3d535e3d65b531941545 [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",
48 ],
49
50 shared_libs: [
Alec Mouri671d0f52019-09-05 13:59:19 -070051 "libgui",
52 "liblog",
Alec Mouri46170512019-11-20 11:04:55 -080053 "libnativewindow",
Alec Mouri671d0f52019-09-05 13:59:19 -070054 "libui",
55 "libutils",
56 ],
57
58 header_libs: [
59 "libnativedisplay_headers",
60 ],
61
62}