blob: a67fff5b99ffb3e7c7ce426e29c7ce043b85e436 [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 := \
Torne (Richard Coles)09380292014-02-21 12:17:33 +000086 third_party/WebKit/Source/web/AssertMatchingEnums.cpp \
87 third_party/WebKit/Source/web/AssociatedURLLoader.cpp \
88 third_party/WebKit/Source/web/BackForwardClientImpl.cpp \
89 third_party/WebKit/Source/web/ChromeClientImpl.cpp \
90 third_party/WebKit/Source/web/ColorChooserPopupUIController.cpp \
91 third_party/WebKit/Source/web/ColorChooserUIController.cpp \
92 third_party/WebKit/Source/web/CompositionUnderlineVectorBuilder.cpp \
93 third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp \
94 third_party/WebKit/Source/web/ContextMenuClientImpl.cpp \
Torne (Richard Coles)09380292014-02-21 12:17:33 +000095 third_party/WebKit/Source/web/DatabaseClientImpl.cpp \
96 third_party/WebKit/Source/web/DateTimeChooserImpl.cpp \
97 third_party/WebKit/Source/web/DragClientImpl.cpp \
98 third_party/WebKit/Source/web/EditorClientImpl.cpp \
99 third_party/WebKit/Source/web/EventListenerWrapper.cpp \
100 third_party/WebKit/Source/web/ExternalDateTimeChooser.cpp \
101 third_party/WebKit/Source/web/ExternalPopupMenu.cpp \
102 third_party/WebKit/Source/web/FindInPageCoordinates.cpp \
103 third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp \
104 third_party/WebKit/Source/web/FullscreenController.cpp \
105 third_party/WebKit/Source/web/GeolocationClientProxy.cpp \
106 third_party/WebKit/Source/web/GraphicsLayerFactoryChromium.cpp \
107 third_party/WebKit/Source/web/IDBFactoryBackendProxy.cpp \
108 third_party/WebKit/Source/web/InspectorClientImpl.cpp \
109 third_party/WebKit/Source/web/InspectorFrontendClientImpl.cpp \
110 third_party/WebKit/Source/web/LinkHighlight.cpp \
111 third_party/WebKit/Source/web/LocalFileSystemClient.cpp \
Ben Murdoch07a852d2014-03-31 11:51:52 +0100112 third_party/WebKit/Source/web/MediaKeysClientImpl.cpp \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000113 third_party/WebKit/Source/web/MIDIClientProxy.cpp \
114 third_party/WebKit/Source/web/NotificationPresenterImpl.cpp \
115 third_party/WebKit/Source/web/PageOverlay.cpp \
116 third_party/WebKit/Source/web/PageOverlayList.cpp \
117 third_party/WebKit/Source/web/PageScaleConstraintsSet.cpp \
118 third_party/WebKit/Source/web/PageWidgetDelegate.cpp \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000119 third_party/WebKit/Source/web/PopupContainer.cpp \
120 third_party/WebKit/Source/web/PopupListBox.cpp \
121 third_party/WebKit/Source/web/PopupMenuChromium.cpp \
122 third_party/WebKit/Source/web/PrerendererClientImpl.cpp \
123 third_party/WebKit/Source/web/ScrollbarGroup.cpp \
124 third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp \
125 third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp \
126 third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp \
127 third_party/WebKit/Source/web/SpeechInputClientImpl.cpp \
128 third_party/WebKit/Source/web/SpeechRecognitionClientProxy.cpp \
129 third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp \
130 third_party/WebKit/Source/web/StorageClientImpl.cpp \
131 third_party/WebKit/Source/web/StorageQuotaClientImpl.cpp \
Ben Murdoch07a852d2014-03-31 11:51:52 +0100132 third_party/WebKit/Source/web/TextFinder.cpp \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000133 third_party/WebKit/Source/web/UserMediaClientImpl.cpp \
134 third_party/WebKit/Source/web/ValidationMessageClientImpl.cpp \
135 third_party/WebKit/Source/web/ViewportAnchor.cpp \
136 third_party/WebKit/Source/web/WebAXObject.cpp \
137 third_party/WebKit/Source/web/WebArrayBufferConverter.cpp \
138 third_party/WebKit/Source/web/WebArrayBufferView.cpp \
139 third_party/WebKit/Source/web/WebBindings.cpp \
140 third_party/WebKit/Source/web/WebBlob.cpp \
141 third_party/WebKit/Source/web/WebCache.cpp \
142 third_party/WebKit/Source/web/WebCachedURLRequest.cpp \
143 third_party/WebKit/Source/web/WebColorName.cpp \
144 third_party/WebKit/Source/web/WebColorSuggestion.cpp \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000145 third_party/WebKit/Source/web/WebCustomElement.cpp \
146 third_party/WebKit/Source/web/WebDOMActivityLogger.cpp \
147 third_party/WebKit/Source/web/WebDOMCustomEvent.cpp \
148 third_party/WebKit/Source/web/WebDOMError.cpp \
149 third_party/WebKit/Source/web/WebDOMEvent.cpp \
150 third_party/WebKit/Source/web/WebDOMEventListener.cpp \
151 third_party/WebKit/Source/web/WebDOMEventListenerPrivate.cpp \
152 third_party/WebKit/Source/web/WebDOMFileSystem.cpp \
153 third_party/WebKit/Source/web/WebDOMMediaStreamTrack.cpp \
154 third_party/WebKit/Source/web/WebDOMMessageEvent.cpp \
155 third_party/WebKit/Source/web/WebDOMMouseEvent.cpp \
156 third_party/WebKit/Source/web/WebDOMProgressEvent.cpp \
157 third_party/WebKit/Source/web/WebDOMResourceProgressEvent.cpp \
158 third_party/WebKit/Source/web/WebDateTimeSuggestion.cpp \
159 third_party/WebKit/Source/web/WebDataSourceImpl.cpp \
160 third_party/WebKit/Source/web/WebDatabase.cpp \
161 third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp \
162 third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp \
163 third_party/WebKit/Source/web/WebDocument.cpp \
164 third_party/WebKit/Source/web/WebDocumentType.cpp \
165 third_party/WebKit/Source/web/WebDragData.cpp \
166 third_party/WebKit/Source/web/WebElement.cpp \
167 third_party/WebKit/Source/web/WebElementCollection.cpp \
168 third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp \
169 third_party/WebKit/Source/web/WebEntities.cpp \
170 third_party/WebKit/Source/web/WebFileChooserCompletionImpl.cpp \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000171 third_party/WebKit/Source/web/WebFontDescription.cpp \
172 third_party/WebKit/Source/web/WebFontImpl.cpp \
173 third_party/WebKit/Source/web/WebFormControlElement.cpp \
174 third_party/WebKit/Source/web/WebFormElement.cpp \
175 third_party/WebKit/Source/web/WebFrameImpl.cpp \
176 third_party/WebKit/Source/web/WebGeolocationController.cpp \
177 third_party/WebKit/Source/web/WebGeolocationError.cpp \
178 third_party/WebKit/Source/web/WebGeolocationPermissionRequest.cpp \
179 third_party/WebKit/Source/web/WebGeolocationPermissionRequestManager.cpp \
180 third_party/WebKit/Source/web/WebGeolocationPosition.cpp \
181 third_party/WebKit/Source/web/WebGlyphCache.cpp \
182 third_party/WebKit/Source/web/WebHeap.cpp \
183 third_party/WebKit/Source/web/WebHelperPluginImpl.cpp \
184 third_party/WebKit/Source/web/WebHistoryItem.cpp \
185 third_party/WebKit/Source/web/WebHitTestResult.cpp \
186 third_party/WebKit/Source/web/WebIDBDatabaseError.cpp \
187 third_party/WebKit/Source/web/WebIDBKey.cpp \
188 third_party/WebKit/Source/web/WebIDBKeyPath.cpp \
189 third_party/WebKit/Source/web/WebIDBKeyRange.cpp \
190 third_party/WebKit/Source/web/WebIDBMetadata.cpp \
191 third_party/WebKit/Source/web/WebImageCache.cpp \
192 third_party/WebKit/Source/web/WebImageDecoder.cpp \
193 third_party/WebKit/Source/web/WebInputElement.cpp \
194 third_party/WebKit/Source/web/WebInputEvent.cpp \
195 third_party/WebKit/Source/web/WebInputEventFactoryAndroid.cpp \
196 third_party/WebKit/Source/web/WebInputEventConversion.cpp \
197 third_party/WebKit/Source/web/WebKit.cpp \
198 third_party/WebKit/Source/web/WebLabelElement.cpp \
199 third_party/WebKit/Source/web/WebLeakDetector.cpp \
200 third_party/WebKit/Source/web/WebMIDIClientMock.cpp \
201 third_party/WebKit/Source/web/WebMIDIPermissionRequest.cpp \
202 third_party/WebKit/Source/web/WebMediaDevicesRequest.cpp \
203 third_party/WebKit/Source/web/WebMediaPlayerClientImpl.cpp \
204 third_party/WebKit/Source/web/WebMediaStreamRegistry.cpp \
205 third_party/WebKit/Source/web/WebNetworkStateNotifier.cpp \
206 third_party/WebKit/Source/web/WebNode.cpp \
207 third_party/WebKit/Source/web/WebNodeList.cpp \
208 third_party/WebKit/Source/web/WebNotification.cpp \
209 third_party/WebKit/Source/web/WebOptionElement.cpp \
210 third_party/WebKit/Source/web/WebPagePopupImpl.cpp \
211 third_party/WebKit/Source/web/WebPageSerializer.cpp \
212 third_party/WebKit/Source/web/WebPageSerializerImpl.cpp \
213 third_party/WebKit/Source/web/WebPasswordFormData.cpp \
214 third_party/WebKit/Source/web/WebPasswordFormUtils.cpp \
215 third_party/WebKit/Source/web/WebPerformance.cpp \
216 third_party/WebKit/Source/web/WebPluginContainerImpl.cpp \
217 third_party/WebKit/Source/web/WebPluginDocument.cpp \
218 third_party/WebKit/Source/web/WebPluginLoadObserver.cpp \
219 third_party/WebKit/Source/web/WebPluginScrollbarImpl.cpp \
220 third_party/WebKit/Source/web/WebPopupMenuImpl.cpp \
221 third_party/WebKit/Source/web/WebRange.cpp \
222 third_party/WebKit/Source/web/WebRuntimeFeatures.cpp \
223 third_party/WebKit/Source/web/WebScopedMicrotaskSuppression.cpp \
224 third_party/WebKit/Source/web/WebScopedUserGesture.cpp \
225 third_party/WebKit/Source/web/WebScopedWindowFocusAllowedIndicator.cpp \
226 third_party/WebKit/Source/web/WebScriptBindings.cpp \
227 third_party/WebKit/Source/web/WebScriptController.cpp \
228 third_party/WebKit/Source/web/WebScrollbarThemePainter.cpp \
229 third_party/WebKit/Source/web/WebSearchableFormData.cpp \
230 third_party/WebKit/Source/web/WebSecurityOrigin.cpp \
231 third_party/WebKit/Source/web/WebSecurityPolicy.cpp \
232 third_party/WebKit/Source/web/WebSelectElement.cpp \
233 third_party/WebKit/Source/web/WebSelector.cpp \
234 third_party/WebKit/Source/web/WebSerializedScriptValue.cpp \
235 third_party/WebKit/Source/web/WebSettingsImpl.cpp \
236 third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp \
237 third_party/WebKit/Source/web/WebSocket.cpp \
238 third_party/WebKit/Source/web/WebSocketImpl.cpp \
239 third_party/WebKit/Source/web/WebSpeechGrammar.cpp \
240 third_party/WebKit/Source/web/WebSpeechInputResult.cpp \
241 third_party/WebKit/Source/web/WebSpeechRecognitionHandle.cpp \
242 third_party/WebKit/Source/web/WebSpeechRecognitionResult.cpp \
243 third_party/WebKit/Source/web/WebStorageEventDispatcherImpl.cpp \
244 third_party/WebKit/Source/web/WebSurroundingText.cpp \
245 third_party/WebKit/Source/web/WebTextAreaElement.cpp \
246 third_party/WebKit/Source/web/WebTextCheckingCompletionImpl.cpp \
247 third_party/WebKit/Source/web/WebTextCheckingResult.cpp \
248 third_party/WebKit/Source/web/WebTextInputInfo.cpp \
249 third_party/WebKit/Source/web/WebTextRun.cpp \
250 third_party/WebKit/Source/web/WebUserGestureIndicator.cpp \
251 third_party/WebKit/Source/web/WebUserGestureToken.cpp \
252 third_party/WebKit/Source/web/WebUserMediaRequest.cpp \
253 third_party/WebKit/Source/web/WebViewImpl.cpp \
254 third_party/WebKit/Source/web/WebWorkerInfo.cpp \
255 third_party/WebKit/Source/web/WebWorkerRunLoop.cpp \
256 third_party/WebKit/Source/web/WorkerGlobalScopeProxyProviderImpl.cpp \
257 third_party/WebKit/Source/web/WorkerPermissionClient.cpp \
258 third_party/WebKit/Source/web/linux/WebFontRendering.cpp \
259 third_party/WebKit/Source/web/painting/ContinuousPainter.cpp \
260 third_party/WebKit/Source/web/painting/PaintAggregator.cpp
261
262
263# Flags passed to both C and C++ files.
264MY_CFLAGS_Debug := \
265 -fstack-protector \
266 --param=ssp-buffer-size=4 \
267 \
268 -fno-exceptions \
269 -fno-strict-aliasing \
270 -Wall \
271 -Wno-unused-parameter \
272 -Wno-missing-field-initializers \
273 -fvisibility=hidden \
274 -pipe \
275 -fPIC \
276 -EL \
277 -mhard-float \
278 -ffunction-sections \
279 -funwind-tables \
280 -g \
281 -fstack-protector \
282 -fno-short-enums \
283 -finline-limit=64 \
284 -Wa,--noexecstack \
285 -U_FORTIFY_SOURCE \
286 -Wno-extra \
287 -Wno-ignored-qualifiers \
288 -Wno-type-limits \
289 -Wno-unused-but-set-variable \
290 -Os \
291 -g \
292 -fomit-frame-pointer \
293 -fdata-sections \
294 -ffunction-sections \
295 -funwind-tables
296
297MY_DEFS_Debug := \
298 '-DV8_DEPRECATION_WARNINGS' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000299 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000300 '-D_FILE_OFFSET_BITS=64' \
301 '-DNO_TCMALLOC' \
302 '-DDISABLE_NACL' \
303 '-DCHROMIUM_BUILD' \
304 '-DUSE_LIBJPEG_TURBO=1' \
Ben Murdochaafa69c2014-04-03 12:30:15 +0100305 '-DENABLE_WEBRTC=1' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000306 '-DUSE_PROPRIETARY_CODECS' \
307 '-DENABLE_CONFIGURATION_POLICY' \
308 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
309 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000310 '-DENABLE_EGLIMAGE=1' \
311 '-DCLD_VERSION=1' \
312 '-DENABLE_PRINTING=1' \
313 '-DENABLE_MANAGED_USERS=1' \
314 '-DBLINK_IMPLEMENTATION=1' \
315 '-DINSIDE_BLINK' \
316 '-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
317 '-DENABLE_SVG_FONTS=1' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000318 '-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
319 '-DENABLE_FAST_MOBILE_SCROLLING=1' \
320 '-DENABLE_INPUT_SPEECH=0' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000321 '-DENABLE_MEDIA_CAPTURE=1' \
322 '-DENABLE_OPENTYPE_VERTICAL=1' \
323 '-DU_USING_ICU_NAMESPACE=0' \
324 '-DSK_ENABLE_INST_COUNT=0' \
325 '-DSK_SUPPORT_GPU=1' \
326 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
327 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \
328 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
329 '-DGR_GL_IGNORE_ES3_MSAA=0' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000330 '-DSK_SUPPORT_LEGACY_LAYERRASTERIZER_API=1' \
331 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000332 '-DSK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS=1' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000333 '-DSK_SUPPORT_LEGACY_GETCLIPTYPE' \
334 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
335 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000336 '-DSK_BUILD_FOR_ANDROID' \
337 '-DSK_USE_POSIX_THREADS' \
338 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000339 '-DUSE_OPENSSL=1' \
Ben Murdoch07a852d2014-03-31 11:51:52 +0100340 '-DUSE_OPENSSL_CERTS=1' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000341 '-D__STDC_CONSTANT_MACROS' \
342 '-D__STDC_FORMAT_MACROS' \
343 '-DANDROID' \
344 '-D__GNU_SOURCE=1' \
345 '-DUSE_STLPORT=1' \
346 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
347 '-DCHROME_BUILD_ID=""' \
348 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
349 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
350 '-D_DEBUG'
351
352
353# Include paths placed before CFLAGS/CPPFLAGS
354LOCAL_C_INCLUDES_Debug := \
355 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
356 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
357 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
358 $(LOCAL_PATH)/third_party/WebKit/public/web \
359 $(LOCAL_PATH)/third_party/WebKit/Source/web \
360 $(LOCAL_PATH)/third_party/angle/include \
361 $(LOCAL_PATH)/third_party/skia/include/utils \
362 $(LOCAL_PATH)/third_party/WebKit/public/web/android \
363 $(LOCAL_PATH)/third_party/WebKit/public/web/linux \
364 $(LOCAL_PATH)/third_party/WebKit/Source \
365 $(LOCAL_PATH) \
366 $(LOCAL_PATH)/skia/config \
367 $(LOCAL_PATH)/third_party/khronos \
368 $(LOCAL_PATH)/gpu \
369 $(LOCAL_PATH)/third_party/WebKit \
370 $(gyp_shared_intermediate_dir)/blink \
371 $(gyp_shared_intermediate_dir)/blink/bindings \
372 $(PWD)/external/icu4c/common \
373 $(PWD)/external/icu4c/i18n \
374 $(LOCAL_PATH)/third_party/qcms/src \
375 $(LOCAL_PATH)/third_party/skia/src/core \
376 $(LOCAL_PATH)/third_party/skia/include/core \
377 $(LOCAL_PATH)/third_party/skia/include/effects \
378 $(LOCAL_PATH)/third_party/skia/include/pdf \
379 $(LOCAL_PATH)/third_party/skia/include/gpu \
380 $(LOCAL_PATH)/third_party/skia/include/lazy \
381 $(LOCAL_PATH)/third_party/skia/include/pathops \
382 $(LOCAL_PATH)/third_party/skia/include/pipe \
383 $(LOCAL_PATH)/third_party/skia/include/ports \
384 $(LOCAL_PATH)/skia/ext \
385 $(LOCAL_PATH)/third_party/npapi \
386 $(LOCAL_PATH)/third_party/npapi/bindings \
387 $(LOCAL_PATH)/v8/include \
388 $(PWD)/frameworks/wilhelm/include \
389 $(PWD)/bionic \
390 $(PWD)/external/stlport/stlport
391
392
393# Flags passed to only C++ (and not C) files.
394LOCAL_CPPFLAGS_Debug := \
395 -Wno-c++0x-compat \
396 -fno-rtti \
397 -fno-threadsafe-statics \
398 -fvisibility-inlines-hidden \
399 -Wsign-compare \
400 -Wno-c++0x-compat \
401 -Wno-uninitialized \
402 -Wno-non-virtual-dtor \
403 -Wno-sign-promo
404
405
406# Flags passed to both C and C++ files.
407MY_CFLAGS_Release := \
408 -fstack-protector \
409 --param=ssp-buffer-size=4 \
410 \
411 -fno-exceptions \
412 -fno-strict-aliasing \
413 -Wall \
414 -Wno-unused-parameter \
415 -Wno-missing-field-initializers \
416 -fvisibility=hidden \
417 -pipe \
418 -fPIC \
419 -EL \
420 -mhard-float \
421 -ffunction-sections \
422 -funwind-tables \
423 -g \
424 -fstack-protector \
425 -fno-short-enums \
426 -finline-limit=64 \
427 -Wa,--noexecstack \
428 -U_FORTIFY_SOURCE \
429 -Wno-extra \
430 -Wno-ignored-qualifiers \
431 -Wno-type-limits \
432 -Wno-unused-but-set-variable \
433 -Os \
434 -fno-ident \
435 -fdata-sections \
436 -ffunction-sections \
437 -fomit-frame-pointer \
438 -funwind-tables
439
440MY_DEFS_Release := \
441 '-DV8_DEPRECATION_WARNINGS' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000442 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000443 '-D_FILE_OFFSET_BITS=64' \
444 '-DNO_TCMALLOC' \
445 '-DDISABLE_NACL' \
446 '-DCHROMIUM_BUILD' \
447 '-DUSE_LIBJPEG_TURBO=1' \
Ben Murdochaafa69c2014-04-03 12:30:15 +0100448 '-DENABLE_WEBRTC=1' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000449 '-DUSE_PROPRIETARY_CODECS' \
450 '-DENABLE_CONFIGURATION_POLICY' \
451 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
452 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000453 '-DENABLE_EGLIMAGE=1' \
454 '-DCLD_VERSION=1' \
455 '-DENABLE_PRINTING=1' \
456 '-DENABLE_MANAGED_USERS=1' \
457 '-DBLINK_IMPLEMENTATION=1' \
458 '-DINSIDE_BLINK' \
459 '-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
460 '-DENABLE_SVG_FONTS=1' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000461 '-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
462 '-DENABLE_FAST_MOBILE_SCROLLING=1' \
463 '-DENABLE_INPUT_SPEECH=0' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000464 '-DENABLE_MEDIA_CAPTURE=1' \
465 '-DENABLE_OPENTYPE_VERTICAL=1' \
466 '-DU_USING_ICU_NAMESPACE=0' \
467 '-DSK_ENABLE_INST_COUNT=0' \
468 '-DSK_SUPPORT_GPU=1' \
469 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
470 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \
471 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
472 '-DGR_GL_IGNORE_ES3_MSAA=0' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000473 '-DSK_SUPPORT_LEGACY_LAYERRASTERIZER_API=1' \
474 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000475 '-DSK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS=1' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000476 '-DSK_SUPPORT_LEGACY_GETCLIPTYPE' \
477 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
478 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000479 '-DSK_BUILD_FOR_ANDROID' \
480 '-DSK_USE_POSIX_THREADS' \
481 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000482 '-DUSE_OPENSSL=1' \
Ben Murdoch07a852d2014-03-31 11:51:52 +0100483 '-DUSE_OPENSSL_CERTS=1' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000484 '-D__STDC_CONSTANT_MACROS' \
485 '-D__STDC_FORMAT_MACROS' \
486 '-DANDROID' \
487 '-D__GNU_SOURCE=1' \
488 '-DUSE_STLPORT=1' \
489 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
490 '-DCHROME_BUILD_ID=""' \
491 '-DNDEBUG' \
492 '-DNVALGRIND' \
493 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
494 '-D_FORTIFY_SOURCE=2'
495
496
497# Include paths placed before CFLAGS/CPPFLAGS
498LOCAL_C_INCLUDES_Release := \
499 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
500 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
501 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
502 $(LOCAL_PATH)/third_party/WebKit/public/web \
503 $(LOCAL_PATH)/third_party/WebKit/Source/web \
504 $(LOCAL_PATH)/third_party/angle/include \
505 $(LOCAL_PATH)/third_party/skia/include/utils \
506 $(LOCAL_PATH)/third_party/WebKit/public/web/android \
507 $(LOCAL_PATH)/third_party/WebKit/public/web/linux \
508 $(LOCAL_PATH)/third_party/WebKit/Source \
509 $(LOCAL_PATH) \
510 $(LOCAL_PATH)/skia/config \
511 $(LOCAL_PATH)/third_party/khronos \
512 $(LOCAL_PATH)/gpu \
513 $(LOCAL_PATH)/third_party/WebKit \
514 $(gyp_shared_intermediate_dir)/blink \
515 $(gyp_shared_intermediate_dir)/blink/bindings \
516 $(PWD)/external/icu4c/common \
517 $(PWD)/external/icu4c/i18n \
518 $(LOCAL_PATH)/third_party/qcms/src \
519 $(LOCAL_PATH)/third_party/skia/src/core \
520 $(LOCAL_PATH)/third_party/skia/include/core \
521 $(LOCAL_PATH)/third_party/skia/include/effects \
522 $(LOCAL_PATH)/third_party/skia/include/pdf \
523 $(LOCAL_PATH)/third_party/skia/include/gpu \
524 $(LOCAL_PATH)/third_party/skia/include/lazy \
525 $(LOCAL_PATH)/third_party/skia/include/pathops \
526 $(LOCAL_PATH)/third_party/skia/include/pipe \
527 $(LOCAL_PATH)/third_party/skia/include/ports \
528 $(LOCAL_PATH)/skia/ext \
529 $(LOCAL_PATH)/third_party/npapi \
530 $(LOCAL_PATH)/third_party/npapi/bindings \
531 $(LOCAL_PATH)/v8/include \
532 $(PWD)/frameworks/wilhelm/include \
533 $(PWD)/bionic \
534 $(PWD)/external/stlport/stlport
535
536
537# Flags passed to only C++ (and not C) files.
538LOCAL_CPPFLAGS_Release := \
539 -Wno-c++0x-compat \
540 -fno-rtti \
541 -fno-threadsafe-statics \
542 -fvisibility-inlines-hidden \
543 -Wsign-compare \
544 -Wno-c++0x-compat \
545 -Wno-uninitialized \
546 -Wno-non-virtual-dtor \
547 -Wno-sign-promo
548
549
550LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
551LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
552LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000553LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000554### Rules for final target.
555
556LOCAL_LDFLAGS_Debug := \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000557 -Wl,--fatal-warnings \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000558 -Wl,-z,now \
559 -Wl,-z,relro \
560 -Wl,-z,noexecstack \
561 -fPIC \
562 -EL \
563 -Wl,--no-keep-memory \
564 -nostdlib \
565 -Wl,--no-undefined \
566 -Wl,--exclude-libs=ALL \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000567 -Wl,--gc-sections \
568 -Wl,--warn-shared-textrel \
569 -Wl,-O1 \
570 -Wl,--as-needed
571
572
573LOCAL_LDFLAGS_Release := \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000574 -Wl,--fatal-warnings \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000575 -Wl,-z,now \
576 -Wl,-z,relro \
577 -Wl,-z,noexecstack \
578 -fPIC \
579 -EL \
580 -Wl,--no-keep-memory \
581 -nostdlib \
582 -Wl,--no-undefined \
583 -Wl,--exclude-libs=ALL \
584 -Wl,-O1 \
585 -Wl,--as-needed \
586 -Wl,--gc-sections \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000587 -Wl,--warn-shared-textrel
588
589
590LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
591
592LOCAL_STATIC_LIBRARIES := \
593 third_party_WebKit_Source_core_webcore_generated_gyp \
594 skia_skia_library_gyp
595
596# Enable grouping to fix circular references
597LOCAL_GROUP_STATIC_LIBRARIES := true
598
599LOCAL_SHARED_LIBRARIES := \
600 libstlport \
601 libdl
602
603# Add target alias to "gyp_all_modules" target.
604.PHONY: gyp_all_modules
605gyp_all_modules: third_party_WebKit_Source_web_blink_web_gyp
606
607# Alias gyp target name.
608.PHONY: blink_web
609blink_web: third_party_WebKit_Source_web_blink_web_gyp
610
611include $(BUILD_STATIC_LIBRARY)