Android.mk 2.47 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# Copyright 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

15
LOCAL_PATH := $(call my-dir)
16 17
include $(CLEAR_VARS)

18
LOCAL_CLANG := true
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
LOCAL_CPPFLAGS := -std=c++1y -Weverything -Werror

# The static constructors and destructors in this library have not been noted to
# introduce significant overheads
LOCAL_CPPFLAGS += -Wno-exit-time-destructors
LOCAL_CPPFLAGS += -Wno-global-constructors

# We only care about compiling as C++14
LOCAL_CPPFLAGS += -Wno-c++98-compat-pedantic

# We don't need to enumerate every case in a switch as long as a default case
# is present
LOCAL_CPPFLAGS += -Wno-switch-enum

# Allow calling variadic macros without a __VA_ARGS__ list
LOCAL_CPPFLAGS += -Wno-gnu-zero-variadic-macro-arguments

# Don't warn about struct padding
LOCAL_CPPFLAGS += -Wno-padded
38 39

LOCAL_SRC_FILES := \
40 41
	IGraphicBufferConsumer.cpp \
	IConsumerListener.cpp \
42
	BitTube.cpp \
43
	BufferItem.cpp \
44
	BufferItemConsumer.cpp \
45
	BufferQueue.cpp \
46 47 48 49
	BufferQueueConsumer.cpp \
	BufferQueueCore.cpp \
	BufferQueueProducer.cpp \
	BufferSlot.cpp \
50
	ConsumerBase.cpp \
51
	CpuConsumer.cpp \
52
	DisplayEventReceiver.cpp \
53
	GLConsumer.cpp \
54 55
	GraphicBufferAlloc.cpp \
	GuiConfig.cpp \
56
	IDisplayEventConnection.cpp \
57
	IGraphicBufferAlloc.cpp \
58
	IGraphicBufferProducer.cpp \
59
	IProducerListener.cpp \
60 61
	ISensorEventConnection.cpp \
	ISensorServer.cpp \
62 63 64
	ISurfaceComposer.cpp \
	ISurfaceComposerClient.cpp \
	LayerState.cpp \
65 66
	Sensor.cpp \
	SensorEventQueue.cpp \
67
	SensorManager.cpp \
Dan Stoza's avatar
Dan Stoza committed
68
	StreamSplitter.cpp \
69
	Surface.cpp \
70
	SurfaceControl.cpp \
71
	SurfaceComposerClient.cpp \
72
	SyncFeatures.cpp \
73 74 75

LOCAL_SHARED_LIBRARIES := \
	libbinder \
76 77 78 79
	libcutils \
	libEGL \
	libGLESv2 \
	libsync \
80
	libui \
81
	libutils \
Ying Wang's avatar
Ying Wang committed
82
	liblog
83

84

85
LOCAL_MODULE := libgui
86

87 88
ifeq ($(TARGET_BOARD_PLATFORM), tegra)
	LOCAL_CFLAGS += -DDONT_USE_FENCE_SYNC
89
endif
90 91
ifeq ($(TARGET_BOARD_PLATFORM), tegra3)
	LOCAL_CFLAGS += -DDONT_USE_FENCE_SYNC
92 93
endif

94
include $(BUILD_SHARED_LIBRARY)
95 96 97 98

ifeq (,$(ONE_SHOT_MAKEFILE))
include $(call first-makefiles-under,$(LOCAL_PATH))
endif