blob: 0cc85d9dcc3da8ce61418b32734a121282f3e366 [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001LOCAL_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)
43PIXELFLINGER_SRC_FILES += t32cb16blend.S
44endif
45
46ifeq ($(TARGET_ARCH),arm)
47# special optimization flags for pixelflinger
48PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer
49endif
50
51LOCAL_SHARED_LIBRARIES := libcutils
52
53ifneq ($(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.
57LOCAL_SHARED_LIBRARIES += libutils
58endif
59
60#
61# Shared library
62#
63
64LOCAL_MODULE:= libpixelflinger
65LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
66LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
Jean-Baptiste Queru4b29fe62009-11-12 18:46:23 -080067
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080068ifneq ($(BUILD_TINY_ANDROID),true)
69# Really this should go away entirely or at least not depend on
70# libhardware, but this at least gets us built.
71LOCAL_SHARED_LIBRARIES += libhardware_legacy
72LOCAL_CFLAGS += -DWITH_LIB_HARDWARE
73endif
Jean-Baptiste Queru4b29fe62009-11-12 18:46:23 -080074
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080075ifeq ($(TARGET_ARCH),arm)
76LOCAL_WHOLE_STATIC_LIBRARIES := libpixelflinger_armv6
77endif
78include $(BUILD_SHARED_LIBRARY)
79
80#
81# Static library version
82#
83
84include $(CLEAR_VARS)
85LOCAL_MODULE:= libpixelflinger_static
86LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
87LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
88ifeq ($(TARGET_ARCH),arm)
89LOCAL_WHOLE_STATIC_LIBRARIES := libpixelflinger_armv6
90endif
91include $(BUILD_STATIC_LIBRARY)
92
93
94include $(call all-makefiles-under,$(LOCAL_PATH))