1 # Copyright 2010 The Android Open Source Project
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 LOCAL_PATH := $(call my-dir)
19 LOCAL_CPPFLAGS := -std=c++1y -Weverything -Werror
21 # The static constructors and destructors in this library have not been noted to
22 # introduce significant overheads
23 LOCAL_CPPFLAGS += -Wno-exit-time-destructors
24 LOCAL_CPPFLAGS += -Wno-global-constructors
26 # We only care about compiling as C++14
27 LOCAL_CPPFLAGS += -Wno-c++98-compat-pedantic
29 # We don't need to enumerate every case in a switch as long as a default case
31 LOCAL_CPPFLAGS += -Wno-switch-enum
33 # Allow calling variadic macros without a __VA_ARGS__ list
34 LOCAL_CPPFLAGS += -Wno-gnu-zero-variadic-macro-arguments
36 # Don't warn about struct padding
37 LOCAL_CPPFLAGS += -Wno-padded
39 LOCAL_CPPFLAGS += -DDEBUG_ONLY_CODE=$(if $(filter userdebug eng,$(TARGET_BUILD_VARIANT)),1,0)
42 IGraphicBufferConsumer.cpp \
43 IConsumerListener.cpp \
46 BufferItemConsumer.cpp \
48 BufferQueueConsumer.cpp \
50 BufferQueueProducer.cpp \
54 DisplayEventReceiver.cpp \
56 GraphicBufferAlloc.cpp \
58 IDisplayEventConnection.cpp \
59 IGraphicBufferAlloc.cpp \
60 IGraphicBufferProducer.cpp \
61 IProducerListener.cpp \
62 ISensorEventConnection.cpp \
64 ISurfaceComposer.cpp \
65 ISurfaceComposerClient.cpp \
68 SensorEventQueue.cpp \
73 SurfaceComposerClient.cpp \
76 LOCAL_SHARED_LIBRARIES := \
87 LOCAL_MODULE := libgui
89 ifeq ($(TARGET_BOARD_PLATFORM), tegra)
90 LOCAL_CFLAGS += -DDONT_USE_FENCE_SYNC
92 ifeq ($(TARGET_BOARD_PLATFORM), tegra3)
93 LOCAL_CFLAGS += -DDONT_USE_FENCE_SYNC
96 ifeq ($(BOARD_ENABLE_GPU_PROTECTED_CONTENT),true)
97 LOCAL_CFLAGS += -DENABLE_GPU_PROTECTED_CONTENT=true
99 LOCAL_CFLAGS += -DENABLE_GPU_PROTECTED_CONTENT=false
102 include $(BUILD_SHARED_LIBRARY)
104 ifeq (,$(ONE_SHOT_MAKEFILE))
105 include $(call first-makefiles-under,$(LOCAL_PATH))