2014-11-18 18:24:03 +00:00
|
|
|
# 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.
|
|
|
|
|
2014-11-11 18:32:31 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
2010-07-14 05:21:56 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2014-11-11 18:32:31 +00:00
|
|
|
LOCAL_CLANG := true
|
2014-11-18 18:24:03 +00:00
|
|
|
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
|
2014-11-11 18:32:31 +00:00
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2013-08-01 03:09:53 +00:00
|
|
|
IGraphicBufferConsumer.cpp \
|
|
|
|
IConsumerListener.cpp \
|
2011-10-21 01:42:02 +00:00
|
|
|
BitTube.cpp \
|
2014-02-28 19:17:17 +00:00
|
|
|
BufferItem.cpp \
|
2012-11-30 07:26:29 +00:00
|
|
|
BufferItemConsumer.cpp \
|
2012-01-22 23:26:27 +00:00
|
|
|
BufferQueue.cpp \
|
2014-02-28 19:17:17 +00:00
|
|
|
BufferQueueConsumer.cpp \
|
|
|
|
BufferQueueCore.cpp \
|
|
|
|
BufferQueueProducer.cpp \
|
|
|
|
BufferSlot.cpp \
|
2012-08-03 03:11:05 +00:00
|
|
|
ConsumerBase.cpp \
|
2012-11-30 07:26:29 +00:00
|
|
|
CpuConsumer.cpp \
|
2011-11-18 01:49:17 +00:00
|
|
|
DisplayEventReceiver.cpp \
|
2012-12-18 17:49:45 +00:00
|
|
|
GLConsumer.cpp \
|
2012-11-30 07:26:29 +00:00
|
|
|
GraphicBufferAlloc.cpp \
|
|
|
|
GuiConfig.cpp \
|
2011-11-18 01:49:17 +00:00
|
|
|
IDisplayEventConnection.cpp \
|
2012-11-30 07:26:29 +00:00
|
|
|
IGraphicBufferAlloc.cpp \
|
2012-12-18 17:49:45 +00:00
|
|
|
IGraphicBufferProducer.cpp \
|
2014-03-21 20:05:51 +00:00
|
|
|
IProducerListener.cpp \
|
2010-07-14 05:21:56 +00:00
|
|
|
ISensorEventConnection.cpp \
|
|
|
|
ISensorServer.cpp \
|
2012-11-30 07:26:29 +00:00
|
|
|
ISurfaceComposer.cpp \
|
|
|
|
ISurfaceComposerClient.cpp \
|
|
|
|
LayerState.cpp \
|
2010-07-14 05:21:56 +00:00
|
|
|
Sensor.cpp \
|
|
|
|
SensorEventQueue.cpp \
|
2010-12-20 19:27:26 +00:00
|
|
|
SensorManager.cpp \
|
2014-03-28 22:34:33 +00:00
|
|
|
StreamSplitter.cpp \
|
2011-03-26 01:42:40 +00:00
|
|
|
Surface.cpp \
|
2013-02-15 01:11:02 +00:00
|
|
|
SurfaceControl.cpp \
|
2011-03-26 01:42:40 +00:00
|
|
|
SurfaceComposerClient.cpp \
|
2013-03-29 00:44:13 +00:00
|
|
|
SyncFeatures.cpp \
|
2010-07-14 05:21:56 +00:00
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libbinder \
|
2012-06-14 21:45:17 +00:00
|
|
|
libcutils \
|
|
|
|
libEGL \
|
|
|
|
libGLESv2 \
|
|
|
|
libsync \
|
2010-12-20 19:27:26 +00:00
|
|
|
libui \
|
2012-06-14 21:45:17 +00:00
|
|
|
libutils \
|
2013-04-10 04:55:39 +00:00
|
|
|
liblog
|
2010-12-20 19:27:26 +00:00
|
|
|
|
2010-07-14 05:21:56 +00:00
|
|
|
|
2014-11-11 18:32:31 +00:00
|
|
|
LOCAL_MODULE := libgui
|
2010-07-14 05:21:56 +00:00
|
|
|
|
2013-03-29 00:44:13 +00:00
|
|
|
ifeq ($(TARGET_BOARD_PLATFORM), tegra)
|
|
|
|
LOCAL_CFLAGS += -DDONT_USE_FENCE_SYNC
|
2012-01-22 23:40:56 +00:00
|
|
|
endif
|
2013-03-29 00:44:13 +00:00
|
|
|
ifeq ($(TARGET_BOARD_PLATFORM), tegra3)
|
|
|
|
LOCAL_CFLAGS += -DDONT_USE_FENCE_SYNC
|
2012-09-10 16:24:07 +00:00
|
|
|
endif
|
|
|
|
|
2015-11-28 23:39:51 +00:00
|
|
|
ifeq ($(TARGET_NO_SENSOR_PERMISSION_CHECK),true)
|
|
|
|
LOCAL_CPPFLAGS += -DNO_SENSOR_PERMISSION_CHECK
|
|
|
|
endif
|
|
|
|
|
2010-07-14 05:21:56 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2011-04-27 00:26:37 +00:00
|
|
|
|
|
|
|
ifeq (,$(ONE_SHOT_MAKEFILE))
|
|
|
|
include $(call first-makefiles-under,$(LOCAL_PATH))
|
|
|
|
endif
|