blob: d37b9a11576b88ff737c3c46a856cc683b54d61d [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
43 srcs: [
Alec Mouricc445222019-10-22 10:19:17 -070044 "AChoreographer.cpp",
Alec Mouri671d0f52019-09-05 13:59:19 -070045 "ADisplay.cpp",
46 ],
47
48 shared_libs: [
Alec Mouri671d0f52019-09-05 13:59:19 -070049 "libgui",
50 "liblog",
Alec Mouri46170512019-11-20 11:04:55 -080051 "libnativewindow",
Alec Mouri671d0f52019-09-05 13:59:19 -070052 "libui",
53 "libutils",
54 ],
55
56 header_libs: [
57 "libnativedisplay_headers",
58 ],
59
60}