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 15 LOCAL_PATH := $(call my-dir) 16 include $(CLEAR_VARS) 17 18 LOCAL_CLANG := true 19 LOCAL_CPPFLAGS := -std=c++1y -Weverything -Werror 20 # LOCAL_SANITIZE := integer 21 22 # The static constructors and destructors in this library have not been noted to 23 # introduce significant overheads 24 LOCAL_CPPFLAGS += -Wno-exit-time-destructors 25 LOCAL_CPPFLAGS += -Wno-global-constructors 26 27 # We only care about compiling as C++14 28 LOCAL_CPPFLAGS += -Wno-c++98-compat-pedantic 29 30 # We use four-character constants for the GraphicBuffer header, and don't care 31 # that they're non-portable as long as they're consistent within one execution 32 LOCAL_CPPFLAGS += -Wno-four-char-constants 33 34 # Don't warn about struct padding 35 LOCAL_CPPFLAGS += -Wno-padded 36 37 LOCAL_SRC_FILES := \ 38 Fence.cpp \ 39 FrameStats.cpp \ 40 Gralloc1.cpp \ 41 Gralloc1On0Adapter.cpp \ 42 GraphicBuffer.cpp \ 43 GraphicBufferAllocator.cpp \ 44 GraphicBufferMapper.cpp \ 45 HdrCapabilities.cpp \ 46 PixelFormat.cpp \ 47 Rect.cpp \ 48 Region.cpp \ 49 UiConfig.cpp 50 51 LOCAL_SHARED_LIBRARIES := \ 52 libbinder \ 53 libcutils \ 54 libhardware \ 55 libsync \ 56 libutils \ 57 liblog 58 59 ifneq ($(BOARD_FRAMEBUFFER_FORCE_FORMAT),) 60 LOCAL_CFLAGS += -DFRAMEBUFFER_FORCE_FORMAT=$(BOARD_FRAMEBUFFER_FORCE_FORMAT) 61 endif 62 63 LOCAL_MODULE := libui 64 65 include $(BUILD_SHARED_LIBRARY) 66 67 68 # Include subdirectory makefiles 69 # ============================================================ 70 71 # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework 72 # team really wants is to build the stuff defined by this makefile. 73 ifeq (,$(ONE_SHOT_MAKEFILE)) 74 include $(call first-makefiles-under,$(LOCAL_PATH)) 75 endif 76