blob: 6491d243b29c7e253c4a38362140a6a63c5daac5 [file] [log] [blame]
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4#
5# ARMv6 specific objects
6#
7
8ifeq ($(TARGET_ARCH),arm)
9LOCAL_ASFLAGS := -march=armv6
10LOCAL_SRC_FILES := rotate90CW_4x4_16v6.S
11LOCAL_MODULE := libpixelflinger_armv6
12include $(BUILD_STATIC_LIBRARY)
13endif
14
15#
16# C/C++ and ARMv5 objects
17#
18
19include $(CLEAR_VARS)
20PIXELFLINGER_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
42ifeq ($(TARGET_ARCH),arm)
Martyn Capewellf9e8ab02009-12-07 15:00:19 +000043ifeq ($(TARGET_ARCH_VERSION),armv7-a)
44PIXELFLINGER_SRC_FILES += col32cb16blend_neon.S
45PIXELFLINGER_SRC_FILES += col32cb16blend.S
46else
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070047PIXELFLINGER_SRC_FILES += t32cb16blend.S
Martyn Capewellf9e8ab02009-12-07 15:00:19 +000048PIXELFLINGER_SRC_FILES += col32cb16blend.S
49endif
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070050endif
51
52ifeq ($(TARGET_ARCH),arm)
53# special optimization flags for pixelflinger
54PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer
55endif
56
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080057LOCAL_SHARED_LIBRARIES := libcutils
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070058
59ifneq ($(TARGET_ARCH),arm)
60# Required to define logging functions on the simulator.
61# TODO: move the simulator logging functions into libcutils with
62# the rest of the basic log stuff.
63LOCAL_SHARED_LIBRARIES += libutils
64endif
65
66#
67# Shared library
68#
69
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070070LOCAL_MODULE:= libpixelflinger
71LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
Brian Swetland5a326952008-12-23 22:29:27 -080072LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
73
74ifneq ($(BUILD_TINY_ANDROID),true)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080075# Really this should go away entirely or at least not depend on
76# libhardware, but this at least gets us built.
77LOCAL_SHARED_LIBRARIES += libhardware_legacy
Brian Swetland5a326952008-12-23 22:29:27 -080078LOCAL_CFLAGS += -DWITH_LIB_HARDWARE
79endif
80
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070081ifeq ($(TARGET_ARCH),arm)
82LOCAL_WHOLE_STATIC_LIBRARIES := libpixelflinger_armv6
83endif
84include $(BUILD_SHARED_LIBRARY)
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070085
86#
87# Static library version
88#
89
90include $(CLEAR_VARS)
91LOCAL_MODULE:= libpixelflinger_static
92LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
93LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
94ifeq ($(TARGET_ARCH),arm)
95LOCAL_WHOLE_STATIC_LIBRARIES := libpixelflinger_armv6
96endif
97include $(BUILD_STATIC_LIBRARY)
The Android Open Source Project35237d12008-12-17 18:08:08 -080098
99
100include $(call all-makefiles-under,$(LOCAL_PATH))