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