blob: acd18b0265174e7d1c04fcaa8a6d54ea10626269 [file] [log] [blame]
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4#
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -07005# C/C++ and ARMv5 objects
6#
7
8include $(CLEAR_VARS)
9PIXELFLINGER_SRC_FILES:= \
Colin Crossf88fb1f2014-02-11 13:32:56 -080010 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 \
Mathias Agopian9857d992013-04-01 15:17:55 -070017 codeflinger/tinyutils/SharedBuffer.cpp \
18 codeflinger/tinyutils/VectorImpl.cpp \
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070019 fixed.cpp.arm \
20 picker.cpp.arm \
21 pixelflinger.cpp.arm \
22 trap.cpp.arm \
23 scanline.cpp.arm \
24 format.cpp \
25 clear.cpp \
26 raster.cpp \
27 buffer.cpp
28
Colin Crossf88fb1f2014-02-11 13:32:56 -080029PIXELFLINGER_CFLAGS := -fstrict-aliasing -fomit-frame-pointer
30
31PIXELFLINGER_SRC_FILES_arm := \
32 codeflinger/ARMAssembler.cpp \
33 codeflinger/disassem.c \
34 col32cb16blend.S \
35 t32cb16blend.S \
36
Kévin PETITd82b2a32014-03-06 15:43:58 +000037ifeq ($(ARCH_ARM_HAVE_NEON),true)
Colin Crossf88fb1f2014-02-11 13:32:56 -080038PIXELFLINGER_SRC_FILES_arm += col32cb16blend_neon.S
Elliott Hughes053ca3f2014-12-03 17:15:14 -080039PIXELFLINGER_CFLAGS_arm += -D__ARM_HAVE_NEON
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070040endif
41
Colin Crossf88fb1f2014-02-11 13:32:56 -080042PIXELFLINGER_SRC_FILES_arm64 := \
43 codeflinger/Arm64Assembler.cpp \
44 codeflinger/Arm64Disassembler.cpp \
45 arch-arm64/col32cb16blend.S \
46 arch-arm64/t32cb16blend.S \
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070047
Duane Sand734f50c2014-06-28 18:55:26 -070048ifndef ARCH_MIPS_REV6
Colin Crossf88fb1f2014-02-11 13:32:56 -080049PIXELFLINGER_SRC_FILES_mips := \
50 codeflinger/MIPSAssembler.cpp \
51 codeflinger/mips_disassem.c \
52 arch-mips/t32cb16blend.S \
Ashok Bhat658f89d2013-02-28 18:32:03 +000053
Duane Sand734f50c2014-06-28 18:55:26 -070054endif
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070055#
56# Shared library
57#
58
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070059LOCAL_MODULE:= libpixelflinger
60LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
Colin Crossf88fb1f2014-02-11 13:32:56 -080061LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm)
62LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64)
63LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips)
Brian Swetland5a326952008-12-23 22:29:27 -080064LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
Colin Crossf88fb1f2014-02-11 13:32:56 -080065LOCAL_SHARED_LIBRARIES := libcutils liblog
Brian Swetland5a326952008-12-23 22:29:27 -080066
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080067# Really this should go away entirely or at least not depend on
68# libhardware, but this at least gets us built.
69LOCAL_SHARED_LIBRARIES += libhardware_legacy
Brian Swetland5a326952008-12-23 22:29:27 -080070LOCAL_CFLAGS += -DWITH_LIB_HARDWARE
Chih-Hung Hsieh60c57da2014-10-06 13:27:20 -070071# t32cb16blend.S does not compile with Clang.
72LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
73# arch-arm64/col32cb16blend.S does not compile with Clang.
74LOCAL_CLANG_ASFLAGS_arm64 += -no-integrated-as
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070075include $(BUILD_SHARED_LIBRARY)
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070076
77#
78# Static library version
79#
80
81include $(CLEAR_VARS)
82LOCAL_MODULE:= libpixelflinger_static
83LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
Colin Crossf88fb1f2014-02-11 13:32:56 -080084LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm)
85LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64)
86LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips)
Ying Wang083b5cc2013-04-09 22:03:45 -070087LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
Chih-Hung Hsieh60c57da2014-10-06 13:27:20 -070088# t32cb16blend.S does not compile with Clang.
89LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
90# arch-arm64/col32cb16blend.S does not compile with Clang.
91LOCAL_CLANG_ASFLAGS_arm64 += -no-integrated-as
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070092include $(BUILD_STATIC_LIBRARY)
The Android Open Source Project35237d12008-12-17 18:08:08 -080093
94
95include $(call all-makefiles-under,$(LOCAL_PATH))