• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1BASE_PATH := $(call my-dir)
2LOCAL_PATH:= $(call my-dir)
3
4#############################################################
5#   build the skia+fretype+png+jpeg+zlib+gif library
6#
7
8include $(CLEAR_VARS)
9
10LOCAL_ARM_MODE := arm
11
12# enable this if we turn on SK_DEBUG, otherwise we exceed our prelink budget
13#LOCAL_PRELINK_MODULE := false
14
15ifneq ($(ARCH_ARM_HAVE_VFP),true)
16	LOCAL_CFLAGS += -DSK_SOFTWARE_FLOAT
17endif
18
19ifeq ($(ARCH_ARM_HAVE_NEON),true)
20	LOCAL_CFLAGS += -D__ARM_HAVE_NEON
21endif
22
23LOCAL_SRC_FILES:= \
24	src/core/Sk64.cpp \
25	src/core/SkBuffer.cpp \
26	src/core/SkChunkAlloc.cpp \
27	src/core/SkCordic.cpp \
28	src/core/SkDebug.cpp \
29	src/core/SkFloatBits.cpp \
30	src/core/SkMath.cpp \
31	src/core/SkMatrix.cpp \
32	src/core/SkMemory_stdlib.cpp \
33	src/core/SkPoint.cpp \
34	src/core/SkRect.cpp \
35	src/core/SkRegion.cpp \
36	src/core/SkString.cpp \
37	src/core/SkUtils.cpp \
38	src/ports/SkDebug_android.cpp \
39	src/effects/Sk1DPathEffect.cpp \
40	src/effects/Sk2DPathEffect.cpp \
41	src/effects/SkAvoidXfermode.cpp \
42	src/effects/SkBlurDrawLooper.cpp \
43	src/effects/SkBlurMask.cpp \
44	src/effects/SkBlurMaskFilter.cpp \
45	src/effects/SkColorFilters.cpp \
46	src/effects/SkColorMatrixFilter.cpp \
47	src/effects/SkCornerPathEffect.cpp \
48	src/effects/SkDashPathEffect.cpp \
49	src/effects/SkDiscretePathEffect.cpp \
50	src/effects/SkEmbossMask.cpp \
51	src/effects/SkEmbossMaskFilter.cpp \
52	src/effects/SkGradientShader.cpp \
53	src/effects/SkLayerDrawLooper.cpp \
54	src/effects/SkLayerRasterizer.cpp \
55	src/effects/SkPaintFlagsDrawFilter.cpp \
56	src/effects/SkPixelXorXfermode.cpp \
57	src/effects/SkPorterDuff.cpp \
58	src/effects/SkTableMaskFilter.cpp \
59	src/effects/SkTransparentShader.cpp \
60	src/images/bmpdecoderhelper.cpp \
61	src/images/SkFDStream.cpp \
62	src/images/SkFlipPixelRef.cpp \
63	src/images/SkImageDecoder.cpp \
64	src/images/SkImageDecoder_libbmp.cpp \
65	src/images/SkImageDecoder_libgif.cpp \
66	src/images/SkImageDecoder_libjpeg.cpp \
67	src/images/SkImageDecoder_libpng.cpp \
68	src/images/SkImageDecoder_libico.cpp \
69	src/images/SkImageDecoder_wbmp.cpp \
70	src/images/SkImageEncoder.cpp \
71	src/images/SkImageRef.cpp \
72	src/images/SkImageRef_GlobalPool.cpp \
73	src/images/SkImageRefPool.cpp \
74	src/images/SkMovie.cpp \
75	src/images/SkMovie_gif.cpp \
76	src/images/SkPageFlipper.cpp \
77	src/images/SkScaledBitmapSampler.cpp \
78	src/images/SkCreateRLEPixelRef.cpp \
79	src/images/SkImageDecoder_Factory.cpp \
80	src/images/SkImageEncoder_Factory.cpp \
81	src/ports/SkFontHost_android.cpp \
82	src/ports/SkFontHost_gamma.cpp \
83	src/ports/SkFontHost_FreeType.cpp \
84	src/ports/SkFontHost_tables.cpp \
85	src/ports/SkGlobals_global.cpp \
86	src/ports/SkImageRef_ashmem.cpp \
87	src/ports/SkOSFile_stdio.cpp \
88	src/ports/SkTime_Unix.cpp \
89	src/core/SkAlphaRuns.cpp \
90	src/core/SkBitmap.cpp \
91	src/core/SkBitmap_scroll.cpp \
92	src/core/SkBitmapProcShader.cpp \
93	src/core/SkBitmapProcState.cpp \
94	src/core/SkBitmapProcState_matrixProcs.cpp \
95	src/core/SkBitmapSampler.cpp \
96	src/core/SkBlitRow_D16.cpp \
97	src/core/SkBlitRow_D32.cpp \
98	src/core/SkBlitRow_D4444.cpp \
99	src/core/SkBlitter.cpp \
100	src/core/SkBlitter_4444.cpp \
101	src/core/SkBlitter_A1.cpp \
102	src/core/SkBlitter_A8.cpp \
103	src/core/SkBlitter_ARGB32.cpp \
104	src/core/SkBlitter_RGB16.cpp \
105	src/core/SkBlitter_Sprite.cpp \
106	src/core/SkCanvas.cpp \
107	src/core/SkColor.cpp \
108	src/core/SkColorFilter.cpp \
109	src/core/SkColorTable.cpp \
110	src/core/SkComposeShader.cpp \
111	src/core/SkDeque.cpp \
112	src/core/SkDevice.cpp \
113	src/core/SkDither.cpp \
114	src/core/SkDraw.cpp \
115	src/core/SkEdge.cpp \
116	src/core/SkFilterProc.cpp \
117	src/core/SkFlattenable.cpp \
118	src/core/SkGeometry.cpp \
119	src/core/SkGlobals.cpp \
120	src/core/SkGlyphCache.cpp \
121	src/core/SkGraphics.cpp \
122	src/core/SkMMapStream.cpp \
123	src/core/SkMask.cpp \
124	src/core/SkMaskFilter.cpp \
125	src/core/SkPackBits.cpp \
126	src/core/SkPaint.cpp \
127	src/core/SkPath.cpp \
128	src/core/SkPathEffect.cpp \
129	src/core/SkPathHeap.cpp \
130	src/core/SkPathMeasure.cpp \
131	src/core/SkPicture.cpp \
132	src/core/SkPictureFlat.cpp \
133	src/core/SkPicturePlayback.cpp \
134	src/core/SkPictureRecord.cpp \
135	src/core/SkPixelRef.cpp \
136	src/core/SkProcSpriteBlitter.cpp \
137	src/core/SkPtrRecorder.cpp \
138	src/core/SkQuadClipper.cpp \
139	src/core/SkRasterizer.cpp \
140	src/core/SkRefCnt.cpp \
141	src/core/SkRegion_path.cpp \
142	src/core/SkScalerContext.cpp \
143	src/core/SkScan.cpp \
144	src/core/SkScan_AntiPath.cpp \
145	src/core/SkScan_Antihair.cpp \
146	src/core/SkScan_Hairline.cpp \
147	src/core/SkScan_Path.cpp \
148	src/core/SkShader.cpp \
149	src/core/SkShape.cpp \
150	src/core/SkSpriteBlitter_ARGB32.cpp \
151	src/core/SkSpriteBlitter_RGB16.cpp \
152	src/core/SkStream.cpp \
153	src/core/SkStroke.cpp \
154	src/core/SkStrokerPriv.cpp \
155	src/core/SkTSearch.cpp \
156	src/core/SkTypeface.cpp \
157	src/core/SkUnPreMultiply.cpp \
158	src/core/SkXfermode.cpp \
159	src/core/SkWriter32.cpp \
160	src/utils/SkCamera.cpp \
161	src/utils/SkDumpCanvas.cpp \
162	src/utils/SkInterpolator.cpp \
163	src/utils/SkNinePatch.cpp \
164	src/utils/SkProxyCanvas.cpp
165
166ifeq ($(TARGET_ARCH),arm)
167LOCAL_SRC_FILES += \
168	src/opts/SkBlitRow_opts_arm.cpp \
169	src/opts/SkBitmapProcState_opts_arm.cpp
170else
171LOCAL_SRC_FILES += \
172	src/opts/SkBlitRow_opts_none.cpp \
173	src/opts/SkBitmapProcState_opts_none.cpp
174endif
175
176# these are for emoji support, needed by webkit
177LOCAL_SRC_FILES += \
178	emoji/EmojiFont.cpp
179
180LOCAL_SHARED_LIBRARIES := \
181	libcutils \
182    libemoji \
183	libutils \
184	libz
185
186LOCAL_STATIC_LIBRARIES := \
187	libft2 \
188	libpng \
189	libgif \
190	libjpeg
191
192LOCAL_C_INCLUDES += \
193	$(LOCAL_PATH)/src/core \
194	$(LOCAL_PATH)/include/core \
195	$(LOCAL_PATH)/include/effects \
196	$(LOCAL_PATH)/include/images \
197	$(LOCAL_PATH)/include/utils \
198	$(LOCAL_PATH)/include/xml \
199	external/freetype/include \
200	external/zlib \
201	external/libpng \
202	external/giflib \
203	external/jpeg \
204    frameworks/opt/emoji
205
206ifeq ($(NO_FALLBACK_FONT),true)
207	LOCAL_CFLAGS += -DNO_FALLBACK_FONT
208endif
209
210LOCAL_LDLIBS += -lpthread
211
212LOCAL_MODULE:= libskia
213
214include $(BUILD_SHARED_LIBRARY)
215
216#############################################################
217# Build the skia-opengl glue library
218#
219
220include $(CLEAR_VARS)
221
222LOCAL_PRELINK_MODULE := false
223
224LOCAL_ARM_MODE := arm
225
226ifneq ($(ARCH_ARM_HAVE_VFP),true)
227	LOCAL_CFLAGS += -DSK_SOFTWARE_FLOAT
228endif
229
230ifeq ($(ARCH_ARM_HAVE_NEON),true)
231	LOCAL_CFLAGS += -D__ARM_HAVE_NEON
232endif
233
234LOCAL_SRC_FILES:= \
235	src/gl/SkGL.cpp \
236	src/gl/SkGLCanvas.cpp \
237	src/gl/SkGLDevice.cpp \
238	src/gl/SkGLDevice_SWLayer.cpp \
239	src/gl/SkGLTextCache.cpp \
240	src/gl/SkTextureCache.cpp
241
242LOCAL_SHARED_LIBRARIES := \
243	libcutils \
244	libutils \
245	libskia \
246	libGLESv1_CM
247
248LOCAL_C_INCLUDES += \
249	$(LOCAL_PATH)/src/core \
250	$(LOCAL_PATH)/src/gl \
251	$(LOCAL_PATH)/include/core \
252	$(LOCAL_PATH)/include/effects \
253	$(LOCAL_PATH)/include/utils
254
255LOCAL_LDLIBS += -lpthread
256
257LOCAL_MODULE:= libskiagl
258
259include $(BUILD_SHARED_LIBRARY)
260
261#############################################################
262# Build the skia tools
263#
264
265# benchmark (timings)
266include $(BASE_PATH)/bench/Android.mk
267
268# golden-master (fidelity / regression test)
269include $(BASE_PATH)/gm/Android.mk
270
271