2008-10-21 16:00:00 +02:00
|
|
|
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 \
|
2013-04-02 00:17:55 +02:00
|
|
|
codeflinger/tinyutils/SharedBuffer.cpp \
|
|
|
|
codeflinger/tinyutils/VectorImpl.cpp \
|
2008-10-21 16:00:00 +02:00
|
|
|
fixed.cpp.arm \
|
|
|
|
picker.cpp.arm \
|
|
|
|
pixelflinger.cpp.arm \
|
|
|
|
trap.cpp.arm \
|
|
|
|
scanline.cpp.arm \
|
|
|
|
format.cpp \
|
|
|
|
clear.cpp \
|
|
|
|
raster.cpp \
|
|
|
|
buffer.cpp
|
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH),arm)
|
2009-12-07 16:00:19 +01:00
|
|
|
ifeq ($(TARGET_ARCH_VERSION),armv7-a)
|
|
|
|
PIXELFLINGER_SRC_FILES += col32cb16blend_neon.S
|
|
|
|
PIXELFLINGER_SRC_FILES += col32cb16blend.S
|
|
|
|
else
|
2008-10-21 16:00:00 +02:00
|
|
|
PIXELFLINGER_SRC_FILES += t32cb16blend.S
|
2009-12-07 16:00:19 +01:00
|
|
|
PIXELFLINGER_SRC_FILES += col32cb16blend.S
|
|
|
|
endif
|
2008-10-21 16:00:00 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH),arm)
|
2013-02-28 19:32:03 +01:00
|
|
|
PIXELFLINGER_SRC_FILES += codeflinger/ARMAssembler.cpp
|
|
|
|
PIXELFLINGER_SRC_FILES += codeflinger/disassem.c
|
2008-10-21 16:00:00 +02:00
|
|
|
# special optimization flags for pixelflinger
|
|
|
|
PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer
|
|
|
|
endif
|
|
|
|
|
2012-05-25 07:09:24 +02:00
|
|
|
ifeq ($(TARGET_ARCH),mips)
|
2012-02-01 19:54:19 +01:00
|
|
|
PIXELFLINGER_SRC_FILES += codeflinger/MIPSAssembler.cpp
|
|
|
|
PIXELFLINGER_SRC_FILES += codeflinger/mips_disassem.c
|
2012-05-25 07:09:24 +02:00
|
|
|
PIXELFLINGER_SRC_FILES += arch-mips/t32cb16blend.S
|
|
|
|
PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer
|
|
|
|
endif
|
|
|
|
|
2013-04-10 07:03:45 +02:00
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils liblog
|
2008-10-21 16:00:00 +02:00
|
|
|
|
2013-02-28 19:32:03 +01:00
|
|
|
ifeq ($(TARGET_ARCH),aarch64)
|
|
|
|
PIXELFLINGER_SRC_FILES += arch-aarch64/t32cb16blend.S
|
|
|
|
PIXELFLINGER_SRC_FILES += arch-aarch64/col32cb16blend.S
|
|
|
|
PIXELFLINGER_SRC_FILES += codeflinger/Aarch64Assembler.cpp
|
|
|
|
PIXELFLINGER_SRC_FILES += codeflinger/Aarch64Disassembler.cpp
|
|
|
|
PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer
|
|
|
|
endif
|
|
|
|
|
2008-10-21 16:00:00 +02:00
|
|
|
#
|
|
|
|
# Shared library
|
|
|
|
#
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libpixelflinger
|
|
|
|
LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
|
2008-12-24 07:29:27 +01:00
|
|
|
LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
|
|
|
|
|
|
|
|
ifneq ($(BUILD_TINY_ANDROID),true)
|
2009-03-04 04:32:55 +01: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 07:29:27 +01:00
|
|
|
LOCAL_CFLAGS += -DWITH_LIB_HARDWARE
|
|
|
|
endif
|
2008-10-21 16:00:00 +02:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Static library version
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE:= libpixelflinger_static
|
|
|
|
LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
|
2013-04-10 07:03:45 +02:00
|
|
|
LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
|
2008-10-21 16:00:00 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2008-12-18 03:08:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|