Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 1 | LOCAL_PATH:= system/core/libpixelflinger |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | # |
| 5 | # C/C++ and ARMv5 objects |
| 6 | # |
| 7 | |
| 8 | include $(CLEAR_VARS) |
| 9 | |
| 10 | ifneq ($(wildcard system/core/libpixelflinger/codeflinger/x86/X86Assembler.cpp),) |
| 11 | ifeq ($(TARGET_ARCH),x86) |
| 12 | TW_HAVE_X86_ACCELERATED_PIXELFLINGER := true |
| 13 | endif |
| 14 | endif |
| 15 | |
| 16 | PIXELFLINGER_SRC_FILES += \ |
| 17 | codeflinger/CodeCache.cpp \ |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 18 | format.cpp \ |
| 19 | clear.cpp \ |
| 20 | raster.cpp \ |
| 21 | buffer.cpp |
| 22 | |
Ethan Yonker | 2c80efa | 2015-11-07 07:57:36 -0600 | [diff] [blame] | 23 | ifneq ($(wildcard system/core/libpixelflinger/codeflinger/tinyutils/VectorImpl.cpp),) |
| 24 | PIXELFLINGER_SRC_FILES += \ |
| 25 | codeflinger/tinyutils/SharedBuffer.cpp \ |
| 26 | codeflinger/tinyutils/VectorImpl.cpp |
| 27 | endif |
| 28 | |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 29 | ifneq ($(TW_HAVE_X86_ACCELERATED_PIXELFLINGER),true) |
| 30 | PIXELFLINGER_SRC_FILES += \ |
| 31 | codeflinger/ARMAssemblerInterface.cpp \ |
| 32 | codeflinger/ARMAssemblerProxy.cpp \ |
| 33 | codeflinger/GGLAssembler.cpp \ |
| 34 | codeflinger/load_store.cpp \ |
| 35 | codeflinger/blending.cpp \ |
| 36 | codeflinger/texturing.cpp \ |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 37 | fixed.cpp \ |
| 38 | picker.cpp \ |
| 39 | pixelflinger.cpp \ |
| 40 | trap.cpp \ |
| 41 | scanline.cpp |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 42 | else |
| 43 | PIXELFLINGER_SRC_FILES_x86 := \ |
| 44 | codeflinger/x86/X86Assembler.cpp \ |
| 45 | codeflinger/x86/GGLX86Assembler.cpp \ |
| 46 | codeflinger/x86/load_store.cpp \ |
| 47 | codeflinger/x86/blending.cpp \ |
| 48 | codeflinger/x86/texturing.cpp \ |
| 49 | fixed.cpp \ |
| 50 | picker.cpp \ |
| 51 | pixelflinger.cpp \ |
| 52 | trap.cpp \ |
| 53 | scanline.cpp |
| 54 | |
| 55 | PIXELFLINGER_C_INCLUDES_x86 := \ |
| 56 | external/libenc |
| 57 | |
| 58 | endif |
| 59 | |
| 60 | PIXELFLINGER_CFLAGS := -fstrict-aliasing -fomit-frame-pointer |
| 61 | |
| 62 | PIXELFLINGER_SRC_FILES_arm := \ |
| 63 | codeflinger/ARMAssembler.cpp \ |
| 64 | codeflinger/disassem.c \ |
| 65 | col32cb16blend.S \ |
| 66 | t32cb16blend.S \ |
| 67 | |
| 68 | ifeq ($(ARCH_ARM_HAVE_NEON),true) |
| 69 | PIXELFLINGER_SRC_FILES_arm += col32cb16blend_neon.S |
| 70 | PIXELFLINGER_CFLAGS_arm += -D__ARM_HAVE_NEON |
| 71 | endif |
| 72 | |
| 73 | PIXELFLINGER_SRC_FILES_arm64 := \ |
| 74 | codeflinger/Arm64Assembler.cpp \ |
| 75 | codeflinger/Arm64Disassembler.cpp \ |
| 76 | arch-arm64/col32cb16blend.S \ |
| 77 | arch-arm64/t32cb16blend.S \ |
| 78 | |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 79 | # |
| 80 | # Static library version |
| 81 | # |
| 82 | |
| 83 | include $(CLEAR_VARS) |
Ethan Yonker | 95e8007 | 2017-08-24 21:45:50 -0500 | [diff] [blame] | 84 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 26; echo $$?),0) |
Dan Pasanen | eb028c1 | 2015-11-11 11:08:33 -0600 | [diff] [blame] | 85 | LOCAL_CLANG := false |
Ethan Yonker | 95e8007 | 2017-08-24 21:45:50 -0500 | [diff] [blame] | 86 | endif |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 87 | LOCAL_MODULE:= libpixelflinger_twrp |
| 88 | LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) |
| 89 | LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm) |
| 90 | LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64) |
| 91 | LOCAL_SRC_FILES_x86 := $(PIXELFLINGER_SRC_FILES_x86) |
| 92 | LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips) |
Matt Mower | 9a5b8b7 | 2015-12-10 00:27:49 -0600 | [diff] [blame] | 93 | ifneq ($(shell test $(PLATFORM_SDK_VERSION) -gt 20; echo $$?),0) |
that | 0579114 | 2015-10-10 15:59:22 +0200 | [diff] [blame] | 94 | LOCAL_SRC_FILES += $(LOCAL_SRC_FILES_$(TARGET_ARCH)) |
| 95 | endif |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 96 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 97 | LOCAL_C_INCLUDES += $(LOCAL_EXPORT_C_INCLUDE_DIRS) |
| 98 | LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 99 | LOCAL_CPPFLAGS := -Wno-unused-function |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 100 | LOCAL_STATIC_LIBRARIES += libbase libutils libcutils |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 101 | LOCAL_C_INCLUDES_x86 := $(PIXELFLINGER_C_INCLUDES_x86) |
| 102 | ifeq ($(TW_HAVE_X86_ACCELERATED_PIXELFLINGER),true) |
| 103 | LOCAL_WHOLE_STATIC_LIBRARIES += libenc |
| 104 | LOCAL_C_INCLUDES += external/libenc |
| 105 | endif |
| 106 | include $(BUILD_STATIC_LIBRARY) |