Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 1 | // 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. |
| 14 | |
| 15 | cc_library_shared { |
| 16 | name: "libgui", |
| 17 | |
| 18 | clang: true, |
| 19 | cppflags: [ |
| 20 | "-Weverything", |
| 21 | "-Werror", |
| 22 | |
| 23 | // The static constructors and destructors in this library have not been noted to |
| 24 | // introduce significant overheads |
| 25 | "-Wno-exit-time-destructors", |
| 26 | "-Wno-global-constructors", |
| 27 | |
| 28 | // We only care about compiling as C++14 |
| 29 | "-Wno-c++98-compat-pedantic", |
| 30 | |
| 31 | // We don't need to enumerate every case in a switch as long as a default case |
| 32 | // is present |
| 33 | "-Wno-switch-enum", |
| 34 | |
| 35 | // Allow calling variadic macros without a __VA_ARGS__ list |
| 36 | "-Wno-gnu-zero-variadic-macro-arguments", |
| 37 | |
| 38 | // Don't warn about struct padding |
| 39 | "-Wno-padded", |
| 40 | |
Dan Stoza | 71bded5 | 2016-10-19 11:10:33 -0700 | [diff] [blame] | 41 | // We are aware of the risks inherent in comparing floats for equality |
| 42 | "-Wno-float-equal", |
| 43 | |
Pawin Vongmasa | 6e1193a | 2017-03-07 13:08:40 -0800 | [diff] [blame] | 44 | // Pure abstract classes trigger this warning |
| 45 | "-Wno-weak-vtables", |
| 46 | |
| 47 | // Allow four-character integer literals |
| 48 | "-Wno-four-char-constants", |
| 49 | |
| 50 | // Allow documentation warnings |
| 51 | "-Wno-documentation", |
| 52 | |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 53 | "-DDEBUG_ONLY_CODE=0", |
| 54 | ], |
| 55 | |
| 56 | product_variables: { |
| 57 | brillo: { |
| 58 | cflags: ["-DHAVE_NO_SURFACE_FLINGER"], |
| 59 | }, |
| 60 | debuggable: { |
| 61 | cppflags: [ |
| 62 | "-UDEBUG_ONLY_CODE", |
| 63 | "-DDEBUG_ONLY_CODE=1", |
| 64 | ], |
| 65 | }, |
| 66 | }, |
| 67 | |
| 68 | srcs: [ |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 69 | "BitTube.cpp", |
| 70 | "BufferItem.cpp", |
| 71 | "BufferItemConsumer.cpp", |
| 72 | "BufferQueue.cpp", |
| 73 | "BufferQueueConsumer.cpp", |
| 74 | "BufferQueueCore.cpp", |
| 75 | "BufferQueueProducer.cpp", |
| 76 | "BufferSlot.cpp", |
| 77 | "ConsumerBase.cpp", |
| 78 | "CpuConsumer.cpp", |
| 79 | "DisplayEventReceiver.cpp", |
Brian Anderson | d6927fb | 2016-07-23 23:37:30 -0700 | [diff] [blame] | 80 | "FrameTimestamps.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 81 | "GLConsumer.cpp", |
Romain Guy | f8b4ca5 | 2017-03-16 18:39:20 +0000 | [diff] [blame] | 82 | "GraphicBufferAlloc.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 83 | "GuiConfig.cpp", |
| 84 | "IDisplayEventConnection.cpp", |
Mathias Agopian | 801ea09 | 2017-03-06 15:05:04 -0800 | [diff] [blame] | 85 | "IConsumerListener.cpp", |
Romain Guy | f8b4ca5 | 2017-03-16 18:39:20 +0000 | [diff] [blame] | 86 | "IGraphicBufferAlloc.cpp", |
Mathias Agopian | 801ea09 | 2017-03-06 15:05:04 -0800 | [diff] [blame] | 87 | "IGraphicBufferConsumer.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 88 | "IGraphicBufferProducer.cpp", |
| 89 | "IProducerListener.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 90 | "ISurfaceComposer.cpp", |
| 91 | "ISurfaceComposerClient.cpp", |
| 92 | "LayerState.cpp", |
| 93 | "OccupancyTracker.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 94 | "StreamSplitter.cpp", |
| 95 | "Surface.cpp", |
| 96 | "SurfaceControl.cpp", |
| 97 | "SurfaceComposerClient.cpp", |
| 98 | "SyncFeatures.cpp", |
Mathias Agopian | 05debe1 | 2017-02-08 17:04:18 -0800 | [diff] [blame] | 99 | "view/Surface.cpp", |
Pawin Vongmasa | 6e1193a | 2017-03-07 13:08:40 -0800 | [diff] [blame] | 100 | "bufferqueue/1.0/B2HProducerListener.cpp", |
| 101 | "bufferqueue/1.0/H2BGraphicBufferProducer.cpp" |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 102 | ], |
| 103 | |
| 104 | shared_libs: [ |
Jesse Hall | 153fbc8 | 2017-01-03 16:18:15 -0800 | [diff] [blame] | 105 | "libsync", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 106 | "libbinder", |
| 107 | "libcutils", |
| 108 | "libEGL", |
| 109 | "libGLESv2", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 110 | "libui", |
| 111 | "libutils", |
Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 112 | "libnativewindow", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 113 | "liblog", |
Pawin Vongmasa | 6e1193a | 2017-03-07 13:08:40 -0800 | [diff] [blame] | 114 | "libhidlbase", |
Courtney Goeltzenleuchter | a0c93e1 | 2017-03-17 16:16:48 -0600 | [diff] [blame] | 115 | "libhidltransport", |
Pawin Vongmasa | 6e1193a | 2017-03-07 13:08:40 -0800 | [diff] [blame] | 116 | "android.hidl.base@1.0", |
| 117 | "android.hidl.token@1.0-utils", |
| 118 | "android.hardware.graphics.bufferqueue@1.0", |
Courtney Goeltzenleuchter | a0c93e1 | 2017-03-17 16:16:48 -0600 | [diff] [blame] | 119 | "android.hardware.configstore@1.0", |
Jaesoo Lee | 3e85cbe | 2017-03-30 15:24:15 +0900 | [diff] [blame] | 120 | "android.hardware.configstore-utils", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 121 | ], |
| 122 | |
Pawin Vongmasa | 6e1193a | 2017-03-07 13:08:40 -0800 | [diff] [blame] | 123 | export_shared_lib_headers: [ |
| 124 | "libbinder", |
| 125 | "libui", |
| 126 | "android.hidl.token@1.0-utils", |
| 127 | "android.hardware.graphics.bufferqueue@1.0", |
| 128 | ], |
Dan Stoza | 1e438d2 | 2017-03-31 16:18:10 -0700 | [diff] [blame^] | 129 | |
| 130 | export_include_dirs: [ |
| 131 | "include", |
| 132 | ], |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 133 | } |
| 134 | |
| 135 | subdirs = ["tests"] |