blob: 02d29a3e691c1914cd7d30e4b4b8b5a17227d817 [file] [log] [blame]
Dan Willemsen3106c1c2016-10-03 23:56:51 -07001// Copyright 2010 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.
Jiyong Park172bd722017-06-21 12:14:18 +090014cc_library_headers {
15 name: "libgui_headers",
16 vendor_available: true,
17 export_include_dirs: ["include"],
18}
Dan Willemsen3106c1c2016-10-03 23:56:51 -070019
20cc_library_shared {
21 name: "libgui",
Jiyong Park172bd722017-06-21 12:14:18 +090022 vendor_available: true,
Justin Yun71d6c8852017-07-24 15:19:45 +090023 vndk: {
24 enabled: true,
25 },
Jiyong Parkfe0a8242018-04-09 12:16:30 +090026 double_loadable: true,
Dan Willemsen3106c1c2016-10-03 23:56:51 -070027
28 clang: true,
Chih-Hung Hsiehd66be0a2017-10-05 13:51:32 -070029 cflags: [
30 "-Wall",
31 "-Werror",
32 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -070033 cppflags: [
34 "-Weverything",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070035
36 // The static constructors and destructors in this library have not been noted to
37 // introduce significant overheads
38 "-Wno-exit-time-destructors",
39 "-Wno-global-constructors",
40
41 // We only care about compiling as C++14
42 "-Wno-c++98-compat-pedantic",
43
44 // We don't need to enumerate every case in a switch as long as a default case
45 // is present
46 "-Wno-switch-enum",
47
48 // Allow calling variadic macros without a __VA_ARGS__ list
49 "-Wno-gnu-zero-variadic-macro-arguments",
50
51 // Don't warn about struct padding
52 "-Wno-padded",
53
Dan Stoza71bded52016-10-19 11:10:33 -070054 // We are aware of the risks inherent in comparing floats for equality
55 "-Wno-float-equal",
56
Pawin Vongmasa6e1193a2017-03-07 13:08:40 -080057 // Pure abstract classes trigger this warning
58 "-Wno-weak-vtables",
59
60 // Allow four-character integer literals
61 "-Wno-four-char-constants",
62
63 // Allow documentation warnings
64 "-Wno-documentation",
65
Dan Willemsen3106c1c2016-10-03 23:56:51 -070066 "-DDEBUG_ONLY_CODE=0",
67 ],
68
69 product_variables: {
Fabien Sanglard98bfd4f2017-06-22 11:13:49 -070070 eng: {
Dan Willemsen3106c1c2016-10-03 23:56:51 -070071 cppflags: [
72 "-UDEBUG_ONLY_CODE",
73 "-DDEBUG_ONLY_CODE=1",
74 ],
75 },
76 },
77
78 srcs: [
Dan Willemsen3106c1c2016-10-03 23:56:51 -070079 "BitTube.cpp",
80 "BufferItem.cpp",
81 "BufferItemConsumer.cpp",
82 "BufferQueue.cpp",
83 "BufferQueueConsumer.cpp",
84 "BufferQueueCore.cpp",
85 "BufferQueueProducer.cpp",
86 "BufferSlot.cpp",
87 "ConsumerBase.cpp",
88 "CpuConsumer.cpp",
89 "DisplayEventReceiver.cpp",
Brian Andersond6927fb2016-07-23 23:37:30 -070090 "FrameTimestamps.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070091 "GLConsumer.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070092 "GuiConfig.cpp",
93 "IDisplayEventConnection.cpp",
Mathias Agopian801ea092017-03-06 15:05:04 -080094 "IConsumerListener.cpp",
Mathias Agopian801ea092017-03-06 15:05:04 -080095 "IGraphicBufferConsumer.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070096 "IGraphicBufferProducer.cpp",
97 "IProducerListener.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070098 "ISurfaceComposer.cpp",
99 "ISurfaceComposerClient.cpp",
Kalle Raitaa099a242017-01-11 11:17:29 -0800100 "LayerDebugInfo.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700101 "LayerState.cpp",
102 "OccupancyTracker.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700103 "StreamSplitter.cpp",
104 "Surface.cpp",
105 "SurfaceControl.cpp",
106 "SurfaceComposerClient.cpp",
107 "SyncFeatures.cpp",
Mathias Agopian05debe12017-02-08 17:04:18 -0800108 "view/Surface.cpp",
Pawin Vongmasa6e1193a2017-03-07 13:08:40 -0800109 "bufferqueue/1.0/B2HProducerListener.cpp",
110 "bufferqueue/1.0/H2BGraphicBufferProducer.cpp"
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700111 ],
112
113 shared_libs: [
Jesse Hall153fbc82017-01-03 16:18:15 -0800114 "libsync",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700115 "libbinder",
116 "libcutils",
117 "libEGL",
118 "libGLESv2",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700119 "libui",
120 "libutils",
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800121 "libnativewindow",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700122 "liblog",
Pawin Vongmasa6e1193a2017-03-07 13:08:40 -0800123 "libhidlbase",
Courtney Goeltzenleuchtera0c93e12017-03-17 16:16:48 -0600124 "libhidltransport",
Pawin Vongmasa6e1193a2017-03-07 13:08:40 -0800125 "android.hidl.token@1.0-utils",
126 "android.hardware.graphics.bufferqueue@1.0",
Courtney Goeltzenleuchtera0c93e12017-03-17 16:16:48 -0600127 "android.hardware.configstore@1.0",
Jaesoo Lee3e85cbe2017-03-30 15:24:15 +0900128 "android.hardware.configstore-utils",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700129 ],
130
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700131 header_libs: [
132 "libnativebase_headers",
Jiyong Park172bd722017-06-21 12:14:18 +0900133 "libgui_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700134 ],
135
Pawin Vongmasa6e1193a2017-03-07 13:08:40 -0800136 export_shared_lib_headers: [
137 "libbinder",
Steven Moreland33f64842017-06-22 17:50:49 -0700138 "libEGL",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700139 "libnativewindow",
Steven Moreland33f64842017-06-22 17:50:49 -0700140 "libui",
Pawin Vongmasa6e1193a2017-03-07 13:08:40 -0800141 "android.hidl.token@1.0-utils",
142 "android.hardware.graphics.bufferqueue@1.0",
143 ],
Dan Stoza1e438d22017-03-31 16:18:10 -0700144
Jiyong Park172bd722017-06-21 12:14:18 +0900145 export_header_lib_headers: [
146 "libgui_headers",
147 ],
148
Dan Stoza1e438d22017-03-31 16:18:10 -0700149 export_include_dirs: [
150 "include",
151 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700152}
153
154subdirs = ["tests"]