blob: 8a965dddfcce0c2d47d5403e1194f77e18837012 [file] [log] [blame]
Dan Stozad723bd72014-11-18 10:24:03 -08001# 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
Dan Stozaf10c46e2014-11-11 10:32:31 -080015LOCAL_PATH := $(call my-dir)
Mathias Agopian589ce852010-07-13 22:21:56 -070016include $(CLEAR_VARS)
17
Dan Stozaf10c46e2014-11-11 10:32:31 -080018LOCAL_CLANG := true
Dan Stozad723bd72014-11-18 10:24:03 -080019LOCAL_CPPFLAGS := -std=c++1y -Weverything -Werror
20
21# The static constructors and destructors in this library have not been noted to
22# introduce significant overheads
23LOCAL_CPPFLAGS += -Wno-exit-time-destructors
24LOCAL_CPPFLAGS += -Wno-global-constructors
25
26# We only care about compiling as C++14
27LOCAL_CPPFLAGS += -Wno-c++98-compat-pedantic
28
29# We don't need to enumerate every case in a switch as long as a default case
30# is present
31LOCAL_CPPFLAGS += -Wno-switch-enum
32
33# Allow calling variadic macros without a __VA_ARGS__ list
34LOCAL_CPPFLAGS += -Wno-gnu-zero-variadic-macro-arguments
35
36# Don't warn about struct padding
37LOCAL_CPPFLAGS += -Wno-padded
Dan Stozaf10c46e2014-11-11 10:32:31 -080038
39LOCAL_SRC_FILES := \
Mathias Agopiana4e19522013-07-31 20:09:53 -070040 IGraphicBufferConsumer.cpp \
41 IConsumerListener.cpp \
Mathias Agopian5cae0d02011-10-20 18:42:02 -070042 BitTube.cpp \
Dan Stoza289ade12014-02-28 11:17:17 -080043 BufferItem.cpp \
Jamie Gennis392edd82012-11-29 23:26:29 -080044 BufferItemConsumer.cpp \
Daniel Lam6b091c52012-01-22 15:26:27 -080045 BufferQueue.cpp \
Dan Stoza289ade12014-02-28 11:17:17 -080046 BufferQueueConsumer.cpp \
47 BufferQueueCore.cpp \
48 BufferQueueProducer.cpp \
49 BufferSlot.cpp \
Jamie Gennis1a4d8832012-08-02 20:11:05 -070050 ConsumerBase.cpp \
Jamie Gennis392edd82012-11-29 23:26:29 -080051 CpuConsumer.cpp \
Mathias Agopiand0566bc2011-11-17 17:49:17 -080052 DisplayEventReceiver.cpp \
Andy McFadden2adaf042012-12-18 09:49:45 -080053 GLConsumer.cpp \
Jamie Gennis392edd82012-11-29 23:26:29 -080054 GraphicBufferAlloc.cpp \
55 GuiConfig.cpp \
Mathias Agopiand0566bc2011-11-17 17:49:17 -080056 IDisplayEventConnection.cpp \
Jamie Gennis392edd82012-11-29 23:26:29 -080057 IGraphicBufferAlloc.cpp \
Andy McFadden2adaf042012-12-18 09:49:45 -080058 IGraphicBufferProducer.cpp \
Dan Stozaf0eaf252014-03-21 13:05:51 -070059 IProducerListener.cpp \
Mathias Agopian589ce852010-07-13 22:21:56 -070060 ISensorEventConnection.cpp \
61 ISensorServer.cpp \
Jamie Gennis392edd82012-11-29 23:26:29 -080062 ISurfaceComposer.cpp \
63 ISurfaceComposerClient.cpp \
Jamie Gennis392edd82012-11-29 23:26:29 -080064 LayerState.cpp \
Mathias Agopian589ce852010-07-13 22:21:56 -070065 Sensor.cpp \
Mathias Agopian589ce852010-07-13 22:21:56 -070066 SensorEventQueue.cpp \
Jamie Gennis8ba32fa2010-12-20 11:27:26 -080067 SensorManager.cpp \
Dan Stoza99b18b42014-03-28 15:34:33 -070068 StreamSplitter.cpp \
Mathias Agopiand87f1622011-03-25 18:42:40 -070069 Surface.cpp \
Mathias Agopiane3c697f2013-02-14 17:11:02 -080070 SurfaceControl.cpp \
Mathias Agopiand87f1622011-03-25 18:42:40 -070071 SurfaceComposerClient.cpp \
Mathias Agopianca088332013-03-28 17:44:13 -070072 SyncFeatures.cpp \
Mathias Agopian589ce852010-07-13 22:21:56 -070073
74LOCAL_SHARED_LIBRARIES := \
Mathias Agopian589ce852010-07-13 22:21:56 -070075 libbinder \
Jesse Hallef194142012-06-14 14:45:17 -070076 libcutils \
Jamie Gennis8ba32fa2010-12-20 11:27:26 -080077 libEGL \
78 libGLESv2 \
Jesse Hallef194142012-06-14 14:45:17 -070079 libsync \
80 libui \
81 libutils \
Ying Wang8a0cb4e2013-04-09 21:55:39 -070082 liblog
Jamie Gennis8ba32fa2010-12-20 11:27:26 -080083
Mathias Agopian589ce852010-07-13 22:21:56 -070084
Dan Stozaf10c46e2014-11-11 10:32:31 -080085LOCAL_MODULE := libgui
Mathias Agopian589ce852010-07-13 22:21:56 -070086
Mathias Agopianca088332013-03-28 17:44:13 -070087ifeq ($(TARGET_BOARD_PLATFORM), tegra)
88 LOCAL_CFLAGS += -DDONT_USE_FENCE_SYNC
Daniel Lambff957f2012-01-22 15:40:56 -080089endif
Mathias Agopianca088332013-03-28 17:44:13 -070090ifeq ($(TARGET_BOARD_PLATFORM), tegra3)
91 LOCAL_CFLAGS += -DDONT_USE_FENCE_SYNC
Jeff Boody42223f62012-09-10 10:24:07 -060092endif
93
Mathias Agopian589ce852010-07-13 22:21:56 -070094include $(BUILD_SHARED_LIBRARY)
Jamie Gennis7fcb0772011-04-26 17:26:37 -070095
96ifeq (,$(ONE_SHOT_MAKEFILE))
97include $(call first-makefiles-under,$(LOCAL_PATH))
98endif