Android.mk revision 79f54b86b88ff0bfa1c7a237e0f1c1a361c8e9ca
1LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SDK_VERSION := 14
6
7LOCAL_MODULE := libpixman
8
9LOCAL_CFLAGS := -DHAVE_CONFIG_H
10
11# Core files
12LOCAL_SRC_FILES := \
13	pixman.c \
14	pixman-access.c \
15	pixman-access-accessors.c \
16	pixman-bits-image.c \
17	pixman-combine32.c \
18	pixman-combine-float.c \
19	pixman-conical-gradient.c \
20	pixman-filter.c \
21	pixman-x86.c \
22	pixman-mips.c \
23	pixman-arm.c \
24	pixman-ppc.c \
25	pixman-edge.c \
26	pixman-edge-accessors.c \
27	pixman-fast-path.c \
28	pixman-glyph.c \
29	pixman-general.c \
30	pixman-gradient-walker.c \
31	pixman-image.c \
32	pixman-implementation.c \
33	pixman-linear-gradient.c \
34	pixman-matrix.c \
35	pixman-noop.c \
36	pixman-radial-gradient.c \
37	pixman-region16.c \
38	pixman-region32.c \
39	pixman-solid-fill.c \
40	pixman-timer.c \
41	pixman-trap.c \
42	pixman-utils.c
43
44ifeq ($(strip $(TARGET_ARCH)),arm)
45	ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
46		LOCAL_CFLAGS += -DUSE_ARM_NEON
47		LOCAL_SRC_FILES += \
48			pixman-arm-neon.c \
49			pixman-arm-neon-asm.S \
50			pixman-arm-neon-asm-bilinear.S
51	else
52		LOCAL_CFLAGS += -DUSE_ARM_SIMD
53		LOCAL_SRC_FILES += \
54			pixman-arm-simd.c \
55			pixman-arm-simd-asm.S \
56			pixman-arm-simd-asm-scaled.S
57	endif
58endif
59
60LOCAL_STATIC_LIBRARIES := cpufeatures
61
62include $(BUILD_STATIC_LIBRARY)
63
64$(call import-module,android/cpufeatures)
65