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:= \ |
Colin Cross | f88fb1f | 2014-02-11 13:32:56 -0800 | [diff] [blame] | 10 | 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 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 | |
Colin Cross | f88fb1f | 2014-02-11 13:32:56 -0800 | [diff] [blame] | 29 | PIXELFLINGER_CFLAGS := -fstrict-aliasing -fomit-frame-pointer |
| 30 | |
| 31 | PIXELFLINGER_SRC_FILES_arm := \ |
| 32 | codeflinger/ARMAssembler.cpp \ |
| 33 | codeflinger/disassem.c \ |
| 34 | col32cb16blend.S \ |
| 35 | t32cb16blend.S \ |
| 36 | |
Kévin PETIT | d82b2a3 | 2014-03-06 15:43:58 +0000 | [diff] [blame] | 37 | ifeq ($(ARCH_ARM_HAVE_NEON),true) |
Colin Cross | f88fb1f | 2014-02-11 13:32:56 -0800 | [diff] [blame] | 38 | PIXELFLINGER_SRC_FILES_arm += col32cb16blend_neon.S |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 39 | endif |
| 40 | |
Colin Cross | f88fb1f | 2014-02-11 13:32:56 -0800 | [diff] [blame] | 41 | PIXELFLINGER_SRC_FILES_arm64 := \ |
| 42 | codeflinger/Arm64Assembler.cpp \ |
| 43 | codeflinger/Arm64Disassembler.cpp \ |
| 44 | arch-arm64/col32cb16blend.S \ |
| 45 | arch-arm64/t32cb16blend.S \ |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 46 | |
Colin Cross | f88fb1f | 2014-02-11 13:32:56 -0800 | [diff] [blame] | 47 | PIXELFLINGER_SRC_FILES_mips := \ |
| 48 | codeflinger/MIPSAssembler.cpp \ |
| 49 | codeflinger/mips_disassem.c \ |
| 50 | arch-mips/t32cb16blend.S \ |
Ashok Bhat | 658f89d | 2013-02-28 18:32:03 +0000 | [diff] [blame] | 51 | |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 52 | # |
| 53 | # Shared library |
| 54 | # |
| 55 | |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 56 | LOCAL_MODULE:= libpixelflinger |
| 57 | LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) |
Colin Cross | f88fb1f | 2014-02-11 13:32:56 -0800 | [diff] [blame] | 58 | LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm) |
| 59 | LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64) |
| 60 | LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips) |
Brian Swetland | 5a32695 | 2008-12-23 22:29:27 -0800 | [diff] [blame] | 61 | LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) |
Colin Cross | f88fb1f | 2014-02-11 13:32:56 -0800 | [diff] [blame] | 62 | LOCAL_SHARED_LIBRARIES := libcutils liblog |
Brian Swetland | 5a32695 | 2008-12-23 22:29:27 -0800 | [diff] [blame] | 63 | |
| 64 | ifneq ($(BUILD_TINY_ANDROID),true) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 65 | # Really this should go away entirely or at least not depend on |
| 66 | # libhardware, but this at least gets us built. |
| 67 | LOCAL_SHARED_LIBRARIES += libhardware_legacy |
Brian Swetland | 5a32695 | 2008-12-23 22:29:27 -0800 | [diff] [blame] | 68 | LOCAL_CFLAGS += -DWITH_LIB_HARDWARE |
| 69 | endif |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 70 | include $(BUILD_SHARED_LIBRARY) |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 71 | |
| 72 | # |
| 73 | # Static library version |
| 74 | # |
| 75 | |
| 76 | include $(CLEAR_VARS) |
| 77 | LOCAL_MODULE:= libpixelflinger_static |
| 78 | LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) |
Colin Cross | f88fb1f | 2014-02-11 13:32:56 -0800 | [diff] [blame] | 79 | LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm) |
| 80 | LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64) |
| 81 | LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips) |
Ying Wang | 083b5cc | 2013-04-09 22:03:45 -0700 | [diff] [blame] | 82 | LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 83 | include $(BUILD_STATIC_LIBRARY) |
The Android Open Source Project | 35237d1 | 2008-12-17 18:08:08 -0800 | [diff] [blame] | 84 | |
| 85 | |
| 86 | include $(call all-makefiles-under,$(LOCAL_PATH)) |