blob: 488003f2a9d31bfa5e6840ce3754a80b340b8f27 [file] [log] [blame]
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4#
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -07005# C/C++ and ARMv5 objects
6#
7
8include $(CLEAR_VARS)
9PIXELFLINGER_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
31ifeq ($(TARGET_ARCH),arm)
Martyn Capewellf9e8ab02009-12-07 15:00:19 +000032ifeq ($(TARGET_ARCH_VERSION),armv7-a)
33PIXELFLINGER_SRC_FILES += col32cb16blend_neon.S
34PIXELFLINGER_SRC_FILES += col32cb16blend.S
35else
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070036PIXELFLINGER_SRC_FILES += t32cb16blend.S
Martyn Capewellf9e8ab02009-12-07 15:00:19 +000037PIXELFLINGER_SRC_FILES += col32cb16blend.S
38endif
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070039endif
40
41ifeq ($(TARGET_ARCH),arm)
42# special optimization flags for pixelflinger
43PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer
44endif
45
Duane Sand068f9f32012-05-24 22:09:24 -070046ifeq ($(TARGET_ARCH),mips)
Paul Lind2bc2b792012-02-01 10:54:19 -080047PIXELFLINGER_SRC_FILES += codeflinger/MIPSAssembler.cpp
48PIXELFLINGER_SRC_FILES += codeflinger/mips_disassem.c
Duane Sand068f9f32012-05-24 22:09:24 -070049PIXELFLINGER_SRC_FILES += arch-mips/t32cb16blend.S
50PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer
51endif
52
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080053LOCAL_SHARED_LIBRARIES := libcutils
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070054
55ifneq ($(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.
59LOCAL_SHARED_LIBRARIES += libutils
60endif
61
62#
63# Shared library
64#
65
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070066LOCAL_MODULE:= libpixelflinger
67LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
Brian Swetland5a326952008-12-23 22:29:27 -080068LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
69
70ifneq ($(BUILD_TINY_ANDROID),true)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080071# Really this should go away entirely or at least not depend on
72# libhardware, but this at least gets us built.
73LOCAL_SHARED_LIBRARIES += libhardware_legacy
Brian Swetland5a326952008-12-23 22:29:27 -080074LOCAL_CFLAGS += -DWITH_LIB_HARDWARE
75endif
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070076include $(BUILD_SHARED_LIBRARY)
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070077
78#
79# Static library version
80#
81
82include $(CLEAR_VARS)
83LOCAL_MODULE:= libpixelflinger_static
84LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
85LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070086include $(BUILD_STATIC_LIBRARY)
The Android Open Source Project35237d12008-12-17 18:08:08 -080087
88
89include $(call all-makefiles-under,$(LOCAL_PATH))