1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_WebKit_Source_core_webcore_rendering_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(call intermediates-dir-for,GYP,third_party_WebKit_Source_core_webcore_prerequisites_gyp,,,$(GYP_VAR_PREFIX))/webcore_prerequisites.stamp \
15	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a
16
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	third_party/WebKit/Source/core/rendering/AbstractInlineTextBox.cpp \
28	third_party/WebKit/Source/core/rendering/AutoTableLayout.cpp \
29	third_party/WebKit/Source/core/rendering/BidiRunForLine.cpp \
30	third_party/WebKit/Source/core/rendering/ClipRect.cpp \
31	third_party/WebKit/Source/core/rendering/CounterNode.cpp \
32	third_party/WebKit/Source/core/rendering/EllipsisBox.cpp \
33	third_party/WebKit/Source/core/rendering/FilterEffectRenderer.cpp \
34	third_party/WebKit/Source/core/rendering/FixedTableLayout.cpp \
35	third_party/WebKit/Source/core/rendering/FloatingObjects.cpp \
36	third_party/WebKit/Source/core/rendering/FlowThreadController.cpp \
37	third_party/WebKit/Source/core/rendering/GraphicsContextAnnotator.cpp \
38	third_party/WebKit/Source/core/rendering/HitTestLocation.cpp \
39	third_party/WebKit/Source/core/rendering/HitTestResult.cpp \
40	third_party/WebKit/Source/core/rendering/HitTestingTransformState.cpp \
41	third_party/WebKit/Source/core/rendering/ImageQualityController.cpp \
42	third_party/WebKit/Source/core/rendering/InlineBox.cpp \
43	third_party/WebKit/Source/core/rendering/InlineFlowBox.cpp \
44	third_party/WebKit/Source/core/rendering/InlineTextBox.cpp \
45	third_party/WebKit/Source/core/rendering/LayoutState.cpp \
46	third_party/WebKit/Source/core/rendering/OrderIterator.cpp \
47	third_party/WebKit/Source/core/rendering/PaintInvalidationState.cpp \
48	third_party/WebKit/Source/core/rendering/PointerEventsHitRules.cpp \
49	third_party/WebKit/Source/core/rendering/RenderApplet.cpp \
50	third_party/WebKit/Source/core/rendering/RenderBR.cpp \
51	third_party/WebKit/Source/core/rendering/RenderBlock.cpp \
52	third_party/WebKit/Source/core/rendering/RenderBlockFlow.cpp \
53	third_party/WebKit/Source/core/rendering/RenderBlockLineLayout.cpp \
54	third_party/WebKit/Source/core/rendering/RenderBox.cpp \
55	third_party/WebKit/Source/core/rendering/RenderBoxModelObject.cpp \
56	third_party/WebKit/Source/core/rendering/RenderButton.cpp \
57	third_party/WebKit/Source/core/rendering/RenderCombineText.cpp \
58	third_party/WebKit/Source/core/rendering/RenderCounter.cpp \
59	third_party/WebKit/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp \
60	third_party/WebKit/Source/core/rendering/RenderDetailsMarker.cpp \
61	third_party/WebKit/Source/core/rendering/RenderEmbeddedObject.cpp \
62	third_party/WebKit/Source/core/rendering/RenderFieldset.cpp \
63	third_party/WebKit/Source/core/rendering/RenderFileUploadControl.cpp \
64	third_party/WebKit/Source/core/rendering/RenderFlexibleBox.cpp \
65	third_party/WebKit/Source/core/rendering/RenderFlowThread.cpp \
66	third_party/WebKit/Source/core/rendering/RenderFrame.cpp \
67	third_party/WebKit/Source/core/rendering/RenderFrameSet.cpp \
68	third_party/WebKit/Source/core/rendering/RenderFullScreen.cpp \
69	third_party/WebKit/Source/core/rendering/RenderGeometryMap.cpp \
70	third_party/WebKit/Source/core/rendering/RenderGrid.cpp \
71	third_party/WebKit/Source/core/rendering/RenderHTMLCanvas.cpp \
72	third_party/WebKit/Source/core/rendering/RenderIFrame.cpp \
73	third_party/WebKit/Source/core/rendering/RenderImage.cpp \
74	third_party/WebKit/Source/core/rendering/RenderImageResource.cpp \
75	third_party/WebKit/Source/core/rendering/RenderImageResourceStyleImage.cpp \
76	third_party/WebKit/Source/core/rendering/RenderInline.cpp \
77	third_party/WebKit/Source/core/rendering/RenderLayer.cpp \
78	third_party/WebKit/Source/core/rendering/RenderLayerClipper.cpp \
79	third_party/WebKit/Source/core/rendering/RenderLayerFilterInfo.cpp \
80	third_party/WebKit/Source/core/rendering/RenderLayerModelObject.cpp \
81	third_party/WebKit/Source/core/rendering/RenderLayerReflectionInfo.cpp \
82	third_party/WebKit/Source/core/rendering/RenderLayerScrollableArea.cpp \
83	third_party/WebKit/Source/core/rendering/RenderLayerStackingNode.cpp \
84	third_party/WebKit/Source/core/rendering/RenderLayerStackingNodeIterator.cpp \
85	third_party/WebKit/Source/core/rendering/RenderLineBoxList.cpp \
86	third_party/WebKit/Source/core/rendering/RenderListBox.cpp \
87	third_party/WebKit/Source/core/rendering/RenderListItem.cpp \
88	third_party/WebKit/Source/core/rendering/RenderListMarker.cpp \
89	third_party/WebKit/Source/core/rendering/RenderMarquee.cpp \
90	third_party/WebKit/Source/core/rendering/RenderMedia.cpp \
91	third_party/WebKit/Source/core/rendering/RenderMediaControlElements.cpp \
92	third_party/WebKit/Source/core/rendering/RenderMediaControls.cpp \
93	third_party/WebKit/Source/core/rendering/RenderMenuList.cpp \
94	third_party/WebKit/Source/core/rendering/RenderMeter.cpp \
95	third_party/WebKit/Source/core/rendering/RenderMultiColumnFlowThread.cpp \
96	third_party/WebKit/Source/core/rendering/RenderMultiColumnSet.cpp \
97	third_party/WebKit/Source/core/rendering/RenderObject.cpp \
98	third_party/WebKit/Source/core/rendering/RenderObjectChildList.cpp \
99	third_party/WebKit/Source/core/rendering/RenderPagedFlowThread.cpp \
100	third_party/WebKit/Source/core/rendering/RenderPart.cpp \
101	third_party/WebKit/Source/core/rendering/RenderProgress.cpp \
102	third_party/WebKit/Source/core/rendering/RenderQuote.cpp \
103	third_party/WebKit/Source/core/rendering/RenderRegion.cpp \
104	third_party/WebKit/Source/core/rendering/RenderReplaced.cpp \
105	third_party/WebKit/Source/core/rendering/RenderReplica.cpp \
106	third_party/WebKit/Source/core/rendering/RenderRuby.cpp \
107	third_party/WebKit/Source/core/rendering/RenderRubyBase.cpp \
108	third_party/WebKit/Source/core/rendering/RenderRubyRun.cpp \
109	third_party/WebKit/Source/core/rendering/RenderRubyText.cpp \
110	third_party/WebKit/Source/core/rendering/RenderScrollbar.cpp \
111	third_party/WebKit/Source/core/rendering/RenderScrollbarPart.cpp \
112	third_party/WebKit/Source/core/rendering/RenderScrollbarTheme.cpp \
113	third_party/WebKit/Source/core/rendering/RenderSearchField.cpp \
114	third_party/WebKit/Source/core/rendering/RenderSlider.cpp \
115	third_party/WebKit/Source/core/rendering/RenderSliderContainer.cpp \
116	third_party/WebKit/Source/core/rendering/RenderSliderThumb.cpp \
117	third_party/WebKit/Source/core/rendering/RenderTable.cpp \
118	third_party/WebKit/Source/core/rendering/RenderTableCaption.cpp \
119	third_party/WebKit/Source/core/rendering/RenderTableCell.cpp \
120	third_party/WebKit/Source/core/rendering/RenderTableCol.cpp \
121	third_party/WebKit/Source/core/rendering/RenderTableRow.cpp \
122	third_party/WebKit/Source/core/rendering/RenderTableSection.cpp \
123	third_party/WebKit/Source/core/rendering/RenderText.cpp \
124	third_party/WebKit/Source/core/rendering/RenderTextControl.cpp \
125	third_party/WebKit/Source/core/rendering/RenderTextControlMultiLine.cpp \
126	third_party/WebKit/Source/core/rendering/RenderTextControlSingleLine.cpp \
127	third_party/WebKit/Source/core/rendering/RenderTextFragment.cpp \
128	third_party/WebKit/Source/core/rendering/RenderTheme.cpp \
129	third_party/WebKit/Source/core/rendering/RenderThemeChromiumAndroid.cpp \
130	third_party/WebKit/Source/core/rendering/RenderThemeChromiumDefault.cpp \
131	third_party/WebKit/Source/core/rendering/RenderThemeChromiumFontProvider.cpp \
132	third_party/WebKit/Source/core/rendering/RenderThemeChromiumFontProviderLinux.cpp \
133	third_party/WebKit/Source/core/rendering/RenderThemeChromiumSkia.cpp \
134	third_party/WebKit/Source/core/rendering/RenderTreeAsText.cpp \
135	third_party/WebKit/Source/core/rendering/RenderVTTCue.cpp \
136	third_party/WebKit/Source/core/rendering/RenderVideo.cpp \
137	third_party/WebKit/Source/core/rendering/RenderView.cpp \
138	third_party/WebKit/Source/core/rendering/RenderWidget.cpp \
139	third_party/WebKit/Source/core/rendering/RenderWordBreak.cpp \
140	third_party/WebKit/Source/core/rendering/RootInlineBox.cpp \
141	third_party/WebKit/Source/core/rendering/ScrollAlignment.cpp \
142	third_party/WebKit/Source/core/rendering/SubtreeLayoutScope.cpp \
143	third_party/WebKit/Source/core/rendering/TextAutosizer.cpp \
144	third_party/WebKit/Source/core/rendering/TextPainter.cpp \
145	third_party/WebKit/Source/core/rendering/TextRunConstructor.cpp \
146	third_party/WebKit/Source/core/rendering/break_lines.cpp \
147	third_party/WebKit/Source/core/rendering/compositing/CompositedLayerMapping.cpp \
148	third_party/WebKit/Source/core/rendering/compositing/CompositingInputsUpdater.cpp \
149	third_party/WebKit/Source/core/rendering/compositing/CompositingLayerAssigner.cpp \
150	third_party/WebKit/Source/core/rendering/compositing/CompositingReasonFinder.cpp \
151	third_party/WebKit/Source/core/rendering/compositing/CompositingRequirementsUpdater.cpp \
152	third_party/WebKit/Source/core/rendering/compositing/GraphicsLayerTreeBuilder.cpp \
153	third_party/WebKit/Source/core/rendering/compositing/GraphicsLayerUpdater.cpp \
154	third_party/WebKit/Source/core/rendering/compositing/RenderLayerCompositor.cpp \
155	third_party/WebKit/Source/core/rendering/line/BreakingContext.cpp \
156	third_party/WebKit/Source/core/rendering/line/LineBreaker.cpp \
157	third_party/WebKit/Source/core/rendering/line/LineWidth.cpp \
158	third_party/WebKit/Source/core/rendering/line/TrailingObjects.cpp \
159	third_party/WebKit/Source/core/rendering/shapes/BoxShape.cpp \
160	third_party/WebKit/Source/core/rendering/shapes/PolygonShape.cpp \
161	third_party/WebKit/Source/core/rendering/shapes/RasterShape.cpp \
162	third_party/WebKit/Source/core/rendering/shapes/RectangleShape.cpp \
163	third_party/WebKit/Source/core/rendering/shapes/Shape.cpp \
164	third_party/WebKit/Source/core/rendering/shapes/ShapeOutsideInfo.cpp \
165	third_party/WebKit/Source/core/rendering/style/AppliedTextDecoration.cpp \
166	third_party/WebKit/Source/core/rendering/style/BasicShapes.cpp \
167	third_party/WebKit/Source/core/rendering/style/BorderEdge.cpp \
168	third_party/WebKit/Source/core/rendering/style/ContentData.cpp \
169	third_party/WebKit/Source/core/rendering/style/CounterDirectives.cpp \
170	third_party/WebKit/Source/core/rendering/style/FillLayer.cpp \
171	third_party/WebKit/Source/core/rendering/style/GridResolvedPosition.cpp \
172	third_party/WebKit/Source/core/rendering/style/KeyframeList.cpp \
173	third_party/WebKit/Source/core/rendering/style/NinePieceImage.cpp \
174	third_party/WebKit/Source/core/rendering/style/QuotesData.cpp \
175	third_party/WebKit/Source/core/rendering/style/RenderStyle.cpp \
176	third_party/WebKit/Source/core/rendering/style/ShadowData.cpp \
177	third_party/WebKit/Source/core/rendering/style/ShadowList.cpp \
178	third_party/WebKit/Source/core/rendering/style/StyleBackgroundData.cpp \
179	third_party/WebKit/Source/core/rendering/style/StyleBoxData.cpp \
180	third_party/WebKit/Source/core/rendering/style/StyleDeprecatedFlexibleBoxData.cpp \
181	third_party/WebKit/Source/core/rendering/style/StyleFetchedImage.cpp \
182	third_party/WebKit/Source/core/rendering/style/StyleFetchedImageSet.cpp \
183	third_party/WebKit/Source/core/rendering/style/StyleFilterData.cpp \
184	third_party/WebKit/Source/core/rendering/style/StyleFlexibleBoxData.cpp \
185	third_party/WebKit/Source/core/rendering/style/StyleGeneratedImage.cpp \
186	third_party/WebKit/Source/core/rendering/style/StyleGridData.cpp \
187	third_party/WebKit/Source/core/rendering/style/StyleGridItemData.cpp \
188	third_party/WebKit/Source/core/rendering/style/StyleInheritedData.cpp \
189	third_party/WebKit/Source/core/rendering/style/StyleMarqueeData.cpp \
190	third_party/WebKit/Source/core/rendering/style/StyleMultiColData.cpp \
191	third_party/WebKit/Source/core/rendering/style/StyleRareInheritedData.cpp \
192	third_party/WebKit/Source/core/rendering/style/StyleRareNonInheritedData.cpp \
193	third_party/WebKit/Source/core/rendering/style/StyleSurroundData.cpp \
194	third_party/WebKit/Source/core/rendering/style/StyleTransformData.cpp \
195	third_party/WebKit/Source/core/rendering/style/StyleVisualData.cpp \
196	third_party/WebKit/Source/core/rendering/style/StyleWillChangeData.cpp
197
198
199# Flags passed to both C and C++ files.
200MY_CFLAGS_Debug := \
201	-fstack-protector \
202	--param=ssp-buffer-size=4 \
203	-Werror \
204	-fno-strict-aliasing \
205	-Wall \
206	-Wno-unused-parameter \
207	-Wno-missing-field-initializers \
208	-fvisibility=hidden \
209	-pipe \
210	-fPIC \
211	-Wno-unused-local-typedefs \
212	-fno-tree-sra \
213	-fno-caller-saves \
214	-Wno-psabi \
215	-fno-partial-inlining \
216	-fno-early-inlining \
217	-fno-tree-copy-prop \
218	-fno-tree-loop-optimize \
219	-fno-move-loop-invariants \
220	-ffunction-sections \
221	-funwind-tables \
222	-g \
223	-fstack-protector \
224	-fno-short-enums \
225	-finline-limit=64 \
226	-Wa,--noexecstack \
227	-U_FORTIFY_SOURCE \
228	-Wno-extra \
229	-Wno-ignored-qualifiers \
230	-Wno-type-limits \
231	-Wno-unused-but-set-variable \
232	-Os \
233	-g \
234	-gdwarf-4 \
235	-fdata-sections \
236	-ffunction-sections \
237	-fomit-frame-pointer \
238	-funwind-tables
239
240MY_DEFS_Debug := \
241	'-DV8_DEPRECATION_WARNINGS' \
242	'-D_FILE_OFFSET_BITS=64' \
243	'-DNO_TCMALLOC' \
244	'-DDISABLE_NACL' \
245	'-DCHROMIUM_BUILD' \
246	'-DUSE_LIBJPEG_TURBO=1' \
247	'-DENABLE_WEBRTC=1' \
248	'-DUSE_PROPRIETARY_CODECS' \
249	'-DENABLE_BROWSER_CDMS' \
250	'-DENABLE_CONFIGURATION_POLICY' \
251	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
252	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
253	'-DENABLE_EGLIMAGE=1' \
254	'-DCLD_VERSION=1' \
255	'-DENABLE_PRINTING=1' \
256	'-DENABLE_MANAGED_USERS=1' \
257	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
258	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
259	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
260	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
261	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
262	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
263	'-DVIDEO_HOLE=1' \
264	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
265	'-DBLINK_IMPLEMENTATION=1' \
266	'-DINSIDE_BLINK' \
267	'-DENABLE_SVG_FONTS=1' \
268	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
269	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
270	'-DENABLE_WEB_AUDIO=1' \
271	'-DENABLE_OPENTYPE_VERTICAL=1' \
272	'-DU_USING_ICU_NAMESPACE=0' \
273	'-DU_ENABLE_DYLOAD=0' \
274	'-DSK_ENABLE_INST_COUNT=0' \
275	'-DSK_SUPPORT_GPU=1' \
276	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
277	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
278	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
279	'-DGR_GL_IGNORE_ES3_MSAA=0' \
280	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
281	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
282	'-DSK_BUILD_FOR_ANDROID' \
283	'-DSK_USE_POSIX_THREADS' \
284	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
285	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
286	'-DCHROME_PNG_WRITE_SUPPORT' \
287	'-DPNG_USER_CONFIG' \
288	'-DCHROME_PNG_READ_PACK_SUPPORT' \
289	'-DLIBXML_STATIC' \
290	'-DLIBXSLT_STATIC' \
291	'-DUSE_OPENSSL=1' \
292	'-DUSE_OPENSSL_CERTS=1' \
293	'-D__STDC_CONSTANT_MACROS' \
294	'-D__STDC_FORMAT_MACROS' \
295	'-DANDROID' \
296	'-D__GNU_SOURCE=1' \
297	'-DUSE_STLPORT=1' \
298	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
299	'-DCHROME_BUILD_ID=""' \
300	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
301	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
302	'-D_DEBUG'
303
304
305# Include paths placed before CFLAGS/CPPFLAGS
306LOCAL_C_INCLUDES_Debug := \
307	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
308	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
309	$(gyp_shared_intermediate_dir) \
310	$(LOCAL_PATH)/third_party/WebKit/Source \
311	$(LOCAL_PATH) \
312	$(LOCAL_PATH)/skia/config \
313	$(LOCAL_PATH)/third_party/khronos \
314	$(LOCAL_PATH)/gpu \
315	$(gyp_shared_intermediate_dir)/blink \
316	$(LOCAL_PATH)/third_party/openmax_dl \
317	$(LOCAL_PATH)/third_party/angle/include \
318	$(PWD)/external/icu/icu4c/source/common \
319	$(PWD)/external/icu/icu4c/source/i18n \
320	$(LOCAL_PATH)/third_party/WebKit \
321	$(LOCAL_PATH)/third_party/skia/src/core \
322	$(LOCAL_PATH)/third_party/skia/include/core \
323	$(LOCAL_PATH)/third_party/skia/include/effects \
324	$(LOCAL_PATH)/third_party/skia/include/pdf \
325	$(LOCAL_PATH)/third_party/skia/include/gpu \
326	$(LOCAL_PATH)/third_party/skia/include/lazy \
327	$(LOCAL_PATH)/third_party/skia/include/pathops \
328	$(LOCAL_PATH)/third_party/skia/include/pipe \
329	$(LOCAL_PATH)/third_party/skia/include/ports \
330	$(LOCAL_PATH)/third_party/skia/include/utils \
331	$(LOCAL_PATH)/skia/ext \
332	$(LOCAL_PATH)/third_party/iccjpeg \
333	$(LOCAL_PATH)/third_party/libpng \
334	$(LOCAL_PATH)/third_party/libwebp \
335	$(LOCAL_PATH)/third_party/libxml/linux/include \
336	$(LOCAL_PATH)/third_party/libxml/src/include \
337	$(LOCAL_PATH)/third_party/libxslt \
338	$(LOCAL_PATH)/third_party/npapi \
339	$(LOCAL_PATH)/third_party/npapi/bindings \
340	$(LOCAL_PATH)/third_party/ots/include \
341	$(LOCAL_PATH)/third_party/qcms/src \
342	$(LOCAL_PATH)/third_party/sqlite \
343	$(LOCAL_PATH)/third_party/zlib \
344	$(LOCAL_PATH)/v8/include \
345	$(PWD)/frameworks/wilhelm/include \
346	$(PWD)/bionic \
347	$(PWD)/external/stlport/stlport
348
349
350# Flags passed to only C++ (and not C) files.
351LOCAL_CPPFLAGS_Debug := \
352	-fno-exceptions \
353	-fno-rtti \
354	-fno-threadsafe-statics \
355	-fvisibility-inlines-hidden \
356	-Wsign-compare \
357	-Wno-c++0x-compat \
358	-Wno-abi \
359	-std=gnu++11 \
360	-Wno-narrowing \
361	-Wno-literal-suffix \
362	-Wno-non-virtual-dtor \
363	-Wno-sign-promo
364
365
366# Flags passed to both C and C++ files.
367MY_CFLAGS_Release := \
368	-fstack-protector \
369	--param=ssp-buffer-size=4 \
370	-Werror \
371	-fno-strict-aliasing \
372	-Wall \
373	-Wno-unused-parameter \
374	-Wno-missing-field-initializers \
375	-fvisibility=hidden \
376	-pipe \
377	-fPIC \
378	-Wno-unused-local-typedefs \
379	-fno-tree-sra \
380	-fno-caller-saves \
381	-Wno-psabi \
382	-fno-partial-inlining \
383	-fno-early-inlining \
384	-fno-tree-copy-prop \
385	-fno-tree-loop-optimize \
386	-fno-move-loop-invariants \
387	-ffunction-sections \
388	-funwind-tables \
389	-g \
390	-fstack-protector \
391	-fno-short-enums \
392	-finline-limit=64 \
393	-Wa,--noexecstack \
394	-U_FORTIFY_SOURCE \
395	-Wno-extra \
396	-Wno-ignored-qualifiers \
397	-Wno-type-limits \
398	-Wno-unused-but-set-variable \
399	-Os \
400	-fno-ident \
401	-fdata-sections \
402	-ffunction-sections \
403	-fomit-frame-pointer \
404	-funwind-tables
405
406MY_DEFS_Release := \
407	'-DV8_DEPRECATION_WARNINGS' \
408	'-D_FILE_OFFSET_BITS=64' \
409	'-DNO_TCMALLOC' \
410	'-DDISABLE_NACL' \
411	'-DCHROMIUM_BUILD' \
412	'-DUSE_LIBJPEG_TURBO=1' \
413	'-DENABLE_WEBRTC=1' \
414	'-DUSE_PROPRIETARY_CODECS' \
415	'-DENABLE_BROWSER_CDMS' \
416	'-DENABLE_CONFIGURATION_POLICY' \
417	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
418	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
419	'-DENABLE_EGLIMAGE=1' \
420	'-DCLD_VERSION=1' \
421	'-DENABLE_PRINTING=1' \
422	'-DENABLE_MANAGED_USERS=1' \
423	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
424	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
425	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
426	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
427	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
428	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
429	'-DVIDEO_HOLE=1' \
430	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
431	'-DBLINK_IMPLEMENTATION=1' \
432	'-DINSIDE_BLINK' \
433	'-DENABLE_SVG_FONTS=1' \
434	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
435	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
436	'-DENABLE_WEB_AUDIO=1' \
437	'-DENABLE_OPENTYPE_VERTICAL=1' \
438	'-DU_USING_ICU_NAMESPACE=0' \
439	'-DU_ENABLE_DYLOAD=0' \
440	'-DSK_ENABLE_INST_COUNT=0' \
441	'-DSK_SUPPORT_GPU=1' \
442	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
443	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
444	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
445	'-DGR_GL_IGNORE_ES3_MSAA=0' \
446	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
447	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
448	'-DSK_BUILD_FOR_ANDROID' \
449	'-DSK_USE_POSIX_THREADS' \
450	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
451	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
452	'-DCHROME_PNG_WRITE_SUPPORT' \
453	'-DPNG_USER_CONFIG' \
454	'-DCHROME_PNG_READ_PACK_SUPPORT' \
455	'-DLIBXML_STATIC' \
456	'-DLIBXSLT_STATIC' \
457	'-DUSE_OPENSSL=1' \
458	'-DUSE_OPENSSL_CERTS=1' \
459	'-D__STDC_CONSTANT_MACROS' \
460	'-D__STDC_FORMAT_MACROS' \
461	'-DANDROID' \
462	'-D__GNU_SOURCE=1' \
463	'-DUSE_STLPORT=1' \
464	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
465	'-DCHROME_BUILD_ID=""' \
466	'-DNDEBUG' \
467	'-DNVALGRIND' \
468	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
469	'-D_FORTIFY_SOURCE=2'
470
471
472# Include paths placed before CFLAGS/CPPFLAGS
473LOCAL_C_INCLUDES_Release := \
474	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
475	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
476	$(gyp_shared_intermediate_dir) \
477	$(LOCAL_PATH)/third_party/WebKit/Source \
478	$(LOCAL_PATH) \
479	$(LOCAL_PATH)/skia/config \
480	$(LOCAL_PATH)/third_party/khronos \
481	$(LOCAL_PATH)/gpu \
482	$(gyp_shared_intermediate_dir)/blink \
483	$(LOCAL_PATH)/third_party/openmax_dl \
484	$(LOCAL_PATH)/third_party/angle/include \
485	$(PWD)/external/icu/icu4c/source/common \
486	$(PWD)/external/icu/icu4c/source/i18n \
487	$(LOCAL_PATH)/third_party/WebKit \
488	$(LOCAL_PATH)/third_party/skia/src/core \
489	$(LOCAL_PATH)/third_party/skia/include/core \
490	$(LOCAL_PATH)/third_party/skia/include/effects \
491	$(LOCAL_PATH)/third_party/skia/include/pdf \
492	$(LOCAL_PATH)/third_party/skia/include/gpu \
493	$(LOCAL_PATH)/third_party/skia/include/lazy \
494	$(LOCAL_PATH)/third_party/skia/include/pathops \
495	$(LOCAL_PATH)/third_party/skia/include/pipe \
496	$(LOCAL_PATH)/third_party/skia/include/ports \
497	$(LOCAL_PATH)/third_party/skia/include/utils \
498	$(LOCAL_PATH)/skia/ext \
499	$(LOCAL_PATH)/third_party/iccjpeg \
500	$(LOCAL_PATH)/third_party/libpng \
501	$(LOCAL_PATH)/third_party/libwebp \
502	$(LOCAL_PATH)/third_party/libxml/linux/include \
503	$(LOCAL_PATH)/third_party/libxml/src/include \
504	$(LOCAL_PATH)/third_party/libxslt \
505	$(LOCAL_PATH)/third_party/npapi \
506	$(LOCAL_PATH)/third_party/npapi/bindings \
507	$(LOCAL_PATH)/third_party/ots/include \
508	$(LOCAL_PATH)/third_party/qcms/src \
509	$(LOCAL_PATH)/third_party/sqlite \
510	$(LOCAL_PATH)/third_party/zlib \
511	$(LOCAL_PATH)/v8/include \
512	$(PWD)/frameworks/wilhelm/include \
513	$(PWD)/bionic \
514	$(PWD)/external/stlport/stlport
515
516
517# Flags passed to only C++ (and not C) files.
518LOCAL_CPPFLAGS_Release := \
519	-fno-exceptions \
520	-fno-rtti \
521	-fno-threadsafe-statics \
522	-fvisibility-inlines-hidden \
523	-Wsign-compare \
524	-Wno-c++0x-compat \
525	-Wno-abi \
526	-std=gnu++11 \
527	-Wno-narrowing \
528	-Wno-literal-suffix \
529	-Wno-non-virtual-dtor \
530	-Wno-sign-promo
531
532
533LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
534LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
535LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
536LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
537### Rules for final target.
538
539LOCAL_SHARED_LIBRARIES := \
540	libstlport \
541	libdl
542
543# Add target alias to "gyp_all_modules" target.
544.PHONY: gyp_all_modules
545gyp_all_modules: third_party_WebKit_Source_core_webcore_rendering_gyp
546
547# Alias gyp target name.
548.PHONY: webcore_rendering
549webcore_rendering: third_party_WebKit_Source_core_webcore_rendering_gyp
550
551include $(BUILD_STATIC_LIBRARY)
552