1 LOCAL_PATH:= $(call my-dir) 2 include $(CLEAR_VARS) 3 4 # 5 # C/C++ and ARMv5 objects 6 # 7 8 include $(CLEAR_VARS) 9 PIXELFLINGER_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 27 PIXELFLINGER_CFLAGS := -fstrict-aliasing -fomit-frame-pointer 28 PIXELFLINGER_CFLAGS += -Wall -Werror 29 PIXELFLINGER_CFLAGS += -Wno-unused-function 30 31 PIXELFLINGER_SRC_FILES_arm := \ 32 codeflinger/ARMAssembler.cpp \ 33 codeflinger/disassem.c \ 34 col32cb16blend.S \ 35 t32cb16blend.S \ 36 37 ifeq ($(ARCH_ARM_HAVE_NEON),true) 38 PIXELFLINGER_SRC_FILES_arm += col32cb16blend_neon.S 39 PIXELFLINGER_CFLAGS_arm += -D__ARM_HAVE_NEON 40 endif 41 42 PIXELFLINGER_SRC_FILES_arm64 := \ 43 codeflinger/Arm64Assembler.cpp \ 44 codeflinger/Arm64Disassembler.cpp \ 45 arch-arm64/col32cb16blend.S \ 46 arch-arm64/t32cb16blend.S \ 47 48 ifndef ARCH_MIPS_REV6 49 PIXELFLINGER_SRC_FILES_mips := \ 50 codeflinger/MIPSAssembler.cpp \ 51 codeflinger/mips_disassem.c \ 52 arch-mips/t32cb16blend.S \ 53 54 endif 55 56 PIXELFLINGER_SRC_FILES_mips64 := \ 57 codeflinger/MIPSAssembler.cpp \ 58 codeflinger/MIPS64Assembler.cpp \ 59 codeflinger/mips64_disassem.c \ 60 arch-mips64/col32cb16blend.S \ 61 arch-mips64/t32cb16blend.S \ 62 63 # 64 # Shared library 65 # 66 67 LOCAL_MODULE:= libpixelflinger 68 LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) 69 LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm) 70 LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64) 71 LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips) 72 LOCAL_SRC_FILES_mips64 := $(PIXELFLINGER_SRC_FILES_mips64) 73 LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) 74 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 75 LOCAL_C_INCLUDES += $(LOCAL_EXPORT_C_INCLUDE_DIRS) \ 76 external/safe-iop/include 77 LOCAL_SHARED_LIBRARIES := libcutils liblog libutils 78 79 include $(BUILD_SHARED_LIBRARY) 80 81 include $(call all-makefiles-under,$(LOCAL_PATH)) 82