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_web_blink_web_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES := \
15	$(call intermediates-dir-for,GYP,third_party_WebKit_Source_config_gyp,,,$(GYP_VAR_PREFIX))/config.stamp \
16	$(call intermediates-dir-for,GYP,third_party_WebKit_Source_core_webcore_gyp,,,$(GYP_VAR_PREFIX))/webcore.stamp \
17	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_WebKit_Source_core_webcore_generated_gyp,,,$(GYP_VAR_PREFIX))/third_party_WebKit_Source_core_webcore_generated_gyp.a \
18	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
19	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
20	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp \
21	$(call intermediates-dir-for,GYP,third_party_npapi_npapi_gyp,,,$(GYP_VAR_PREFIX))/npapi.stamp \
22	$(call intermediates-dir-for,GYP,v8_tools_gyp_v8_gyp,,,$(GYP_VAR_PREFIX))/v8.stamp
23
24### Rules for action "PickerCommon":
25$(gyp_shared_intermediate_dir)/blink/PickerCommon.h: gyp_local_path := $(LOCAL_PATH)
26$(gyp_shared_intermediate_dir)/blink/PickerCommon.h: gyp_var_prefix := $(GYP_VAR_PREFIX)
27$(gyp_shared_intermediate_dir)/blink/PickerCommon.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
28$(gyp_shared_intermediate_dir)/blink/PickerCommon.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
29$(gyp_shared_intermediate_dir)/blink/PickerCommon.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
30$(gyp_shared_intermediate_dir)/blink/PickerCommon.h: $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/make-file-arrays.py $(LOCAL_PATH)/third_party/WebKit/Source/web/resources/pickerCommon.css $(LOCAL_PATH)/third_party/WebKit/Source/web/resources/pickerCommon.js $(GYP_TARGET_DEPENDENCIES)
31	@echo "Gyp action: third_party_WebKit_Source_web_web_gyp_blink_web_target_PickerCommon ($@)"
32	$(hide)cd $(gyp_local_path)/third_party/WebKit/Source/web; mkdir -p $(gyp_shared_intermediate_dir)/blink; python ../build/scripts/make-file-arrays.py "--out-h=$(gyp_shared_intermediate_dir)/blink/PickerCommon.h" "--out-cpp=$(gyp_shared_intermediate_dir)/blink/PickerCommon.cpp" resources/pickerCommon.css resources/pickerCommon.js
33
34$(gyp_shared_intermediate_dir)/blink/PickerCommon.cpp: $(gyp_shared_intermediate_dir)/blink/PickerCommon.h ;
35
36### Rules for action "CalendarPicker":
37$(gyp_shared_intermediate_dir)/blink/CalendarPicker.h: gyp_local_path := $(LOCAL_PATH)
38$(gyp_shared_intermediate_dir)/blink/CalendarPicker.h: gyp_var_prefix := $(GYP_VAR_PREFIX)
39$(gyp_shared_intermediate_dir)/blink/CalendarPicker.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
40$(gyp_shared_intermediate_dir)/blink/CalendarPicker.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
41$(gyp_shared_intermediate_dir)/blink/CalendarPicker.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
42$(gyp_shared_intermediate_dir)/blink/CalendarPicker.h: $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/make-file-arrays.py $(LOCAL_PATH)/third_party/WebKit/Source/web/resources/calendarPicker.css $(LOCAL_PATH)/third_party/WebKit/Source/web/resources/calendarPicker.js $(LOCAL_PATH)/third_party/WebKit/Source/web/resources/pickerButton.css $(LOCAL_PATH)/third_party/WebKit/Source/web/resources/suggestionPicker.css $(LOCAL_PATH)/third_party/WebKit/Source/web/resources/suggestionPicker.js $(GYP_TARGET_DEPENDENCIES)
43	@echo "Gyp action: third_party_WebKit_Source_web_web_gyp_blink_web_target_CalendarPicker ($@)"
44	$(hide)cd $(gyp_local_path)/third_party/WebKit/Source/web; mkdir -p $(gyp_shared_intermediate_dir)/blink; python ../build/scripts/make-file-arrays.py "--out-h=$(gyp_shared_intermediate_dir)/blink/CalendarPicker.h" "--out-cpp=$(gyp_shared_intermediate_dir)/blink/CalendarPicker.cpp" resources/calendarPicker.css resources/calendarPicker.js resources/pickerButton.css resources/suggestionPicker.css resources/suggestionPicker.js
45
46$(gyp_shared_intermediate_dir)/blink/CalendarPicker.cpp: $(gyp_shared_intermediate_dir)/blink/CalendarPicker.h ;
47
48### Rules for action "ColorSuggestionPicker":
49$(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.h: gyp_local_path := $(LOCAL_PATH)
50$(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.h: gyp_var_prefix := $(GYP_VAR_PREFIX)
51$(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
52$(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
53$(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
54$(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.h: $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/make-file-arrays.py $(LOCAL_PATH)/third_party/WebKit/Source/web/resources/colorSuggestionPicker.css $(LOCAL_PATH)/third_party/WebKit/Source/web/resources/colorSuggestionPicker.js $(GYP_TARGET_DEPENDENCIES)
55	@echo "Gyp action: third_party_WebKit_Source_web_web_gyp_blink_web_target_ColorSuggestionPicker ($@)"
56	$(hide)cd $(gyp_local_path)/third_party/WebKit/Source/web; mkdir -p $(gyp_shared_intermediate_dir)/blink; python ../build/scripts/make-file-arrays.py "--out-h=$(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.h" "--out-cpp=$(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.cpp" resources/colorSuggestionPicker.css resources/colorSuggestionPicker.js
57
58$(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.cpp: $(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.h ;
59
60
61GYP_GENERATED_OUTPUTS := \
62	$(gyp_shared_intermediate_dir)/blink/PickerCommon.h \
63	$(gyp_shared_intermediate_dir)/blink/PickerCommon.cpp \
64	$(gyp_shared_intermediate_dir)/blink/CalendarPicker.h \
65	$(gyp_shared_intermediate_dir)/blink/CalendarPicker.cpp \
66	$(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.h \
67	$(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.cpp
68
69# Make sure our deps and generated files are built first.
70LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
71
72$(gyp_intermediate_dir)/PickerCommon.cpp: $(gyp_shared_intermediate_dir)/blink/PickerCommon.cpp
73	mkdir -p $(@D); cp $< $@
74$(gyp_intermediate_dir)/CalendarPicker.cpp: $(gyp_shared_intermediate_dir)/blink/CalendarPicker.cpp
75	mkdir -p $(@D); cp $< $@
76$(gyp_intermediate_dir)/ColorSuggestionPicker.cpp: $(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.cpp
77	mkdir -p $(@D); cp $< $@
78LOCAL_GENERATED_SOURCES := \
79	$(gyp_intermediate_dir)/PickerCommon.cpp \
80	$(gyp_intermediate_dir)/CalendarPicker.cpp \
81	$(gyp_intermediate_dir)/ColorSuggestionPicker.cpp \
82	$(gyp_shared_intermediate_dir)/blink/PickerCommon.h \
83	$(gyp_shared_intermediate_dir)/blink/CalendarPicker.h \
84	$(gyp_shared_intermediate_dir)/blink/ColorSuggestionPicker.h
85
86GYP_COPIED_SOURCE_ORIGIN_DIRS := \
87	$(gyp_shared_intermediate_dir)/blink
88
89LOCAL_SRC_FILES := \
90	third_party/WebKit/Source/web/AssertMatchingEnums.cpp \
91	third_party/WebKit/Source/web/AssociatedURLLoader.cpp \
92	third_party/WebKit/Source/web/BackForwardClientImpl.cpp \
93	third_party/WebKit/Source/web/ChromeClientImpl.cpp \
94	third_party/WebKit/Source/web/ColorChooserPopupUIController.cpp \
95	third_party/WebKit/Source/web/ColorChooserUIController.cpp \
96	third_party/WebKit/Source/web/CompositionUnderlineVectorBuilder.cpp \
97	third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp \
98	third_party/WebKit/Source/web/ContextMenuClientImpl.cpp \
99	third_party/WebKit/Source/web/DatabaseClientImpl.cpp \
100	third_party/WebKit/Source/web/DateTimeChooserImpl.cpp \
101	third_party/WebKit/Source/web/DragClientImpl.cpp \
102	third_party/WebKit/Source/web/EditorClientImpl.cpp \
103	third_party/WebKit/Source/web/EventListenerWrapper.cpp \
104	third_party/WebKit/Source/web/ExternalDateTimeChooser.cpp \
105	third_party/WebKit/Source/web/ExternalPopupMenu.cpp \
106	third_party/WebKit/Source/web/FindInPageCoordinates.cpp \
107	third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp \
108	third_party/WebKit/Source/web/FullscreenController.cpp \
109	third_party/WebKit/Source/web/GeolocationClientProxy.cpp \
110	third_party/WebKit/Source/web/GraphicsLayerFactoryChromium.cpp \
111	third_party/WebKit/Source/web/IndexedDBClientImpl.cpp \
112	third_party/WebKit/Source/web/InspectorClientImpl.cpp \
113	third_party/WebKit/Source/web/InspectorFrontendClientImpl.cpp \
114	third_party/WebKit/Source/web/LinkHighlight.cpp \
115	third_party/WebKit/Source/web/LocalFileSystemClient.cpp \
116	third_party/WebKit/Source/web/MediaKeysClientImpl.cpp \
117	third_party/WebKit/Source/web/MIDIClientProxy.cpp \
118	third_party/WebKit/Source/web/NavigatorContentUtilsClientImpl.cpp \
119	third_party/WebKit/Source/web/NotificationPresenterImpl.cpp \
120	third_party/WebKit/Source/web/OpenedFrameTracker.cpp \
121	third_party/WebKit/Source/web/PageOverlay.cpp \
122	third_party/WebKit/Source/web/PageOverlayList.cpp \
123	third_party/WebKit/Source/web/PageScaleConstraintsSet.cpp \
124	third_party/WebKit/Source/web/PageWidgetDelegate.cpp \
125	third_party/WebKit/Source/web/PopupContainer.cpp \
126	third_party/WebKit/Source/web/PopupListBox.cpp \
127	third_party/WebKit/Source/web/PopupMenuChromium.cpp \
128	third_party/WebKit/Source/web/PrerendererClientImpl.cpp \
129	third_party/WebKit/Source/web/RemoteFrameClient.cpp \
130	third_party/WebKit/Source/web/ScrollbarGroup.cpp \
131	third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp \
132	third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp \
133	third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp \
134	third_party/WebKit/Source/web/SpeechRecognitionClientProxy.cpp \
135	third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp \
136	third_party/WebKit/Source/web/StorageClientImpl.cpp \
137	third_party/WebKit/Source/web/StorageQuotaClientImpl.cpp \
138	third_party/WebKit/Source/web/TextFinder.cpp \
139	third_party/WebKit/Source/web/UserMediaClientImpl.cpp \
140	third_party/WebKit/Source/web/ValidationMessageClientImpl.cpp \
141	third_party/WebKit/Source/web/ViewportAnchor.cpp \
142	third_party/WebKit/Source/web/WebAXObject.cpp \
143	third_party/WebKit/Source/web/WebArrayBufferConverter.cpp \
144	third_party/WebKit/Source/web/WebArrayBufferView.cpp \
145	third_party/WebKit/Source/web/WebBindings.cpp \
146	third_party/WebKit/Source/web/WebBlob.cpp \
147	third_party/WebKit/Source/web/WebCache.cpp \
148	third_party/WebKit/Source/web/WebCachedURLRequest.cpp \
149	third_party/WebKit/Source/web/WebColorName.cpp \
150	third_party/WebKit/Source/web/WebColorSuggestion.cpp \
151	third_party/WebKit/Source/web/WebCryptoNormalize.cpp \
152	third_party/WebKit/Source/web/WebCustomElement.cpp \
153	third_party/WebKit/Source/web/WebDOMActivityLogger.cpp \
154	third_party/WebKit/Source/web/WebDOMCustomEvent.cpp \
155	third_party/WebKit/Source/web/WebDOMError.cpp \
156	third_party/WebKit/Source/web/WebDOMEvent.cpp \
157	third_party/WebKit/Source/web/WebDOMEventListener.cpp \
158	third_party/WebKit/Source/web/WebDOMEventListenerPrivate.cpp \
159	third_party/WebKit/Source/web/WebDOMFileSystem.cpp \
160	third_party/WebKit/Source/web/WebDOMMediaStreamTrack.cpp \
161	third_party/WebKit/Source/web/WebDOMMessageEvent.cpp \
162	third_party/WebKit/Source/web/WebDOMMouseEvent.cpp \
163	third_party/WebKit/Source/web/WebDOMProgressEvent.cpp \
164	third_party/WebKit/Source/web/WebDOMResourceProgressEvent.cpp \
165	third_party/WebKit/Source/web/WebDateTimeSuggestion.cpp \
166	third_party/WebKit/Source/web/WebDataSourceImpl.cpp \
167	third_party/WebKit/Source/web/WebDatabase.cpp \
168	third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp \
169	third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp \
170	third_party/WebKit/Source/web/WebDocument.cpp \
171	third_party/WebKit/Source/web/WebDocumentType.cpp \
172	third_party/WebKit/Source/web/WebDragData.cpp \
173	third_party/WebKit/Source/web/WebElement.cpp \
174	third_party/WebKit/Source/web/WebElementCollection.cpp \
175	third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp \
176	third_party/WebKit/Source/web/WebEntities.cpp \
177	third_party/WebKit/Source/web/WebFileChooserCompletionImpl.cpp \
178	third_party/WebKit/Source/web/WebFontDescription.cpp \
179	third_party/WebKit/Source/web/WebFontImpl.cpp \
180	third_party/WebKit/Source/web/WebFormControlElement.cpp \
181	third_party/WebKit/Source/web/WebFormElement.cpp \
182	third_party/WebKit/Source/web/WebFrame.cpp \
183	third_party/WebKit/Source/web/WebGeolocationController.cpp \
184	third_party/WebKit/Source/web/WebGeolocationError.cpp \
185	third_party/WebKit/Source/web/WebGeolocationPermissionRequest.cpp \
186	third_party/WebKit/Source/web/WebGeolocationPermissionRequestManager.cpp \
187	third_party/WebKit/Source/web/WebGeolocationPosition.cpp \
188	third_party/WebKit/Source/web/WebGlyphCache.cpp \
189	third_party/WebKit/Source/web/WebHeap.cpp \
190	third_party/WebKit/Source/web/WebHelperPluginImpl.cpp \
191	third_party/WebKit/Source/web/WebHistoryItem.cpp \
192	third_party/WebKit/Source/web/WebHitTestResult.cpp \
193	third_party/WebKit/Source/web/WebIDBDatabaseError.cpp \
194	third_party/WebKit/Source/web/WebIDBKey.cpp \
195	third_party/WebKit/Source/web/WebIDBKeyPath.cpp \
196	third_party/WebKit/Source/web/WebIDBKeyRange.cpp \
197	third_party/WebKit/Source/web/WebIDBMetadata.cpp \
198	third_party/WebKit/Source/web/WebImageCache.cpp \
199	third_party/WebKit/Source/web/WebImageDecoder.cpp \
200	third_party/WebKit/Source/web/WebInputElement.cpp \
201	third_party/WebKit/Source/web/WebInputEvent.cpp \
202	third_party/WebKit/Source/web/WebInputEventConversion.cpp \
203	third_party/WebKit/Source/web/WebKit.cpp \
204	third_party/WebKit/Source/web/WebLabelElement.cpp \
205	third_party/WebKit/Source/web/WebLeakDetector.cpp \
206	third_party/WebKit/Source/web/WebLocalFrameImpl.cpp \
207	third_party/WebKit/Source/web/WebMIDIClientMock.cpp \
208	third_party/WebKit/Source/web/WebMIDIPermissionRequest.cpp \
209	third_party/WebKit/Source/web/WebMediaDevicesRequest.cpp \
210	third_party/WebKit/Source/web/WebMediaPlayerClientImpl.cpp \
211	third_party/WebKit/Source/web/WebMediaStreamRegistry.cpp \
212	third_party/WebKit/Source/web/WebNetworkStateNotifier.cpp \
213	third_party/WebKit/Source/web/WebNode.cpp \
214	third_party/WebKit/Source/web/WebNodeList.cpp \
215	third_party/WebKit/Source/web/WebNotification.cpp \
216	third_party/WebKit/Source/web/WebOptionElement.cpp \
217	third_party/WebKit/Source/web/WebPagePopupImpl.cpp \
218	third_party/WebKit/Source/web/WebPageSerializer.cpp \
219	third_party/WebKit/Source/web/WebPageSerializerImpl.cpp \
220	third_party/WebKit/Source/web/WebPerformance.cpp \
221	third_party/WebKit/Source/web/WebPluginContainerImpl.cpp \
222	third_party/WebKit/Source/web/WebPluginDocument.cpp \
223	third_party/WebKit/Source/web/WebPluginLoadObserver.cpp \
224	third_party/WebKit/Source/web/WebPluginScrollbarImpl.cpp \
225	third_party/WebKit/Source/web/WebPopupMenuImpl.cpp \
226	third_party/WebKit/Source/web/WebRange.cpp \
227	third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp \
228	third_party/WebKit/Source/web/WebRuntimeFeatures.cpp \
229	third_party/WebKit/Source/web/WebScopedMicrotaskSuppression.cpp \
230	third_party/WebKit/Source/web/WebScopedUserGesture.cpp \
231	third_party/WebKit/Source/web/WebScopedWindowFocusAllowedIndicator.cpp \
232	third_party/WebKit/Source/web/WebScriptBindings.cpp \
233	third_party/WebKit/Source/web/WebScriptController.cpp \
234	third_party/WebKit/Source/web/WebScrollbarThemePainter.cpp \
235	third_party/WebKit/Source/web/WebSearchableFormData.cpp \
236	third_party/WebKit/Source/web/WebSecurityOrigin.cpp \
237	third_party/WebKit/Source/web/WebSecurityPolicy.cpp \
238	third_party/WebKit/Source/web/WebSelectElement.cpp \
239	third_party/WebKit/Source/web/WebSelector.cpp \
240	third_party/WebKit/Source/web/WebSerializedScriptValue.cpp \
241	third_party/WebKit/Source/web/WebSettingsImpl.cpp \
242	third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp \
243	third_party/WebKit/Source/web/WebSocket.cpp \
244	third_party/WebKit/Source/web/WebSocketImpl.cpp \
245	third_party/WebKit/Source/web/WebSpeechGrammar.cpp \
246	third_party/WebKit/Source/web/WebSpeechRecognitionHandle.cpp \
247	third_party/WebKit/Source/web/WebSpeechRecognitionResult.cpp \
248	third_party/WebKit/Source/web/WebStorageEventDispatcherImpl.cpp \
249	third_party/WebKit/Source/web/WebSurroundingText.cpp \
250	third_party/WebKit/Source/web/WebTextAreaElement.cpp \
251	third_party/WebKit/Source/web/WebTextCheckingCompletionImpl.cpp \
252	third_party/WebKit/Source/web/WebTextCheckingResult.cpp \
253	third_party/WebKit/Source/web/WebTextInputInfo.cpp \
254	third_party/WebKit/Source/web/WebTextRun.cpp \
255	third_party/WebKit/Source/web/WebUserGestureIndicator.cpp \
256	third_party/WebKit/Source/web/WebUserGestureToken.cpp \
257	third_party/WebKit/Source/web/WebUserMediaRequest.cpp \
258	third_party/WebKit/Source/web/WebViewImpl.cpp \
259	third_party/WebKit/Source/web/WebWorkerInfo.cpp \
260	third_party/WebKit/Source/web/WebWorkerRunLoop.cpp \
261	third_party/WebKit/Source/web/WorkerGlobalScopeProxyProviderImpl.cpp \
262	third_party/WebKit/Source/web/WorkerPermissionClient.cpp \
263	third_party/WebKit/Source/web/linux/WebFontRendering.cpp \
264	third_party/WebKit/Source/web/painting/ContinuousPainter.cpp \
265	third_party/WebKit/Source/web/painting/PaintAggregator.cpp
266
267
268# Flags passed to both C and C++ files.
269MY_CFLAGS_Debug := \
270	--param=ssp-buffer-size=4 \
271	-Werror \
272	-fno-exceptions \
273	-fno-strict-aliasing \
274	-Wall \
275	-Wno-unused-parameter \
276	-Wno-missing-field-initializers \
277	-fvisibility=hidden \
278	-pipe \
279	-fPIC \
280	-Wno-unused-local-typedefs \
281	-msse2 \
282	-mfpmath=sse \
283	-mmmx \
284	-m32 \
285	-ffunction-sections \
286	-funwind-tables \
287	-g \
288	-fno-short-enums \
289	-finline-limit=64 \
290	-Wa,--noexecstack \
291	-U_FORTIFY_SOURCE \
292	-Wno-extra \
293	-Wno-ignored-qualifiers \
294	-Wno-type-limits \
295	-Wno-unused-but-set-variable \
296	-fno-stack-protector \
297	-Os \
298	-g \
299	-fdata-sections \
300	-ffunction-sections \
301	-fomit-frame-pointer \
302	-funwind-tables
303
304MY_DEFS_Debug := \
305	'-DV8_DEPRECATION_WARNINGS' \
306	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
307	'-D_FILE_OFFSET_BITS=64' \
308	'-DNO_TCMALLOC' \
309	'-DDISABLE_NACL' \
310	'-DCHROMIUM_BUILD' \
311	'-DUSE_LIBJPEG_TURBO=1' \
312	'-DENABLE_WEBRTC=1' \
313	'-DUSE_PROPRIETARY_CODECS' \
314	'-DENABLE_BROWSER_CDMS' \
315	'-DENABLE_CONFIGURATION_POLICY' \
316	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
317	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
318	'-DENABLE_EGLIMAGE=1' \
319	'-DCLD_VERSION=1' \
320	'-DENABLE_PRINTING=1' \
321	'-DENABLE_MANAGED_USERS=1' \
322	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
323	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
324	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
325	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
326	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
327	'-DVIDEO_HOLE=1' \
328	'-DBLINK_IMPLEMENTATION=1' \
329	'-DINSIDE_BLINK' \
330	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
331	'-DENABLE_SVG_FONTS=1' \
332	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
333	'-DENABLE_MEDIA_CAPTURE=1' \
334	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
335	'-DENABLE_WEB_AUDIO=1' \
336	'-DENABLE_OPENTYPE_VERTICAL=1' \
337	'-DU_USING_ICU_NAMESPACE=0' \
338	'-DSK_ENABLE_INST_COUNT=0' \
339	'-DSK_SUPPORT_GPU=1' \
340	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
341	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
342	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
343	'-DGR_GL_IGNORE_ES3_MSAA=0' \
344	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
345	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
346	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
347	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
348	'-DSK_SUPPORT_LEGACY_N32_NAME' \
349	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
350	'-DSK_IGNORE_ETC1_SUPPORT' \
351	'-DSK_IGNORE_GPU_DITHER' \
352	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
353	'-DSK_BUILD_FOR_ANDROID' \
354	'-DSK_USE_POSIX_THREADS' \
355	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
356	'-DUSE_OPENSSL=1' \
357	'-DUSE_OPENSSL_CERTS=1' \
358	'-D__STDC_CONSTANT_MACROS' \
359	'-D__STDC_FORMAT_MACROS' \
360	'-DANDROID' \
361	'-D__GNU_SOURCE=1' \
362	'-DUSE_STLPORT=1' \
363	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
364	'-DCHROME_BUILD_ID=""' \
365	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
366	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
367	'-D_DEBUG'
368
369
370# Include paths placed before CFLAGS/CPPFLAGS
371LOCAL_C_INCLUDES_Debug := \
372	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
373	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
374	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
375	$(gyp_shared_intermediate_dir) \
376	$(LOCAL_PATH)/third_party/angle/include \
377	$(LOCAL_PATH)/third_party/skia/include/utils \
378	$(LOCAL_PATH)/third_party/WebKit/Source \
379	$(LOCAL_PATH) \
380	$(LOCAL_PATH)/skia/config \
381	$(LOCAL_PATH)/third_party/khronos \
382	$(LOCAL_PATH)/gpu \
383	$(LOCAL_PATH)/third_party/WebKit \
384	$(gyp_shared_intermediate_dir)/blink/core \
385	$(gyp_shared_intermediate_dir)/blink/modules \
386	$(gyp_shared_intermediate_dir)/blink/bindings/core/v8 \
387	$(gyp_shared_intermediate_dir)/blink/bindings/modules/v8 \
388	$(gyp_shared_intermediate_dir)/blink \
389	$(LOCAL_PATH)/third_party/openmax_dl \
390	$(PWD)/external/icu/icu4c/source/common \
391	$(PWD)/external/icu/icu4c/source/i18n \
392	$(LOCAL_PATH)/third_party/qcms/src \
393	$(LOCAL_PATH)/third_party/skia/src/core \
394	$(LOCAL_PATH)/third_party/skia/include/core \
395	$(LOCAL_PATH)/third_party/skia/include/effects \
396	$(LOCAL_PATH)/third_party/skia/include/pdf \
397	$(LOCAL_PATH)/third_party/skia/include/gpu \
398	$(LOCAL_PATH)/third_party/skia/include/lazy \
399	$(LOCAL_PATH)/third_party/skia/include/pathops \
400	$(LOCAL_PATH)/third_party/skia/include/pipe \
401	$(LOCAL_PATH)/third_party/skia/include/ports \
402	$(LOCAL_PATH)/skia/ext \
403	$(LOCAL_PATH)/third_party/npapi \
404	$(LOCAL_PATH)/third_party/npapi/bindings \
405	$(LOCAL_PATH)/v8/include \
406	$(PWD)/frameworks/wilhelm/include \
407	$(PWD)/bionic \
408	$(PWD)/external/stlport/stlport
409
410
411# Flags passed to only C++ (and not C) files.
412LOCAL_CPPFLAGS_Debug := \
413	-Wno-c++0x-compat \
414	-fno-rtti \
415	-fno-threadsafe-statics \
416	-fvisibility-inlines-hidden \
417	-Wsign-compare \
418	-Wno-c++0x-compat \
419	-Wno-non-virtual-dtor \
420	-Wno-sign-promo
421
422
423LOCAL_FDO_SUPPORT_Debug := false
424
425# Flags passed to both C and C++ files.
426MY_CFLAGS_Release := \
427	--param=ssp-buffer-size=4 \
428	-Werror \
429	-fno-exceptions \
430	-fno-strict-aliasing \
431	-Wall \
432	-Wno-unused-parameter \
433	-Wno-missing-field-initializers \
434	-fvisibility=hidden \
435	-pipe \
436	-fPIC \
437	-Wno-unused-local-typedefs \
438	-msse2 \
439	-mfpmath=sse \
440	-mmmx \
441	-m32 \
442	-ffunction-sections \
443	-funwind-tables \
444	-g \
445	-fno-short-enums \
446	-finline-limit=64 \
447	-Wa,--noexecstack \
448	-U_FORTIFY_SOURCE \
449	-Wno-extra \
450	-Wno-ignored-qualifiers \
451	-Wno-type-limits \
452	-Wno-unused-but-set-variable \
453	-fno-stack-protector \
454	-Os \
455	-fno-ident \
456	-fdata-sections \
457	-ffunction-sections \
458	-fomit-frame-pointer \
459	-funwind-tables
460
461MY_DEFS_Release := \
462	'-DV8_DEPRECATION_WARNINGS' \
463	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
464	'-D_FILE_OFFSET_BITS=64' \
465	'-DNO_TCMALLOC' \
466	'-DDISABLE_NACL' \
467	'-DCHROMIUM_BUILD' \
468	'-DUSE_LIBJPEG_TURBO=1' \
469	'-DENABLE_WEBRTC=1' \
470	'-DUSE_PROPRIETARY_CODECS' \
471	'-DENABLE_BROWSER_CDMS' \
472	'-DENABLE_CONFIGURATION_POLICY' \
473	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
474	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
475	'-DENABLE_EGLIMAGE=1' \
476	'-DCLD_VERSION=1' \
477	'-DENABLE_PRINTING=1' \
478	'-DENABLE_MANAGED_USERS=1' \
479	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
480	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
481	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
482	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
483	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
484	'-DVIDEO_HOLE=1' \
485	'-DBLINK_IMPLEMENTATION=1' \
486	'-DINSIDE_BLINK' \
487	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
488	'-DENABLE_SVG_FONTS=1' \
489	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
490	'-DENABLE_MEDIA_CAPTURE=1' \
491	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
492	'-DENABLE_WEB_AUDIO=1' \
493	'-DENABLE_OPENTYPE_VERTICAL=1' \
494	'-DU_USING_ICU_NAMESPACE=0' \
495	'-DSK_ENABLE_INST_COUNT=0' \
496	'-DSK_SUPPORT_GPU=1' \
497	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
498	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
499	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
500	'-DGR_GL_IGNORE_ES3_MSAA=0' \
501	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
502	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
503	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
504	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
505	'-DSK_SUPPORT_LEGACY_N32_NAME' \
506	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
507	'-DSK_IGNORE_ETC1_SUPPORT' \
508	'-DSK_IGNORE_GPU_DITHER' \
509	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
510	'-DSK_BUILD_FOR_ANDROID' \
511	'-DSK_USE_POSIX_THREADS' \
512	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
513	'-DUSE_OPENSSL=1' \
514	'-DUSE_OPENSSL_CERTS=1' \
515	'-D__STDC_CONSTANT_MACROS' \
516	'-D__STDC_FORMAT_MACROS' \
517	'-DANDROID' \
518	'-D__GNU_SOURCE=1' \
519	'-DUSE_STLPORT=1' \
520	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
521	'-DCHROME_BUILD_ID=""' \
522	'-DNDEBUG' \
523	'-DNVALGRIND' \
524	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
525	'-D_FORTIFY_SOURCE=2'
526
527
528# Include paths placed before CFLAGS/CPPFLAGS
529LOCAL_C_INCLUDES_Release := \
530	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
531	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
532	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
533	$(gyp_shared_intermediate_dir) \
534	$(LOCAL_PATH)/third_party/angle/include \
535	$(LOCAL_PATH)/third_party/skia/include/utils \
536	$(LOCAL_PATH)/third_party/WebKit/Source \
537	$(LOCAL_PATH) \
538	$(LOCAL_PATH)/skia/config \
539	$(LOCAL_PATH)/third_party/khronos \
540	$(LOCAL_PATH)/gpu \
541	$(LOCAL_PATH)/third_party/WebKit \
542	$(gyp_shared_intermediate_dir)/blink/core \
543	$(gyp_shared_intermediate_dir)/blink/modules \
544	$(gyp_shared_intermediate_dir)/blink/bindings/core/v8 \
545	$(gyp_shared_intermediate_dir)/blink/bindings/modules/v8 \
546	$(gyp_shared_intermediate_dir)/blink \
547	$(LOCAL_PATH)/third_party/openmax_dl \
548	$(PWD)/external/icu/icu4c/source/common \
549	$(PWD)/external/icu/icu4c/source/i18n \
550	$(LOCAL_PATH)/third_party/qcms/src \
551	$(LOCAL_PATH)/third_party/skia/src/core \
552	$(LOCAL_PATH)/third_party/skia/include/core \
553	$(LOCAL_PATH)/third_party/skia/include/effects \
554	$(LOCAL_PATH)/third_party/skia/include/pdf \
555	$(LOCAL_PATH)/third_party/skia/include/gpu \
556	$(LOCAL_PATH)/third_party/skia/include/lazy \
557	$(LOCAL_PATH)/third_party/skia/include/pathops \
558	$(LOCAL_PATH)/third_party/skia/include/pipe \
559	$(LOCAL_PATH)/third_party/skia/include/ports \
560	$(LOCAL_PATH)/skia/ext \
561	$(LOCAL_PATH)/third_party/npapi \
562	$(LOCAL_PATH)/third_party/npapi/bindings \
563	$(LOCAL_PATH)/v8/include \
564	$(PWD)/frameworks/wilhelm/include \
565	$(PWD)/bionic \
566	$(PWD)/external/stlport/stlport
567
568
569# Flags passed to only C++ (and not C) files.
570LOCAL_CPPFLAGS_Release := \
571	-Wno-c++0x-compat \
572	-fno-rtti \
573	-fno-threadsafe-statics \
574	-fvisibility-inlines-hidden \
575	-Wsign-compare \
576	-Wno-c++0x-compat \
577	-Wno-non-virtual-dtor \
578	-Wno-sign-promo
579
580
581LOCAL_FDO_SUPPORT_Release := false
582
583LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
584LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
585LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
586LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
587LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
588### Rules for final target.
589
590LOCAL_LDFLAGS_Debug := \
591	-Wl,-z,now \
592	-Wl,-z,relro \
593	-Wl,--fatal-warnings \
594	-Wl,-z,noexecstack \
595	-fPIC \
596	-m32 \
597	-fuse-ld=gold \
598	-nostdlib \
599	-Wl,--no-undefined \
600	-Wl,--exclude-libs=ALL \
601	-Wl,--warn-shared-textrel \
602	-Wl,-O1 \
603	-Wl,--as-needed
604
605
606LOCAL_LDFLAGS_Release := \
607	-Wl,-z,now \
608	-Wl,-z,relro \
609	-Wl,--fatal-warnings \
610	-Wl,-z,noexecstack \
611	-fPIC \
612	-m32 \
613	-fuse-ld=gold \
614	-nostdlib \
615	-Wl,--no-undefined \
616	-Wl,--exclude-libs=ALL \
617	-Wl,-O1 \
618	-Wl,--as-needed \
619	-Wl,--gc-sections \
620	-Wl,--warn-shared-textrel
621
622
623LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
624
625LOCAL_STATIC_LIBRARIES := \
626	third_party_WebKit_Source_core_webcore_generated_gyp \
627	skia_skia_library_gyp
628
629# Enable grouping to fix circular references
630LOCAL_GROUP_STATIC_LIBRARIES := true
631
632LOCAL_SHARED_LIBRARIES := \
633	libstlport \
634	libdl
635
636# Add target alias to "gyp_all_modules" target.
637.PHONY: gyp_all_modules
638gyp_all_modules: third_party_WebKit_Source_web_blink_web_gyp
639
640# Alias gyp target name.
641.PHONY: blink_web
642blink_web: third_party_WebKit_Source_web_blink_web_gyp
643
644include $(BUILD_STATIC_LIBRARY)
645