Android.mk revision 068f9f3bf9d09ebca0016cfcbb682d8ca27480f5
1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4# 5# C/C++ and ARMv5 objects 6# 7 8include $(CLEAR_VARS) 9PIXELFLINGER_SRC_FILES:= \ 10 codeflinger/ARMAssemblerInterface.cpp \ 11 codeflinger/ARMAssemblerProxy.cpp \ 12 codeflinger/ARMAssembler.cpp \ 13 codeflinger/CodeCache.cpp \ 14 codeflinger/GGLAssembler.cpp \ 15 codeflinger/load_store.cpp \ 16 codeflinger/blending.cpp \ 17 codeflinger/texturing.cpp \ 18 codeflinger/disassem.c \ 19 tinyutils/SharedBuffer.cpp \ 20 tinyutils/VectorImpl.cpp \ 21 fixed.cpp.arm \ 22 picker.cpp.arm \ 23 pixelflinger.cpp.arm \ 24 trap.cpp.arm \ 25 scanline.cpp.arm \ 26 format.cpp \ 27 clear.cpp \ 28 raster.cpp \ 29 buffer.cpp 30 31ifeq ($(TARGET_ARCH),arm) 32ifeq ($(TARGET_ARCH_VERSION),armv7-a) 33PIXELFLINGER_SRC_FILES += col32cb16blend_neon.S 34PIXELFLINGER_SRC_FILES += col32cb16blend.S 35else 36PIXELFLINGER_SRC_FILES += t32cb16blend.S 37PIXELFLINGER_SRC_FILES += col32cb16blend.S 38endif 39endif 40 41ifeq ($(TARGET_ARCH),arm) 42# special optimization flags for pixelflinger 43PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer 44endif 45 46ifeq ($(TARGET_ARCH),mips) 47PIXELFLINGER_SRC_FILES += arch-mips/t32cb16blend.S 48PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer 49endif 50 51LOCAL_SHARED_LIBRARIES := libcutils 52 53ifneq ($(TARGET_ARCH),arm) 54# Required to define logging functions on the simulator. 55# TODO: move the simulator logging functions into libcutils with 56# the rest of the basic log stuff. 57LOCAL_SHARED_LIBRARIES += libutils 58endif 59 60# 61# Shared library 62# 63 64LOCAL_MODULE:= libpixelflinger 65LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) 66LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) 67 68ifneq ($(BUILD_TINY_ANDROID),true) 69# Really this should go away entirely or at least not depend on 70# libhardware, but this at least gets us built. 71LOCAL_SHARED_LIBRARIES += libhardware_legacy 72LOCAL_CFLAGS += -DWITH_LIB_HARDWARE 73endif 74include $(BUILD_SHARED_LIBRARY) 75 76# 77# Static library version 78# 79 80include $(CLEAR_VARS) 81LOCAL_MODULE:= libpixelflinger_static 82LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) 83LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) 84include $(BUILD_STATIC_LIBRARY) 85 86 87include $(call all-makefiles-under,$(LOCAL_PATH)) 88