2008-10-21 22:00:00 +08:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
#
|
|
|
|
# C/C++ and ARMv5 objects
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
PIXELFLINGER_SRC_FILES:= \
|
2014-02-12 05:32:56 +08:00
|
|
|
codeflinger/ARMAssemblerInterface.cpp \
|
|
|
|
codeflinger/ARMAssemblerProxy.cpp \
|
|
|
|
codeflinger/CodeCache.cpp \
|
|
|
|
codeflinger/GGLAssembler.cpp \
|
|
|
|
codeflinger/load_store.cpp \
|
|
|
|
codeflinger/blending.cpp \
|
|
|
|
codeflinger/texturing.cpp \
|
2013-04-02 06:17:55 +08:00
|
|
|
codeflinger/tinyutils/SharedBuffer.cpp \
|
|
|
|
codeflinger/tinyutils/VectorImpl.cpp \
|
2008-10-21 22:00:00 +08:00
|
|
|
fixed.cpp.arm \
|
|
|
|
picker.cpp.arm \
|
|
|
|
pixelflinger.cpp.arm \
|
|
|
|
trap.cpp.arm \
|
|
|
|
scanline.cpp.arm \
|
|
|
|
format.cpp \
|
|
|
|
clear.cpp \
|
|
|
|
raster.cpp \
|
|
|
|
buffer.cpp
|
|
|
|
|
2014-02-12 05:32:56 +08:00
|
|
|
PIXELFLINGER_CFLAGS := -fstrict-aliasing -fomit-frame-pointer
|
2008-10-21 22:00:00 +08:00
|
|
|
|
2014-02-12 05:32:56 +08:00
|
|
|
PIXELFLINGER_SRC_FILES_arm := \
|
|
|
|
codeflinger/ARMAssembler.cpp \
|
|
|
|
codeflinger/disassem.c \
|
|
|
|
col32cb16blend.S \
|
|
|
|
t32cb16blend.S \
|
2008-10-21 22:00:00 +08:00
|
|
|
|
2014-03-06 23:43:58 +08:00
|
|
|
ifeq ($(ARCH_ARM_HAVE_NEON),true)
|
2014-02-12 05:32:56 +08:00
|
|
|
PIXELFLINGER_SRC_FILES_arm += col32cb16blend_neon.S
|
2014-12-04 09:15:14 +08:00
|
|
|
PIXELFLINGER_CFLAGS_arm += -D__ARM_HAVE_NEON
|
2012-05-25 13:09:24 +08:00
|
|
|
endif
|
|
|
|
|
2014-02-12 05:32:56 +08:00
|
|
|
PIXELFLINGER_SRC_FILES_arm64 := \
|
|
|
|
codeflinger/Arm64Assembler.cpp \
|
|
|
|
codeflinger/Arm64Disassembler.cpp \
|
|
|
|
arch-arm64/col32cb16blend.S \
|
|
|
|
arch-arm64/t32cb16blend.S \
|
2008-10-21 22:00:00 +08:00
|
|
|
|
2014-06-29 09:55:26 +08:00
|
|
|
ifndef ARCH_MIPS_REV6
|
2014-02-12 05:32:56 +08:00
|
|
|
PIXELFLINGER_SRC_FILES_mips := \
|
|
|
|
codeflinger/MIPSAssembler.cpp \
|
|
|
|
codeflinger/mips_disassem.c \
|
|
|
|
arch-mips/t32cb16blend.S \
|
2013-03-01 02:32:03 +08:00
|
|
|
|
2014-06-29 09:55:26 +08:00
|
|
|
endif
|
2008-10-21 22:00:00 +08:00
|
|
|
#
|
|
|
|
# Shared library
|
|
|
|
#
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libpixelflinger
|
|
|
|
LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
|
2014-02-12 05:32:56 +08:00
|
|
|
LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm)
|
|
|
|
LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64)
|
|
|
|
LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips)
|
2008-12-24 14:29:27 +08:00
|
|
|
LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
|
2015-03-13 02:16:50 +08:00
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_EXPORT_C_INCLUDE_DIRS)
|
2014-02-12 05:32:56 +08:00
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils liblog
|
2008-12-24 14:29:27 +08:00
|
|
|
|
2009-03-04 11:32:55 +08:00
|
|
|
# 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
|
2008-12-24 14:29:27 +08:00
|
|
|
LOCAL_CFLAGS += -DWITH_LIB_HARDWARE
|
2014-10-07 04:27:20 +08:00
|
|
|
# t32cb16blend.S does not compile with Clang.
|
|
|
|
LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
|
|
|
|
# arch-arm64/col32cb16blend.S does not compile with Clang.
|
|
|
|
LOCAL_CLANG_ASFLAGS_arm64 += -no-integrated-as
|
2008-10-21 22:00:00 +08:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
2008-12-18 10:08:08 +08:00
|
|
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|