1
2###############################################################################
3#
4# THIS FILE IS AUTOGENERATED BY GYP_TO_ANDROID.PY. DO NOT EDIT.
5#
6###############################################################################
7
8BASE_PATH := $(call my-dir)
9LOCAL_PATH:= $(call my-dir)
10
11###############################################################################
12#
13# PROBLEMS WITH SKIA DEBUGGING?? READ THIS...
14#
15# The debug build results in changes to the Skia headers. This means that those
16# using libskia must also be built with the debug version of the Skia headers.
17# There are a few scenarios where this comes into play:
18#
19# (1) You're building debug code that depends on libskia.
20#   (a) If libskia is built in release, then define SK_RELEASE when building
21#       your sources.
22#   (b) If libskia is built with debugging (see step 2), then no changes are
23#       needed since your sources and libskia have been built with SK_DEBUG.
24# (2) You're building libskia in debug mode.
25#   (a) RECOMMENDED: You can build the entire system in debug mode. Do this by
26#       updating your build/core/config.mk to include -DSK_DEBUG on the line
27#       that defines COMMON_GLOBAL_CFLAGS
28#   (b) You can update all the users of libskia to define SK_DEBUG when they are
29#       building their sources.
30#
31# NOTE: If neither SK_DEBUG or SK_RELEASE are defined then Skia checks NDEBUG to
32#       determine which build type to use.
33###############################################################################
34
35include $(CLEAR_VARS)
36LOCAL_ARM_MODE := thumb
37ifeq ($(TARGET_ARCH),arm)
38	ifeq ($(ARCH_ARM_HAVE_VFP),true)
39		LOCAL_CFLAGS += -DANDROID_LARGE_MEMORY_DEVICE
40	endif
41else
42	LOCAL_CFLAGS += -DANDROID_LARGE_MEMORY_DEVICE
43endif
44
45# used for testing
46#LOCAL_CFLAGS += -g -O0
47
48ifeq ($(NO_FALLBACK_FONT),true)
49	LOCAL_CFLAGS += -DNO_FALLBACK_FONT
50endif
51
52LOCAL_CFLAGS += \
53	local_cflags
54
55LOCAL_CPPFLAGS := \
56	local_cppflags
57
58LOCAL_SRC_FILES := \
59	local_src_files
60
61LOCAL_SHARED_LIBRARIES := \
62	local_shared_libraries
63
64LOCAL_STATIC_LIBRARIES := \
65	local_static_libraries
66
67LOCAL_C_INCLUDES := \
68	local_c_includes
69
70LOCAL_EXPORT_C_INCLUDE_DIRS := \
71	local_export_c_include_dirs
72
73LOCAL_CFLAGS += \
74	-Ddefines
75
76LOCAL_MODULE_TAGS := \
77	local_module_tags
78
79LOCAL_MODULE := \
80	local_module
81
82ifeq ($(COND), true)
83LOCAL_CFLAGS_foo += \
84	local_cflags_foo
85
86LOCAL_CPPFLAGS_foo += \
87	local_cppflags_foo
88
89LOCAL_SRC_FILES_foo += \
90	local_src_files_foo
91
92LOCAL_SHARED_LIBRARIES_foo += \
93	local_shared_libraries_foo
94
95LOCAL_STATIC_LIBRARIES_foo += \
96	local_static_libraries_foo
97
98LOCAL_C_INCLUDES_foo += \
99	local_c_includes_foo
100
101LOCAL_EXPORT_C_INCLUDE_DIRS_foo += \
102	local_export_c_include_dirs_foo
103
104LOCAL_CFLAGS_foo += \
105	-Ddefines_foo
106
107LOCAL_MODULE_TAGS_foo += \
108	local_module_tags_foo
109
110LOCAL_MODULE_foo += \
111	local_module_foo
112
113endif
114
115LOCAL_CFLAGS_bar += \
116	local_cflags_bar
117
118LOCAL_CPPFLAGS_bar += \
119	local_cppflags_bar
120
121LOCAL_SRC_FILES_bar += \
122	local_src_files_bar
123
124LOCAL_SHARED_LIBRARIES_bar += \
125	local_shared_libraries_bar
126
127LOCAL_STATIC_LIBRARIES_bar += \
128	local_static_libraries_bar
129
130LOCAL_C_INCLUDES_bar += \
131	local_c_includes_bar
132
133LOCAL_EXPORT_C_INCLUDE_DIRS_bar += \
134	local_export_c_include_dirs_bar
135
136LOCAL_CFLAGS_bar += \
137	-Ddefines_bar
138
139LOCAL_MODULE_TAGS_bar += \
140	local_module_tags_bar
141
142LOCAL_MODULE_bar += \
143	local_module_bar
144
145include external/stlport/libstlport.mk
146include $(BUILD_SHARED_LIBRARY)
147
148#############################################################
149# Build the skia tools
150#
151
152# benchmark (timings)
153include $(BASE_PATH)/bench/Android.mk
154
155# golden-master (fidelity / regression test)
156include $(BASE_PATH)/gm/Android.mk
157
158# unit-tests
159include $(BASE_PATH)/tests/Android.mk
160
161# diamond-master (one test to rule them all)
162include $(BASE_PATH)/dm/Android.mk
163