Android.mk revision f10c46ef855b6410b20ebd8b1351d4d78d8eca8e
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++11 20 21LOCAL_SRC_FILES := \ 22 Fence.cpp \ 23 FramebufferNativeWindow.cpp \ 24 FrameStats.cpp \ 25 GraphicBuffer.cpp \ 26 GraphicBufferAllocator.cpp \ 27 GraphicBufferMapper.cpp \ 28 PixelFormat.cpp \ 29 Rect.cpp \ 30 Region.cpp \ 31 UiConfig.cpp 32 33LOCAL_SHARED_LIBRARIES := \ 34 libcutils \ 35 libhardware \ 36 libsync \ 37 libutils \ 38 liblog 39 40ifneq ($(BOARD_FRAMEBUFFER_FORCE_FORMAT),) 41LOCAL_CFLAGS += -DFRAMEBUFFER_FORCE_FORMAT=$(BOARD_FRAMEBUFFER_FORCE_FORMAT) 42endif 43 44LOCAL_MODULE := libui 45 46include $(BUILD_SHARED_LIBRARY) 47 48 49# Include subdirectory makefiles 50# ============================================================ 51 52# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework 53# team really wants is to build the stuff defined by this makefile. 54ifeq (,$(ONE_SHOT_MAKEFILE)) 55include $(call first-makefiles-under,$(LOCAL_PATH)) 56endif 57