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 fixed.cpp.arm \ 18 picker.cpp.arm \ 19 pixelflinger.cpp.arm \ 20 trap.cpp.arm \ 21 scanline.cpp.arm \ 22 format.cpp \ 23 clear.cpp \ 24 raster.cpp \ 25 buffer.cpp 26 27PIXELFLINGER_CFLAGS := -fstrict-aliasing -fomit-frame-pointer 28 29PIXELFLINGER_SRC_FILES_arm := \ 30 codeflinger/ARMAssembler.cpp \ 31 codeflinger/disassem.c \ 32 col32cb16blend.S \ 33 t32cb16blend.S \ 34 35ifeq ($(ARCH_ARM_HAVE_NEON),true) 36PIXELFLINGER_SRC_FILES_arm += col32cb16blend_neon.S 37PIXELFLINGER_CFLAGS_arm += -D__ARM_HAVE_NEON 38endif 39 40PIXELFLINGER_SRC_FILES_arm64 := \ 41 codeflinger/Arm64Assembler.cpp \ 42 codeflinger/Arm64Disassembler.cpp \ 43 arch-arm64/col32cb16blend.S \ 44 arch-arm64/t32cb16blend.S \ 45 46ifndef ARCH_MIPS_REV6 47PIXELFLINGER_SRC_FILES_mips := \ 48 codeflinger/MIPSAssembler.cpp \ 49 codeflinger/mips_disassem.c \ 50 arch-mips/t32cb16blend.S \ 51 52endif 53# 54# Shared library 55# 56 57LOCAL_MODULE:= libpixelflinger 58LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) 59LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm) 60LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64) 61LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips) 62LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) 63LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 64LOCAL_C_INCLUDES += $(LOCAL_EXPORT_C_INCLUDE_DIRS) \ 65 external/safe-iop/include 66LOCAL_SHARED_LIBRARIES := libcutils liblog libutils 67 68# Really this should go away entirely or at least not depend on 69# libhardware, but this at least gets us built. 70LOCAL_SHARED_LIBRARIES += libhardware_legacy 71LOCAL_CFLAGS += -DWITH_LIB_HARDWARE 72# t32cb16blend.S does not compile with Clang. 73LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as 74# arch-arm64/col32cb16blend.S does not compile with Clang. 75LOCAL_CLANG_ASFLAGS_arm64 += -no-integrated-as 76include $(BUILD_SHARED_LIBRARY) 77 78include $(call all-makefiles-under,$(LOCAL_PATH)) 79