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