Android.mk revision f88fb1fade2f36dfc302e9bf11e8d9e37bdbcd76
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/CodeCache.cpp \ 13 codeflinger/GGLAssembler.cpp \ 14 codeflinger/load_store.cpp \ 15 codeflinger/blending.cpp \ 16 codeflinger/texturing.cpp \ 17 codeflinger/tinyutils/SharedBuffer.cpp \ 18 codeflinger/tinyutils/VectorImpl.cpp \ 19 fixed.cpp.arm \ 20 picker.cpp.arm \ 21 pixelflinger.cpp.arm \ 22 trap.cpp.arm \ 23 scanline.cpp.arm \ 24 format.cpp \ 25 clear.cpp \ 26 raster.cpp \ 27 buffer.cpp 28 29PIXELFLINGER_CFLAGS := -fstrict-aliasing -fomit-frame-pointer 30 31PIXELFLINGER_SRC_FILES_arm := \ 32 codeflinger/ARMAssembler.cpp \ 33 codeflinger/disassem.c \ 34 col32cb16blend.S \ 35 t32cb16blend.S \ 36 37ifeq ($(ARCH_ARM_HAVE_NEON),armv7-a) 38PIXELFLINGER_SRC_FILES_arm += col32cb16blend_neon.S 39endif 40 41PIXELFLINGER_SRC_FILES_arm64 := \ 42 codeflinger/Arm64Assembler.cpp \ 43 codeflinger/Arm64Disassembler.cpp \ 44 arch-arm64/col32cb16blend.S \ 45 arch-arm64/t32cb16blend.S \ 46 47PIXELFLINGER_SRC_FILES_mips := \ 48 codeflinger/MIPSAssembler.cpp \ 49 codeflinger/mips_disassem.c \ 50 arch-mips/t32cb16blend.S \ 51 52# 53# Shared library 54# 55 56LOCAL_MODULE:= libpixelflinger 57LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) 58LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm) 59LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64) 60LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips) 61LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) 62LOCAL_SHARED_LIBRARIES := libcutils liblog 63 64ifneq ($(BUILD_TINY_ANDROID),true) 65# Really this should go away entirely or at least not depend on 66# libhardware, but this at least gets us built. 67LOCAL_SHARED_LIBRARIES += libhardware_legacy 68LOCAL_CFLAGS += -DWITH_LIB_HARDWARE 69endif 70include $(BUILD_SHARED_LIBRARY) 71 72# 73# Static library version 74# 75 76include $(CLEAR_VARS) 77LOCAL_MODULE:= libpixelflinger_static 78LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) 79LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm) 80LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64) 81LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips) 82LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) 83include $(BUILD_STATIC_LIBRARY) 84 85 86include $(call all-makefiles-under,$(LOCAL_PATH)) 87