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 \ |
| 12 | codeflinger/ARMAssembler.cpp \ |
| 13 | codeflinger/CodeCache.cpp \ |
| 14 | codeflinger/GGLAssembler.cpp \ |
| 15 | codeflinger/load_store.cpp \ |
| 16 | codeflinger/blending.cpp \ |
| 17 | codeflinger/texturing.cpp \ |
| 18 | codeflinger/disassem.c \ |
| 19 | tinyutils/SharedBuffer.cpp \ |
| 20 | tinyutils/VectorImpl.cpp \ |
| 21 | fixed.cpp.arm \ |
| 22 | picker.cpp.arm \ |
| 23 | pixelflinger.cpp.arm \ |
| 24 | trap.cpp.arm \ |
| 25 | scanline.cpp.arm \ |
| 26 | format.cpp \ |
| 27 | clear.cpp \ |
| 28 | raster.cpp \ |
| 29 | buffer.cpp |
| 30 | |
| 31 | ifeq ($(TARGET_ARCH),arm) |
Martyn Capewell | f9e8ab0 | 2009-12-07 15:00:19 +0000 | [diff] [blame] | 32 | ifeq ($(TARGET_ARCH_VERSION),armv7-a) |
| 33 | PIXELFLINGER_SRC_FILES += col32cb16blend_neon.S |
| 34 | PIXELFLINGER_SRC_FILES += col32cb16blend.S |
| 35 | else |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 36 | PIXELFLINGER_SRC_FILES += t32cb16blend.S |
Martyn Capewell | f9e8ab0 | 2009-12-07 15:00:19 +0000 | [diff] [blame] | 37 | PIXELFLINGER_SRC_FILES += col32cb16blend.S |
| 38 | endif |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 39 | endif |
| 40 | |
| 41 | ifeq ($(TARGET_ARCH),arm) |
| 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) |
| 47 | PIXELFLINGER_SRC_FILES += arch-mips/t32cb16blend.S |
| 48 | PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer |
| 49 | endif |
| 50 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 51 | LOCAL_SHARED_LIBRARIES := libcutils |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 52 | |
| 53 | ifneq ($(TARGET_ARCH),arm) |
| 54 | # Required to define logging functions on the simulator. |
| 55 | # TODO: move the simulator logging functions into libcutils with |
| 56 | # the rest of the basic log stuff. |
| 57 | LOCAL_SHARED_LIBRARIES += libutils |
| 58 | endif |
| 59 | |
| 60 | # |
| 61 | # Shared library |
| 62 | # |
| 63 | |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 64 | LOCAL_MODULE:= libpixelflinger |
| 65 | LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) |
Brian Swetland | 5a32695 | 2008-12-23 22:29:27 -0800 | [diff] [blame] | 66 | LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) |
| 67 | |
| 68 | ifneq ($(BUILD_TINY_ANDROID),true) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 69 | # Really this should go away entirely or at least not depend on |
| 70 | # libhardware, but this at least gets us built. |
| 71 | LOCAL_SHARED_LIBRARIES += libhardware_legacy |
Brian Swetland | 5a32695 | 2008-12-23 22:29:27 -0800 | [diff] [blame] | 72 | LOCAL_CFLAGS += -DWITH_LIB_HARDWARE |
| 73 | endif |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 74 | include $(BUILD_SHARED_LIBRARY) |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 75 | |
| 76 | # |
| 77 | # Static library version |
| 78 | # |
| 79 | |
| 80 | include $(CLEAR_VARS) |
| 81 | LOCAL_MODULE:= libpixelflinger_static |
| 82 | LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) |
| 83 | LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 84 | include $(BUILD_STATIC_LIBRARY) |
The Android Open Source Project | 35237d1 | 2008-12-17 18:08:08 -0800 | [diff] [blame] | 85 | |
| 86 | |
| 87 | include $(call all-makefiles-under,$(LOCAL_PATH)) |