Android.mk revision d31824004277f554000417cea349d69f18655e95
1# Copyright (C) 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 15LOCAL_PATH := $(call my-dir) 16include $(CLEAR_VARS) 17 18LOCAL_CLANG := true 19LOCAL_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 use four-character constants for the GraphicBuffer header, and don't care 30# that they're non-portable as long as they're consistent within one execution 31LOCAL_CPPFLAGS += -Wno-four-char-constants 32 33LOCAL_SRC_FILES := \ 34 Fence.cpp \ 35 FramebufferNativeWindow.cpp \ 36 FrameStats.cpp \ 37 GraphicBuffer.cpp \ 38 GraphicBufferAllocator.cpp \ 39 GraphicBufferMapper.cpp \ 40 PixelFormat.cpp \ 41 Rect.cpp \ 42 Region.cpp \ 43 UiConfig.cpp 44 45LOCAL_SHARED_LIBRARIES := \ 46 libcutils \ 47 libhardware \ 48 libsync \ 49 libutils \ 50 liblog 51 52ifneq ($(BOARD_FRAMEBUFFER_FORCE_FORMAT),) 53LOCAL_CFLAGS += -DFRAMEBUFFER_FORCE_FORMAT=$(BOARD_FRAMEBUFFER_FORCE_FORMAT) 54endif 55 56LOCAL_MODULE := libui 57 58include $(BUILD_SHARED_LIBRARY) 59 60 61# Include subdirectory makefiles 62# ============================================================ 63 64# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework 65# team really wants is to build the stuff defined by this makefile. 66ifeq (,$(ONE_SHOT_MAKEFILE)) 67include $(call first-makefiles-under,$(LOCAL_PATH)) 68endif 69