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 | |
| 41 | // android/sensors.h uses nested anonymous unions and anonymous structs |
| 42 | "-Wno-nested-anon-types", |
| 43 | "-Wno-gnu-anonymous-struct", |
| 44 | |
Dan Stoza | 71bded5 | 2016-10-19 11:10:33 -0700 | [diff] [blame] | 45 | // We are aware of the risks inherent in comparing floats for equality |
| 46 | "-Wno-float-equal", |
| 47 | |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 48 | "-DDEBUG_ONLY_CODE=0", |
| 49 | ], |
| 50 | |
| 51 | product_variables: { |
| 52 | brillo: { |
| 53 | cflags: ["-DHAVE_NO_SURFACE_FLINGER"], |
| 54 | }, |
| 55 | debuggable: { |
| 56 | cppflags: [ |
| 57 | "-UDEBUG_ONLY_CODE", |
| 58 | "-DDEBUG_ONLY_CODE=1", |
| 59 | ], |
| 60 | }, |
| 61 | }, |
| 62 | |
| 63 | srcs: [ |
| 64 | "IGraphicBufferConsumer.cpp", |
| 65 | "IConsumerListener.cpp", |
| 66 | "BitTube.cpp", |
| 67 | "BufferItem.cpp", |
| 68 | "BufferItemConsumer.cpp", |
| 69 | "BufferQueue.cpp", |
| 70 | "BufferQueueConsumer.cpp", |
| 71 | "BufferQueueCore.cpp", |
| 72 | "BufferQueueProducer.cpp", |
| 73 | "BufferSlot.cpp", |
| 74 | "ConsumerBase.cpp", |
| 75 | "CpuConsumer.cpp", |
| 76 | "DisplayEventReceiver.cpp", |
Brian Anderson | d6927fb | 2016-07-23 23:37:30 -0700 | [diff] [blame] | 77 | "FrameTimestamps.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 78 | "GLConsumer.cpp", |
| 79 | "GraphicBufferAlloc.cpp", |
| 80 | "GuiConfig.cpp", |
| 81 | "IDisplayEventConnection.cpp", |
| 82 | "IGraphicBufferAlloc.cpp", |
| 83 | "IGraphicBufferProducer.cpp", |
| 84 | "IProducerListener.cpp", |
| 85 | "ISensorEventConnection.cpp", |
| 86 | "ISensorServer.cpp", |
| 87 | "ISurfaceComposer.cpp", |
| 88 | "ISurfaceComposerClient.cpp", |
| 89 | "LayerState.cpp", |
| 90 | "OccupancyTracker.cpp", |
| 91 | "Sensor.cpp", |
| 92 | "SensorEventQueue.cpp", |
| 93 | "SensorManager.cpp", |
| 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", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 100 | ], |
| 101 | |
| 102 | shared_libs: [ |
Jesse Hall | 153fbc8 | 2017-01-03 16:18:15 -0800 | [diff] [blame] | 103 | "libsync", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 104 | "libbinder", |
| 105 | "libcutils", |
| 106 | "libEGL", |
| 107 | "libGLESv2", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 108 | "libui", |
| 109 | "libutils", |
| 110 | "liblog", |
| 111 | ], |
| 112 | |
Michael Schwartz | f0b3db9 | 2016-10-18 10:22:23 -0700 | [diff] [blame] | 113 | export_shared_lib_headers: ["libbinder", "libui"], |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 114 | } |
| 115 | |
| 116 | subdirs = ["tests"] |