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 | # |
| 5 | # ARMv6 specific objects |
| 6 | # |
| 7 | |
| 8 | ifeq ($(TARGET_ARCH),arm) |
| 9 | LOCAL_ASFLAGS := -march=armv6 |
| 10 | LOCAL_SRC_FILES := rotate90CW_4x4_16v6.S |
| 11 | LOCAL_MODULE := libpixelflinger_armv6 |
| 12 | include $(BUILD_STATIC_LIBRARY) |
| 13 | endif |
| 14 | |
| 15 | # |
| 16 | # C/C++ and ARMv5 objects |
| 17 | # |
| 18 | |
| 19 | include $(CLEAR_VARS) |
| 20 | PIXELFLINGER_SRC_FILES:= \ |
| 21 | codeflinger/ARMAssemblerInterface.cpp \ |
| 22 | codeflinger/ARMAssemblerProxy.cpp \ |
| 23 | codeflinger/ARMAssembler.cpp \ |
| 24 | codeflinger/CodeCache.cpp \ |
| 25 | codeflinger/GGLAssembler.cpp \ |
| 26 | codeflinger/load_store.cpp \ |
| 27 | codeflinger/blending.cpp \ |
| 28 | codeflinger/texturing.cpp \ |
| 29 | codeflinger/disassem.c \ |
| 30 | tinyutils/SharedBuffer.cpp \ |
| 31 | tinyutils/VectorImpl.cpp \ |
| 32 | fixed.cpp.arm \ |
| 33 | picker.cpp.arm \ |
| 34 | pixelflinger.cpp.arm \ |
| 35 | trap.cpp.arm \ |
| 36 | scanline.cpp.arm \ |
| 37 | format.cpp \ |
| 38 | clear.cpp \ |
| 39 | raster.cpp \ |
| 40 | buffer.cpp |
| 41 | |
| 42 | ifeq ($(TARGET_ARCH),arm) |
| 43 | PIXELFLINGER_SRC_FILES += t32cb16blend.S |
| 44 | endif |
| 45 | |
| 46 | ifeq ($(TARGET_ARCH),arm) |
| 47 | # special optimization flags for pixelflinger |
| 48 | PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer |
| 49 | endif |
| 50 | |
| 51 | LOCAL_SHARED_LIBRARIES := \ |
| 52 | libhardware \ |
| 53 | libcutils |
| 54 | |
| 55 | ifneq ($(TARGET_ARCH),arm) |
| 56 | # Required to define logging functions on the simulator. |
| 57 | # TODO: move the simulator logging functions into libcutils with |
| 58 | # the rest of the basic log stuff. |
| 59 | LOCAL_SHARED_LIBRARIES += libutils |
| 60 | endif |
| 61 | |
| 62 | # |
| 63 | # Shared library |
| 64 | # |
| 65 | |
| 66 | ifneq ($(BUILD_TINY_ANDROID),true) |
| 67 | LOCAL_MODULE:= libpixelflinger |
| 68 | LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES) |
| 69 | LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) -DWITH_LIB_HARDWARE |
| 70 | ifeq ($(TARGET_ARCH),arm) |
| 71 | LOCAL_WHOLE_STATIC_LIBRARIES := libpixelflinger_armv6 |
| 72 | endif |
| 73 | include $(BUILD_SHARED_LIBRARY) |
| 74 | endif |
| 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) |
| 84 | ifeq ($(TARGET_ARCH),arm) |
| 85 | LOCAL_WHOLE_STATIC_LIBRARIES := libpixelflinger_armv6 |
| 86 | endif |
| 87 | include $(BUILD_STATIC_LIBRARY) |