blob: a9057d7d9546d006e7ed12aa01249c3b114b051a [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 \
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070019 fixed.cpp.arm \
20 picker.cpp.arm \
21 pixelflinger.cpp.arm \
22 trap.cpp.arm \
23 scanline.cpp.arm \
24 format.cpp \
25 clear.cpp \
26 raster.cpp \
27 buffer.cpp
28
29ifeq ($(TARGET_ARCH),arm)
Martyn Capewellf9e8ab02009-12-07 15:00:19 +000030ifeq ($(TARGET_ARCH_VERSION),armv7-a)
31PIXELFLINGER_SRC_FILES += col32cb16blend_neon.S
32PIXELFLINGER_SRC_FILES += col32cb16blend.S
33else
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070034PIXELFLINGER_SRC_FILES += t32cb16blend.S
Martyn Capewellf9e8ab02009-12-07 15:00:19 +000035PIXELFLINGER_SRC_FILES += col32cb16blend.S
36endif
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070037endif
38
39ifeq ($(TARGET_ARCH),arm)
40# special optimization flags for pixelflinger
41PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer
42endif
43
Duane Sand068f9f32012-05-24 22:09:24 -070044ifeq ($(TARGET_ARCH),mips)
Paul Lind2bc2b792012-02-01 10:54:19 -080045PIXELFLINGER_SRC_FILES += codeflinger/MIPSAssembler.cpp
46PIXELFLINGER_SRC_FILES += codeflinger/mips_disassem.c
Duane Sand068f9f32012-05-24 22:09:24 -070047PIXELFLINGER_SRC_FILES += arch-mips/t32cb16blend.S
48PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer
49endif
50
Ying Wang083b5cc2013-04-09 22:03:45 -070051LOCAL_SHARED_LIBRARIES := libcutils liblog
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070052
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070053#
54# Shared library
55#
56
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070057LOCAL_MODULE:= libpixelflinger
58LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
Brian Swetland5a326952008-12-23 22:29:27 -080059LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
Narayan Kamathb6381262015-08-28 12:59:48 +010060LOCAL_C_INCLUDES += external/safe-iop/include
61LOCAL_SHARED_LIBRARIES := libcutils liblog libutils
Brian Swetland5a326952008-12-23 22:29:27 -080062
63ifneq ($(BUILD_TINY_ANDROID),true)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080064# Really this should go away entirely or at least not depend on
65# libhardware, but this at least gets us built.
66LOCAL_SHARED_LIBRARIES += libhardware_legacy
Brian Swetland5a326952008-12-23 22:29:27 -080067LOCAL_CFLAGS += -DWITH_LIB_HARDWARE
68endif
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070069include $(BUILD_SHARED_LIBRARY)
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070070
71#
72# Static library version
73#
74
75include $(CLEAR_VARS)
76LOCAL_MODULE:= libpixelflinger_static
77LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
Ying Wang083b5cc2013-04-09 22:03:45 -070078LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -070079include $(BUILD_STATIC_LIBRARY)
The Android Open Source Project35237d12008-12-17 18:08:08 -080080
81
82include $(call all-makefiles-under,$(LOCAL_PATH))