blob: c7306cd5e9092b0a02dc1d9df88301bc1bafe653 [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 \
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070017 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
Colin Crossf88fb1f2014-02-11 13:32:56 -080027PIXELFLINGER_CFLAGS := -fstrict-aliasing -fomit-frame-pointer
Chih-Hung Hsiehc7f344e2017-10-26 11:19:43 -070028PIXELFLINGER_CFLAGS += -Wall -Werror
29PIXELFLINGER_CFLAGS += -Wno-unused-function
Colin Crossf88fb1f2014-02-11 13:32:56 -080030
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
Elliott Hughes606d4ae2015-11-05 18:55:20 +000055
56PIXELFLINGER_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
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070063#
64# Shared library
65#
66
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070067LOCAL_MODULE:= libpixelflinger
68LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
Colin Crossf88fb1f2014-02-11 13:32:56 -080069LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm)
70LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64)
71LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips)
Elliott Hughes606d4ae2015-11-05 18:55:20 +000072LOCAL_SRC_FILES_mips64 := $(PIXELFLINGER_SRC_FILES_mips64)
Brian Swetland5a326952008-12-23 22:29:27 -080073LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
Greg Hackmann38eb58d2015-03-12 11:16:50 -070074LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Narayan Kamathc609c312015-08-28 12:59:48 +010075LOCAL_C_INCLUDES += $(LOCAL_EXPORT_C_INCLUDE_DIRS) \
76 external/safe-iop/include
77LOCAL_SHARED_LIBRARIES := libcutils liblog libutils
Brian Swetland5a326952008-12-23 22:29:27 -080078
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070079include $(BUILD_SHARED_LIBRARY)
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070080
The Android Open Source Project35237d12008-12-17 18:08:08 -080081include $(call all-makefiles-under,$(LOCAL_PATH))