blob: 801eb1b5aeaeca3f7c282bdb2cf3d284b48a9a72 [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 \
95 third_party/WebKit/Source/web/DOMUtilitiesPrivate.cpp \
96 third_party/WebKit/Source/web/DatabaseClientImpl.cpp \
97 third_party/WebKit/Source/web/DateTimeChooserImpl.cpp \
98 third_party/WebKit/Source/web/DragClientImpl.cpp \
99 third_party/WebKit/Source/web/EditorClientImpl.cpp \
100 third_party/WebKit/Source/web/EventListenerWrapper.cpp \
101 third_party/WebKit/Source/web/ExternalDateTimeChooser.cpp \
102 third_party/WebKit/Source/web/ExternalPopupMenu.cpp \
103 third_party/WebKit/Source/web/FindInPageCoordinates.cpp \
104 third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp \
105 third_party/WebKit/Source/web/FullscreenController.cpp \
106 third_party/WebKit/Source/web/GeolocationClientProxy.cpp \
107 third_party/WebKit/Source/web/GraphicsLayerFactoryChromium.cpp \
108 third_party/WebKit/Source/web/IDBFactoryBackendProxy.cpp \
109 third_party/WebKit/Source/web/InspectorClientImpl.cpp \
110 third_party/WebKit/Source/web/InspectorFrontendClientImpl.cpp \
111 third_party/WebKit/Source/web/LinkHighlight.cpp \
112 third_party/WebKit/Source/web/LocalFileSystemClient.cpp \
113 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 \
132 third_party/WebKit/Source/web/UserMediaClientImpl.cpp \
133 third_party/WebKit/Source/web/ValidationMessageClientImpl.cpp \
134 third_party/WebKit/Source/web/ViewportAnchor.cpp \
135 third_party/WebKit/Source/web/WebAXObject.cpp \
136 third_party/WebKit/Source/web/WebArrayBufferConverter.cpp \
137 third_party/WebKit/Source/web/WebArrayBufferView.cpp \
138 third_party/WebKit/Source/web/WebBindings.cpp \
139 third_party/WebKit/Source/web/WebBlob.cpp \
140 third_party/WebKit/Source/web/WebCache.cpp \
141 third_party/WebKit/Source/web/WebCachedURLRequest.cpp \
142 third_party/WebKit/Source/web/WebColorName.cpp \
143 third_party/WebKit/Source/web/WebColorSuggestion.cpp \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000144 third_party/WebKit/Source/web/WebCustomElement.cpp \
145 third_party/WebKit/Source/web/WebDOMActivityLogger.cpp \
146 third_party/WebKit/Source/web/WebDOMCustomEvent.cpp \
147 third_party/WebKit/Source/web/WebDOMError.cpp \
148 third_party/WebKit/Source/web/WebDOMEvent.cpp \
149 third_party/WebKit/Source/web/WebDOMEventListener.cpp \
150 third_party/WebKit/Source/web/WebDOMEventListenerPrivate.cpp \
151 third_party/WebKit/Source/web/WebDOMFileSystem.cpp \
152 third_party/WebKit/Source/web/WebDOMMediaStreamTrack.cpp \
153 third_party/WebKit/Source/web/WebDOMMessageEvent.cpp \
154 third_party/WebKit/Source/web/WebDOMMouseEvent.cpp \
155 third_party/WebKit/Source/web/WebDOMProgressEvent.cpp \
156 third_party/WebKit/Source/web/WebDOMResourceProgressEvent.cpp \
157 third_party/WebKit/Source/web/WebDateTimeSuggestion.cpp \
158 third_party/WebKit/Source/web/WebDataSourceImpl.cpp \
159 third_party/WebKit/Source/web/WebDatabase.cpp \
160 third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp \
161 third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp \
162 third_party/WebKit/Source/web/WebDocument.cpp \
163 third_party/WebKit/Source/web/WebDocumentType.cpp \
164 third_party/WebKit/Source/web/WebDragData.cpp \
165 third_party/WebKit/Source/web/WebElement.cpp \
166 third_party/WebKit/Source/web/WebElementCollection.cpp \
167 third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp \
168 third_party/WebKit/Source/web/WebEntities.cpp \
169 third_party/WebKit/Source/web/WebFileChooserCompletionImpl.cpp \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000170 third_party/WebKit/Source/web/WebFontDescription.cpp \
171 third_party/WebKit/Source/web/WebFontImpl.cpp \
172 third_party/WebKit/Source/web/WebFormControlElement.cpp \
173 third_party/WebKit/Source/web/WebFormElement.cpp \
174 third_party/WebKit/Source/web/WebFrameImpl.cpp \
175 third_party/WebKit/Source/web/WebGeolocationController.cpp \
176 third_party/WebKit/Source/web/WebGeolocationError.cpp \
177 third_party/WebKit/Source/web/WebGeolocationPermissionRequest.cpp \
178 third_party/WebKit/Source/web/WebGeolocationPermissionRequestManager.cpp \
179 third_party/WebKit/Source/web/WebGeolocationPosition.cpp \
180 third_party/WebKit/Source/web/WebGlyphCache.cpp \
181 third_party/WebKit/Source/web/WebHeap.cpp \
182 third_party/WebKit/Source/web/WebHelperPluginImpl.cpp \
183 third_party/WebKit/Source/web/WebHistoryItem.cpp \
184 third_party/WebKit/Source/web/WebHitTestResult.cpp \
185 third_party/WebKit/Source/web/WebIDBDatabaseError.cpp \
186 third_party/WebKit/Source/web/WebIDBKey.cpp \
187 third_party/WebKit/Source/web/WebIDBKeyPath.cpp \
188 third_party/WebKit/Source/web/WebIDBKeyRange.cpp \
189 third_party/WebKit/Source/web/WebIDBMetadata.cpp \
190 third_party/WebKit/Source/web/WebImageCache.cpp \
191 third_party/WebKit/Source/web/WebImageDecoder.cpp \
192 third_party/WebKit/Source/web/WebInputElement.cpp \
193 third_party/WebKit/Source/web/WebInputEvent.cpp \
194 third_party/WebKit/Source/web/WebInputEventFactoryAndroid.cpp \
195 third_party/WebKit/Source/web/WebInputEventConversion.cpp \
196 third_party/WebKit/Source/web/WebKit.cpp \
197 third_party/WebKit/Source/web/WebLabelElement.cpp \
198 third_party/WebKit/Source/web/WebLeakDetector.cpp \
199 third_party/WebKit/Source/web/WebMIDIClientMock.cpp \
200 third_party/WebKit/Source/web/WebMIDIPermissionRequest.cpp \
201 third_party/WebKit/Source/web/WebMediaDevicesRequest.cpp \
202 third_party/WebKit/Source/web/WebMediaPlayerClientImpl.cpp \
203 third_party/WebKit/Source/web/WebMediaStreamRegistry.cpp \
204 third_party/WebKit/Source/web/WebNetworkStateNotifier.cpp \
205 third_party/WebKit/Source/web/WebNode.cpp \
206 third_party/WebKit/Source/web/WebNodeList.cpp \
207 third_party/WebKit/Source/web/WebNotification.cpp \
208 third_party/WebKit/Source/web/WebOptionElement.cpp \
209 third_party/WebKit/Source/web/WebPagePopupImpl.cpp \
210 third_party/WebKit/Source/web/WebPageSerializer.cpp \
211 third_party/WebKit/Source/web/WebPageSerializerImpl.cpp \
212 third_party/WebKit/Source/web/WebPasswordFormData.cpp \
213 third_party/WebKit/Source/web/WebPasswordFormUtils.cpp \
214 third_party/WebKit/Source/web/WebPerformance.cpp \
215 third_party/WebKit/Source/web/WebPluginContainerImpl.cpp \
216 third_party/WebKit/Source/web/WebPluginDocument.cpp \
217 third_party/WebKit/Source/web/WebPluginLoadObserver.cpp \
218 third_party/WebKit/Source/web/WebPluginScrollbarImpl.cpp \
219 third_party/WebKit/Source/web/WebPopupMenuImpl.cpp \
220 third_party/WebKit/Source/web/WebRange.cpp \
221 third_party/WebKit/Source/web/WebRuntimeFeatures.cpp \
222 third_party/WebKit/Source/web/WebScopedMicrotaskSuppression.cpp \
223 third_party/WebKit/Source/web/WebScopedUserGesture.cpp \
224 third_party/WebKit/Source/web/WebScopedWindowFocusAllowedIndicator.cpp \
225 third_party/WebKit/Source/web/WebScriptBindings.cpp \
226 third_party/WebKit/Source/web/WebScriptController.cpp \
227 third_party/WebKit/Source/web/WebScrollbarThemePainter.cpp \
228 third_party/WebKit/Source/web/WebSearchableFormData.cpp \
229 third_party/WebKit/Source/web/WebSecurityOrigin.cpp \
230 third_party/WebKit/Source/web/WebSecurityPolicy.cpp \
231 third_party/WebKit/Source/web/WebSelectElement.cpp \
232 third_party/WebKit/Source/web/WebSelector.cpp \
233 third_party/WebKit/Source/web/WebSerializedScriptValue.cpp \
234 third_party/WebKit/Source/web/WebSettingsImpl.cpp \
235 third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp \
236 third_party/WebKit/Source/web/WebSocket.cpp \
237 third_party/WebKit/Source/web/WebSocketImpl.cpp \
238 third_party/WebKit/Source/web/WebSpeechGrammar.cpp \
239 third_party/WebKit/Source/web/WebSpeechInputResult.cpp \
240 third_party/WebKit/Source/web/WebSpeechRecognitionHandle.cpp \
241 third_party/WebKit/Source/web/WebSpeechRecognitionResult.cpp \
242 third_party/WebKit/Source/web/WebStorageEventDispatcherImpl.cpp \
243 third_party/WebKit/Source/web/WebSurroundingText.cpp \
244 third_party/WebKit/Source/web/WebTextAreaElement.cpp \
245 third_party/WebKit/Source/web/WebTextCheckingCompletionImpl.cpp \
246 third_party/WebKit/Source/web/WebTextCheckingResult.cpp \
247 third_party/WebKit/Source/web/WebTextInputInfo.cpp \
248 third_party/WebKit/Source/web/WebTextRun.cpp \
249 third_party/WebKit/Source/web/WebUserGestureIndicator.cpp \
250 third_party/WebKit/Source/web/WebUserGestureToken.cpp \
251 third_party/WebKit/Source/web/WebUserMediaRequest.cpp \
252 third_party/WebKit/Source/web/WebViewImpl.cpp \
253 third_party/WebKit/Source/web/WebWorkerInfo.cpp \
254 third_party/WebKit/Source/web/WebWorkerRunLoop.cpp \
255 third_party/WebKit/Source/web/WorkerGlobalScopeProxyProviderImpl.cpp \
256 third_party/WebKit/Source/web/WorkerPermissionClient.cpp \
257 third_party/WebKit/Source/web/linux/WebFontRendering.cpp \
258 third_party/WebKit/Source/web/painting/ContinuousPainter.cpp \
259 third_party/WebKit/Source/web/painting/PaintAggregator.cpp
260
261
262# Flags passed to both C and C++ files.
263MY_CFLAGS_Debug := \
264 -fstack-protector \
265 --param=ssp-buffer-size=4 \
266 \
267 -fno-exceptions \
268 -fno-strict-aliasing \
269 -Wall \
270 -Wno-unused-parameter \
271 -Wno-missing-field-initializers \
272 -fvisibility=hidden \
273 -pipe \
274 -fPIC \
275 -EL \
276 -mhard-float \
277 -ffunction-sections \
278 -funwind-tables \
279 -g \
280 -fstack-protector \
281 -fno-short-enums \
282 -finline-limit=64 \
283 -Wa,--noexecstack \
284 -U_FORTIFY_SOURCE \
285 -Wno-extra \
286 -Wno-ignored-qualifiers \
287 -Wno-type-limits \
288 -Wno-unused-but-set-variable \
289 -Os \
290 -g \
291 -fomit-frame-pointer \
292 -fdata-sections \
293 -ffunction-sections \
294 -funwind-tables
295
296MY_DEFS_Debug := \
297 '-DV8_DEPRECATION_WARNINGS' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000298 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000299 '-D_FILE_OFFSET_BITS=64' \
300 '-DNO_TCMALLOC' \
301 '-DDISABLE_NACL' \
302 '-DCHROMIUM_BUILD' \
303 '-DUSE_LIBJPEG_TURBO=1' \
304 '-DUSE_PROPRIETARY_CODECS' \
305 '-DENABLE_CONFIGURATION_POLICY' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000306 '-DENABLE_NEW_GAMEPAD_API=1' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000307 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
308 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000309 '-DENABLE_EGLIMAGE=1' \
310 '-DCLD_VERSION=1' \
311 '-DENABLE_PRINTING=1' \
312 '-DENABLE_MANAGED_USERS=1' \
313 '-DBLINK_IMPLEMENTATION=1' \
314 '-DINSIDE_BLINK' \
315 '-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
316 '-DENABLE_SVG_FONTS=1' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000317 '-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
318 '-DENABLE_FAST_MOBILE_SCROLLING=1' \
319 '-DENABLE_INPUT_SPEECH=0' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000320 '-DENABLE_MEDIA_CAPTURE=1' \
321 '-DENABLE_OPENTYPE_VERTICAL=1' \
322 '-DU_USING_ICU_NAMESPACE=0' \
323 '-DSK_ENABLE_INST_COUNT=0' \
324 '-DSK_SUPPORT_GPU=1' \
325 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
326 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \
327 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
328 '-DGR_GL_IGNORE_ES3_MSAA=0' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000329 '-DSK_SUPPORT_LEGACY_LAYERRASTERIZER_API=1' \
330 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000331 '-DSK_SUPPORT_LEGACY_COMPATIBLEDEVICE_CONFIG=1' \
332 '-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' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000340 '-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' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000441 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000442 '-D_FILE_OFFSET_BITS=64' \
443 '-DNO_TCMALLOC' \
444 '-DDISABLE_NACL' \
445 '-DCHROMIUM_BUILD' \
446 '-DUSE_LIBJPEG_TURBO=1' \
447 '-DUSE_PROPRIETARY_CODECS' \
448 '-DENABLE_CONFIGURATION_POLICY' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000449 '-DENABLE_NEW_GAMEPAD_API=1' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000450 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
451 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000452 '-DENABLE_EGLIMAGE=1' \
453 '-DCLD_VERSION=1' \
454 '-DENABLE_PRINTING=1' \
455 '-DENABLE_MANAGED_USERS=1' \
456 '-DBLINK_IMPLEMENTATION=1' \
457 '-DINSIDE_BLINK' \
458 '-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
459 '-DENABLE_SVG_FONTS=1' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000460 '-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
461 '-DENABLE_FAST_MOBILE_SCROLLING=1' \
462 '-DENABLE_INPUT_SPEECH=0' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000463 '-DENABLE_MEDIA_CAPTURE=1' \
464 '-DENABLE_OPENTYPE_VERTICAL=1' \
465 '-DU_USING_ICU_NAMESPACE=0' \
466 '-DSK_ENABLE_INST_COUNT=0' \
467 '-DSK_SUPPORT_GPU=1' \
468 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
469 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \
470 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
471 '-DGR_GL_IGNORE_ES3_MSAA=0' \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000472 '-DSK_SUPPORT_LEGACY_LAYERRASTERIZER_API=1' \
473 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000474 '-DSK_SUPPORT_LEGACY_COMPATIBLEDEVICE_CONFIG=1' \
475 '-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' \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000483 '-D__STDC_CONSTANT_MACROS' \
484 '-D__STDC_FORMAT_MACROS' \
485 '-DANDROID' \
486 '-D__GNU_SOURCE=1' \
487 '-DUSE_STLPORT=1' \
488 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
489 '-DCHROME_BUILD_ID=""' \
490 '-DNDEBUG' \
491 '-DNVALGRIND' \
492 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
493 '-D_FORTIFY_SOURCE=2'
494
495
496# Include paths placed before CFLAGS/CPPFLAGS
497LOCAL_C_INCLUDES_Release := \
498 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
499 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
500 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
501 $(LOCAL_PATH)/third_party/WebKit/public/web \
502 $(LOCAL_PATH)/third_party/WebKit/Source/web \
503 $(LOCAL_PATH)/third_party/angle/include \
504 $(LOCAL_PATH)/third_party/skia/include/utils \
505 $(LOCAL_PATH)/third_party/WebKit/public/web/android \
506 $(LOCAL_PATH)/third_party/WebKit/public/web/linux \
507 $(LOCAL_PATH)/third_party/WebKit/Source \
508 $(LOCAL_PATH) \
509 $(LOCAL_PATH)/skia/config \
510 $(LOCAL_PATH)/third_party/khronos \
511 $(LOCAL_PATH)/gpu \
512 $(LOCAL_PATH)/third_party/WebKit \
513 $(gyp_shared_intermediate_dir)/blink \
514 $(gyp_shared_intermediate_dir)/blink/bindings \
515 $(PWD)/external/icu4c/common \
516 $(PWD)/external/icu4c/i18n \
517 $(LOCAL_PATH)/third_party/qcms/src \
518 $(LOCAL_PATH)/third_party/skia/src/core \
519 $(LOCAL_PATH)/third_party/skia/include/core \
520 $(LOCAL_PATH)/third_party/skia/include/effects \
521 $(LOCAL_PATH)/third_party/skia/include/pdf \
522 $(LOCAL_PATH)/third_party/skia/include/gpu \
523 $(LOCAL_PATH)/third_party/skia/include/lazy \
524 $(LOCAL_PATH)/third_party/skia/include/pathops \
525 $(LOCAL_PATH)/third_party/skia/include/pipe \
526 $(LOCAL_PATH)/third_party/skia/include/ports \
527 $(LOCAL_PATH)/skia/ext \
528 $(LOCAL_PATH)/third_party/npapi \
529 $(LOCAL_PATH)/third_party/npapi/bindings \
530 $(LOCAL_PATH)/v8/include \
531 $(PWD)/frameworks/wilhelm/include \
532 $(PWD)/bionic \
533 $(PWD)/external/stlport/stlport
534
535
536# Flags passed to only C++ (and not C) files.
537LOCAL_CPPFLAGS_Release := \
538 -Wno-c++0x-compat \
539 -fno-rtti \
540 -fno-threadsafe-statics \
541 -fvisibility-inlines-hidden \
542 -Wsign-compare \
543 -Wno-c++0x-compat \
544 -Wno-uninitialized \
545 -Wno-non-virtual-dtor \
546 -Wno-sign-promo
547
548
549LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
550LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
551LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000552LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000553### Rules for final target.
554
555LOCAL_LDFLAGS_Debug := \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000556 -Wl,--fatal-warnings \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000557 -Wl,-z,now \
558 -Wl,-z,relro \
559 -Wl,-z,noexecstack \
560 -fPIC \
561 -EL \
562 -Wl,--no-keep-memory \
563 -nostdlib \
564 -Wl,--no-undefined \
565 -Wl,--exclude-libs=ALL \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000566 -Wl,--gc-sections \
567 -Wl,--warn-shared-textrel \
568 -Wl,-O1 \
569 -Wl,--as-needed
570
571
572LOCAL_LDFLAGS_Release := \
Torne (Richard Coles)d5428f32014-03-18 10:21:16 +0000573 -Wl,--fatal-warnings \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000574 -Wl,-z,now \
575 -Wl,-z,relro \
576 -Wl,-z,noexecstack \
577 -fPIC \
578 -EL \
579 -Wl,--no-keep-memory \
580 -nostdlib \
581 -Wl,--no-undefined \
582 -Wl,--exclude-libs=ALL \
583 -Wl,-O1 \
584 -Wl,--as-needed \
585 -Wl,--gc-sections \
Torne (Richard Coles)09380292014-02-21 12:17:33 +0000586 -Wl,--warn-shared-textrel
587
588
589LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
590
591LOCAL_STATIC_LIBRARIES := \
592 third_party_WebKit_Source_core_webcore_generated_gyp \
593 skia_skia_library_gyp
594
595# Enable grouping to fix circular references
596LOCAL_GROUP_STATIC_LIBRARIES := true
597
598LOCAL_SHARED_LIBRARIES := \
599 libstlport \
600 libdl
601
602# Add target alias to "gyp_all_modules" target.
603.PHONY: gyp_all_modules
604gyp_all_modules: third_party_WebKit_Source_web_blink_web_gyp
605
606# Alias gyp target name.
607.PHONY: blink_web
608blink_web: third_party_WebKit_Source_web_blink_web_gyp
609
610include $(BUILD_STATIC_LIBRARY)