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	-fstack-protector \
271	--param=ssp-buffer-size=4 \
272	-Werror \
273	-fno-exceptions \
274	-fno-strict-aliasing \
275	-Wall \
276	-Wno-unused-parameter \
277	-Wno-missing-field-initializers \
278	-fvisibility=hidden \
279	-pipe \
280	-fPIC \
281	-Wno-unused-local-typedefs \
282	-m64 \
283	-march=x86-64 \
284	-ffunction-sections \
285	-funwind-tables \
286	-g \
287	-fstack-protector \
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	-Os \
297	-g \
298	-fdata-sections \
299	-ffunction-sections \
300	-fomit-frame-pointer \
301	-funwind-tables
302
303MY_DEFS_Debug := \
304	'-DV8_DEPRECATION_WARNINGS' \
305	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
306	'-D_FILE_OFFSET_BITS=64' \
307	'-DNO_TCMALLOC' \
308	'-DDISABLE_NACL' \
309	'-DCHROMIUM_BUILD' \
310	'-DUSE_LIBJPEG_TURBO=1' \
311	'-DENABLE_WEBRTC=1' \
312	'-DUSE_PROPRIETARY_CODECS' \
313	'-DENABLE_BROWSER_CDMS' \
314	'-DENABLE_CONFIGURATION_POLICY' \
315	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
316	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
317	'-DENABLE_EGLIMAGE=1' \
318	'-DCLD_VERSION=1' \
319	'-DENABLE_PRINTING=1' \
320	'-DENABLE_MANAGED_USERS=1' \
321	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
322	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
323	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
324	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
325	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
326	'-DVIDEO_HOLE=1' \
327	'-DBLINK_IMPLEMENTATION=1' \
328	'-DINSIDE_BLINK' \
329	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
330	'-DENABLE_SVG_FONTS=1' \
331	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
332	'-DENABLE_MEDIA_CAPTURE=1' \
333	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
334	'-DENABLE_WEB_AUDIO=1' \
335	'-DENABLE_OPENTYPE_VERTICAL=1' \
336	'-DU_USING_ICU_NAMESPACE=0' \
337	'-DSK_ENABLE_INST_COUNT=0' \
338	'-DSK_SUPPORT_GPU=1' \
339	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
340	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
341	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
342	'-DGR_GL_IGNORE_ES3_MSAA=0' \
343	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
344	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
345	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
346	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
347	'-DSK_SUPPORT_LEGACY_N32_NAME' \
348	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
349	'-DSK_IGNORE_ETC1_SUPPORT' \
350	'-DSK_IGNORE_GPU_DITHER' \
351	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
352	'-DSK_BUILD_FOR_ANDROID' \
353	'-DSK_USE_POSIX_THREADS' \
354	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
355	'-DUSE_OPENSSL=1' \
356	'-DUSE_OPENSSL_CERTS=1' \
357	'-D__STDC_CONSTANT_MACROS' \
358	'-D__STDC_FORMAT_MACROS' \
359	'-DANDROID' \
360	'-D__GNU_SOURCE=1' \
361	'-DUSE_STLPORT=1' \
362	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
363	'-DCHROME_BUILD_ID=""' \
364	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
365	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
366	'-D_DEBUG'
367
368
369# Include paths placed before CFLAGS/CPPFLAGS
370LOCAL_C_INCLUDES_Debug := \
371	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
372	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
373	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
374	$(gyp_shared_intermediate_dir) \
375	$(LOCAL_PATH)/third_party/angle/include \
376	$(LOCAL_PATH)/third_party/skia/include/utils \
377	$(LOCAL_PATH)/third_party/WebKit/Source \
378	$(LOCAL_PATH) \
379	$(LOCAL_PATH)/skia/config \
380	$(LOCAL_PATH)/third_party/khronos \
381	$(LOCAL_PATH)/gpu \
382	$(LOCAL_PATH)/third_party/WebKit \
383	$(gyp_shared_intermediate_dir)/blink/core \
384	$(gyp_shared_intermediate_dir)/blink/modules \
385	$(gyp_shared_intermediate_dir)/blink/bindings/core/v8 \
386	$(gyp_shared_intermediate_dir)/blink/bindings/modules/v8 \
387	$(gyp_shared_intermediate_dir)/blink \
388	$(LOCAL_PATH)/third_party/openmax_dl \
389	$(PWD)/external/icu/icu4c/source/common \
390	$(PWD)/external/icu/icu4c/source/i18n \
391	$(LOCAL_PATH)/third_party/qcms/src \
392	$(LOCAL_PATH)/third_party/skia/src/core \
393	$(LOCAL_PATH)/third_party/skia/include/core \
394	$(LOCAL_PATH)/third_party/skia/include/effects \
395	$(LOCAL_PATH)/third_party/skia/include/pdf \
396	$(LOCAL_PATH)/third_party/skia/include/gpu \
397	$(LOCAL_PATH)/third_party/skia/include/lazy \
398	$(LOCAL_PATH)/third_party/skia/include/pathops \
399	$(LOCAL_PATH)/third_party/skia/include/pipe \
400	$(LOCAL_PATH)/third_party/skia/include/ports \
401	$(LOCAL_PATH)/skia/ext \
402	$(LOCAL_PATH)/third_party/npapi \
403	$(LOCAL_PATH)/third_party/npapi/bindings \
404	$(LOCAL_PATH)/v8/include \
405	$(PWD)/frameworks/wilhelm/include \
406	$(PWD)/bionic \
407	$(PWD)/external/stlport/stlport
408
409
410# Flags passed to only C++ (and not C) files.
411LOCAL_CPPFLAGS_Debug := \
412	-Wno-c++0x-compat \
413	-fno-rtti \
414	-fno-threadsafe-statics \
415	-fvisibility-inlines-hidden \
416	-Wsign-compare \
417	-Wno-c++0x-compat \
418	-Wno-non-virtual-dtor \
419	-Wno-sign-promo
420
421
422LOCAL_FDO_SUPPORT_Debug := false
423
424# Flags passed to both C and C++ files.
425MY_CFLAGS_Release := \
426	-fstack-protector \
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	-m64 \
439	-march=x86-64 \
440	-ffunction-sections \
441	-funwind-tables \
442	-g \
443	-fstack-protector \
444	-fno-short-enums \
445	-finline-limit=64 \
446	-Wa,--noexecstack \
447	-U_FORTIFY_SOURCE \
448	-Wno-extra \
449	-Wno-ignored-qualifiers \
450	-Wno-type-limits \
451	-Wno-unused-but-set-variable \
452	-Os \
453	-fno-ident \
454	-fdata-sections \
455	-ffunction-sections \
456	-fomit-frame-pointer \
457	-funwind-tables
458
459MY_DEFS_Release := \
460	'-DV8_DEPRECATION_WARNINGS' \
461	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
462	'-D_FILE_OFFSET_BITS=64' \
463	'-DNO_TCMALLOC' \
464	'-DDISABLE_NACL' \
465	'-DCHROMIUM_BUILD' \
466	'-DUSE_LIBJPEG_TURBO=1' \
467	'-DENABLE_WEBRTC=1' \
468	'-DUSE_PROPRIETARY_CODECS' \
469	'-DENABLE_BROWSER_CDMS' \
470	'-DENABLE_CONFIGURATION_POLICY' \
471	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
472	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
473	'-DENABLE_EGLIMAGE=1' \
474	'-DCLD_VERSION=1' \
475	'-DENABLE_PRINTING=1' \
476	'-DENABLE_MANAGED_USERS=1' \
477	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
478	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
479	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
480	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
481	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
482	'-DVIDEO_HOLE=1' \
483	'-DBLINK_IMPLEMENTATION=1' \
484	'-DINSIDE_BLINK' \
485	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
486	'-DENABLE_SVG_FONTS=1' \
487	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
488	'-DENABLE_MEDIA_CAPTURE=1' \
489	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
490	'-DENABLE_WEB_AUDIO=1' \
491	'-DENABLE_OPENTYPE_VERTICAL=1' \
492	'-DU_USING_ICU_NAMESPACE=0' \
493	'-DSK_ENABLE_INST_COUNT=0' \
494	'-DSK_SUPPORT_GPU=1' \
495	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
496	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
497	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
498	'-DGR_GL_IGNORE_ES3_MSAA=0' \
499	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
500	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
501	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
502	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
503	'-DSK_SUPPORT_LEGACY_N32_NAME' \
504	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
505	'-DSK_IGNORE_ETC1_SUPPORT' \
506	'-DSK_IGNORE_GPU_DITHER' \
507	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
508	'-DSK_BUILD_FOR_ANDROID' \
509	'-DSK_USE_POSIX_THREADS' \
510	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
511	'-DUSE_OPENSSL=1' \
512	'-DUSE_OPENSSL_CERTS=1' \
513	'-D__STDC_CONSTANT_MACROS' \
514	'-D__STDC_FORMAT_MACROS' \
515	'-DANDROID' \
516	'-D__GNU_SOURCE=1' \
517	'-DUSE_STLPORT=1' \
518	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
519	'-DCHROME_BUILD_ID=""' \
520	'-DNDEBUG' \
521	'-DNVALGRIND' \
522	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
523	'-D_FORTIFY_SOURCE=2'
524
525
526# Include paths placed before CFLAGS/CPPFLAGS
527LOCAL_C_INCLUDES_Release := \
528	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
529	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
530	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
531	$(gyp_shared_intermediate_dir) \
532	$(LOCAL_PATH)/third_party/angle/include \
533	$(LOCAL_PATH)/third_party/skia/include/utils \
534	$(LOCAL_PATH)/third_party/WebKit/Source \
535	$(LOCAL_PATH) \
536	$(LOCAL_PATH)/skia/config \
537	$(LOCAL_PATH)/third_party/khronos \
538	$(LOCAL_PATH)/gpu \
539	$(LOCAL_PATH)/third_party/WebKit \
540	$(gyp_shared_intermediate_dir)/blink/core \
541	$(gyp_shared_intermediate_dir)/blink/modules \
542	$(gyp_shared_intermediate_dir)/blink/bindings/core/v8 \
543	$(gyp_shared_intermediate_dir)/blink/bindings/modules/v8 \
544	$(gyp_shared_intermediate_dir)/blink \
545	$(LOCAL_PATH)/third_party/openmax_dl \
546	$(PWD)/external/icu/icu4c/source/common \
547	$(PWD)/external/icu/icu4c/source/i18n \
548	$(LOCAL_PATH)/third_party/qcms/src \
549	$(LOCAL_PATH)/third_party/skia/src/core \
550	$(LOCAL_PATH)/third_party/skia/include/core \
551	$(LOCAL_PATH)/third_party/skia/include/effects \
552	$(LOCAL_PATH)/third_party/skia/include/pdf \
553	$(LOCAL_PATH)/third_party/skia/include/gpu \
554	$(LOCAL_PATH)/third_party/skia/include/lazy \
555	$(LOCAL_PATH)/third_party/skia/include/pathops \
556	$(LOCAL_PATH)/third_party/skia/include/pipe \
557	$(LOCAL_PATH)/third_party/skia/include/ports \
558	$(LOCAL_PATH)/skia/ext \
559	$(LOCAL_PATH)/third_party/npapi \
560	$(LOCAL_PATH)/third_party/npapi/bindings \
561	$(LOCAL_PATH)/v8/include \
562	$(PWD)/frameworks/wilhelm/include \
563	$(PWD)/bionic \
564	$(PWD)/external/stlport/stlport
565
566
567# Flags passed to only C++ (and not C) files.
568LOCAL_CPPFLAGS_Release := \
569	-Wno-c++0x-compat \
570	-fno-rtti \
571	-fno-threadsafe-statics \
572	-fvisibility-inlines-hidden \
573	-Wsign-compare \
574	-Wno-c++0x-compat \
575	-Wno-non-virtual-dtor \
576	-Wno-sign-promo
577
578
579LOCAL_FDO_SUPPORT_Release := false
580
581LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
582LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
583LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
584LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
585LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
586### Rules for final target.
587
588LOCAL_LDFLAGS_Debug := \
589	-Wl,-z,now \
590	-Wl,-z,relro \
591	-Wl,--fatal-warnings \
592	-Wl,-z,noexecstack \
593	-fPIC \
594	-m64 \
595	-fuse-ld=gold \
596	-nostdlib \
597	-Wl,--no-undefined \
598	-Wl,--exclude-libs=ALL \
599	-Wl,--warn-shared-textrel \
600	-Wl,-O1 \
601	-Wl,--as-needed
602
603
604LOCAL_LDFLAGS_Release := \
605	-Wl,-z,now \
606	-Wl,-z,relro \
607	-Wl,--fatal-warnings \
608	-Wl,-z,noexecstack \
609	-fPIC \
610	-m64 \
611	-fuse-ld=gold \
612	-nostdlib \
613	-Wl,--no-undefined \
614	-Wl,--exclude-libs=ALL \
615	-Wl,-O1 \
616	-Wl,--as-needed \
617	-Wl,--gc-sections \
618	-Wl,--warn-shared-textrel
619
620
621LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
622
623LOCAL_STATIC_LIBRARIES := \
624	third_party_WebKit_Source_core_webcore_generated_gyp \
625	skia_skia_library_gyp
626
627# Enable grouping to fix circular references
628LOCAL_GROUP_STATIC_LIBRARIES := true
629
630LOCAL_SHARED_LIBRARIES := \
631	libstlport \
632	libdl
633
634# Add target alias to "gyp_all_modules" target.
635.PHONY: gyp_all_modules
636gyp_all_modules: third_party_WebKit_Source_web_blink_web_gyp
637
638# Alias gyp target name.
639.PHONY: blink_web
640blink_web: third_party_WebKit_Source_web_blink_web_gyp
641
642include $(BUILD_STATIC_LIBRARY)
643