d82b2a3eb4
ARCH_ARM_HAVE_NEON is only ever defined to true, so test for that. For the NEON function to be used, the file has to include machine/cpu-features.h so that __ARM_HAVE_NEON is defined. Change-Id: I0db196b39c493092415859e009531fcff6fc1e8b Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
86 lines
2.1 KiB
Makefile
86 lines
2.1 KiB
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
#
|
|
# C/C++ and ARMv5 objects
|
|
#
|
|
|
|
include $(CLEAR_VARS)
|
|
PIXELFLINGER_SRC_FILES:= \
|
|
codeflinger/ARMAssemblerInterface.cpp \
|
|
codeflinger/ARMAssemblerProxy.cpp \
|
|
codeflinger/CodeCache.cpp \
|
|
codeflinger/GGLAssembler.cpp \
|
|
codeflinger/load_store.cpp \
|
|
codeflinger/blending.cpp \
|
|
codeflinger/texturing.cpp \
|
|
codeflinger/tinyutils/SharedBuffer.cpp \
|
|
codeflinger/tinyutils/VectorImpl.cpp \
|
|
fixed.cpp.arm \
|
|
picker.cpp.arm \
|
|
pixelflinger.cpp.arm \
|
|
trap.cpp.arm \
|
|
scanline.cpp.arm \
|
|
format.cpp \
|
|
clear.cpp \
|
|
raster.cpp \
|
|
buffer.cpp
|
|
|
|
PIXELFLINGER_CFLAGS := -fstrict-aliasing -fomit-frame-pointer
|
|
|
|
PIXELFLINGER_SRC_FILES_arm := \
|
|
codeflinger/ARMAssembler.cpp \
|
|
codeflinger/disassem.c \
|
|
col32cb16blend.S \
|
|
t32cb16blend.S \
|
|
|
|
ifeq ($(ARCH_ARM_HAVE_NEON),true)
|
|
PIXELFLINGER_SRC_FILES_arm += col32cb16blend_neon.S
|
|
endif
|
|
|
|
PIXELFLINGER_SRC_FILES_arm64 := \
|
|
codeflinger/Arm64Assembler.cpp \
|
|
codeflinger/Arm64Disassembler.cpp \
|
|
arch-arm64/col32cb16blend.S \
|
|
arch-arm64/t32cb16blend.S \
|
|
|
|
PIXELFLINGER_SRC_FILES_mips := \
|
|
codeflinger/MIPSAssembler.cpp \
|
|
codeflinger/mips_disassem.c \
|
|
arch-mips/t32cb16blend.S \
|
|
|
|
#
|
|
# Shared library
|
|
#
|
|
|
|
LOCAL_MODULE:= libpixelflinger
|
|
LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
|
|
LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm)
|
|
LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64)
|
|
LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips)
|
|
LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
|
|
LOCAL_SHARED_LIBRARIES := libcutils liblog
|
|
|
|
ifneq ($(BUILD_TINY_ANDROID),true)
|
|
# Really this should go away entirely or at least not depend on
|
|
# libhardware, but this at least gets us built.
|
|
LOCAL_SHARED_LIBRARIES += libhardware_legacy
|
|
LOCAL_CFLAGS += -DWITH_LIB_HARDWARE
|
|
endif
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
#
|
|
# Static library version
|
|
#
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE:= libpixelflinger_static
|
|
LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
|
|
LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm)
|
|
LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64)
|
|
LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips)
|
|
LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|