The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | # |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 5 | # C/C++ and ARMv5 objects |
| 6 | # |
| 7 | |
| 8 | include $(CLEAR_VARS) |
| 9 | PIXELFLINGER_SRC_FILES:= \ |
| 10 | codeflinger/ARMAssemblerInterface.cpp \ |
| 11 | codeflinger/ARMAssemblerProxy.cpp \ |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 12 | codeflinger/CodeCache.cpp \ |
| 13 | codeflinger/GGLAssembler.cpp \ |
| 14 | codeflinger/load_store.cpp \ |
| 15 | codeflinger/blending.cpp \ |
| 16 | codeflinger/texturing.cpp \ |
Mathias Agopian | 9857d99 | 2013-04-01 15:17:55 -0700 | [diff] [blame] | 17 | codeflinger/tinyutils/SharedBuffer.cpp \ |
| 18 | codeflinger/tinyutils/VectorImpl.cpp \ |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 19 | 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 | |
| 29 | ifeq ($(TARGET_ARCH),arm) |
Martyn Capewell | f9e8ab0 | 2009-12-07 15:00:19 +0000 | [diff] [blame] | 30 | ifeq ($(TARGET_ARCH_VERSION),armv7-a) |
| 31 | PIXELFLINGER_SRC_FILES += col32cb16blend_neon.S |
| 32 | PIXELFLINGER_SRC_FILES += col32cb16blend.S |
| 33 | else |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 34 | PIXELFLINGER_SRC_FILES += t32cb16blend.S |
Martyn Capewell | f9e8ab0 | 2009-12-07 15:00:19 +0000 | [diff] [blame] | 35 | PIXELFLINGER_SRC_FILES += col32cb16blend.S |
| 36 | endif |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 37 | endif |
| 38 | |
| 39 | ifeq ($(TARGET_ARCH),arm) |
Ashok Bhat | 658f89d | 2013-02-28 18:32:03 +0000 | [diff] [blame] | 40 | PIXELFLINGER_SRC_FILES += codeflinger/ARMAssembler.cpp |
| 41 | PIXELFLINGER_SRC_FILES += codeflinger/disassem.c |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 42 | # special optimization flags for pixelflinger |
| 43 | PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer |
| 44 | endif |
| 45 | |
Duane Sand | 068f9f3 | 2012-05-24 22:09:24 -0700 | [diff] [blame] | 46 | ifeq ($(TARGET_ARCH),mips) |
Paul Lind | 2bc2b79 | 2012-02-01 10:54:19 -0800 | [diff] [blame] | 47 | PIXELFLINGER_SRC_FILES += codeflinger/MIPSAssembler.cpp |
| 48 | PIXELFLINGER_SRC_FILES += codeflinger/mips_disassem.c |
Duane Sand | 068f9f3 | 2012-05-24 22:09:24 -0700 | [diff] [blame] | 49 | PIXELFLINGER_SRC_FILES += arch-mips/t32cb16blend.S |
| 50 | PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer |
| 51 | endif |
| 52 | |
Ying Wang | 083b5cc | 2013-04-09 22:03:45 -0700 | [diff] [blame] | 53 | LOCAL_SHARED_LIBRARIES := libcutils liblog |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 54 | |
Colin Cross | d4146e6 | 2014-01-21 20:12:28 -0800 | [diff] [blame] | 55 | ifeq ($(TARGET_ARCH),arm64) |
| 56 | PIXELFLINGER_SRC_FILES += arch-arm64/t32cb16blend.S |
| 57 | PIXELFLINGER_SRC_FILES += arch-arm64/col32cb16blend.S |
| 58 | PIXELFLINGER_SRC_FILES += codeflinger/Arm64Assembler.cpp |
| 59 | PIXELFLINGER_SRC_FILES += codeflinger/Arm64Disassembler.cpp |
Ashok Bhat | 658f89d | 2013-02-28 18:32:03 +0000 | [diff] [blame] | 60 | PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer |
| 61 | endif |
| 62 | |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 63 | # |
| 64 | # Shared library |
| 65 | # |
| 66 | |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 67 | LOCAL_MODULE:= libpixelflinger |
| 68 | LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) |
Brian Swetland | 5a32695 | 2008-12-23 22:29:27 -0800 | [diff] [blame] | 69 | LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) |
| 70 | |
| 71 | ifneq ($(BUILD_TINY_ANDROID),true) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 72 | # Really this should go away entirely or at least not depend on |
| 73 | # libhardware, but this at least gets us built. |
| 74 | LOCAL_SHARED_LIBRARIES += libhardware_legacy |
Brian Swetland | 5a32695 | 2008-12-23 22:29:27 -0800 | [diff] [blame] | 75 | LOCAL_CFLAGS += -DWITH_LIB_HARDWARE |
| 76 | endif |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 77 | include $(BUILD_SHARED_LIBRARY) |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 78 | |
| 79 | # |
| 80 | # Static library version |
| 81 | # |
| 82 | |
| 83 | include $(CLEAR_VARS) |
| 84 | LOCAL_MODULE:= libpixelflinger_static |
| 85 | LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) |
Ying Wang | 083b5cc | 2013-04-09 22:03:45 -0700 | [diff] [blame] | 86 | LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 87 | include $(BUILD_STATIC_LIBRARY) |
The Android Open Source Project | 35237d1 | 2008-12-17 18:08:08 -0800 | [diff] [blame] | 88 | |
| 89 | |
| 90 | include $(call all-makefiles-under,$(LOCAL_PATH)) |