Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 1 | # This file is generated by gyp; do not edit. |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 6 | LOCAL_MODULE := third_party_WebKit_Source_core_webcore_dom_gyp |
| 7 | LOCAL_MODULE_SUFFIX := .a |
| 8 | LOCAL_MODULE_TAGS := optional |
| 9 | gyp_intermediate_dir := $(call local-intermediates-dir) |
| 10 | gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) |
| 11 | |
| 12 | # Make sure our deps are built first. |
| 13 | GYP_TARGET_DEPENDENCIES := \ |
| 14 | $(call intermediates-dir-for,GYP,third_party_WebKit_Source_core_webcore_prerequisites_gyp)/webcore_prerequisites.stamp \ |
| 15 | $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_gyp)/skia_skia_gyp.a |
| 16 | |
| 17 | GYP_GENERATED_OUTPUTS := |
| 18 | |
| 19 | # Make sure our deps and generated files are built first. |
| 20 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 21 | |
| 22 | LOCAL_GENERATED_SOURCES := |
| 23 | |
| 24 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 25 | |
| 26 | LOCAL_SRC_FILES := \ |
| 27 | third_party/WebKit/Source/core/dom/ActiveDOMObject.cpp \ |
| 28 | third_party/WebKit/Source/core/dom/AnimationEvent.cpp \ |
| 29 | third_party/WebKit/Source/core/dom/Attr.cpp \ |
| 30 | third_party/WebKit/Source/core/dom/BeforeTextInsertedEvent.cpp \ |
| 31 | third_party/WebKit/Source/core/dom/BeforeUnloadEvent.cpp \ |
| 32 | third_party/WebKit/Source/core/dom/CDATASection.cpp \ |
| 33 | third_party/WebKit/Source/core/dom/CharacterData.cpp \ |
| 34 | third_party/WebKit/Source/core/dom/CheckedRadioButtons.cpp \ |
| 35 | third_party/WebKit/Source/core/dom/ChildListMutationScope.cpp \ |
| 36 | third_party/WebKit/Source/core/dom/ChildNodeList.cpp \ |
| 37 | third_party/WebKit/Source/core/dom/ClassNodeList.cpp \ |
| 38 | third_party/WebKit/Source/core/dom/ClientRect.cpp \ |
| 39 | third_party/WebKit/Source/core/dom/ClientRectList.cpp \ |
| 40 | third_party/WebKit/Source/core/dom/Clipboard.cpp \ |
| 41 | third_party/WebKit/Source/core/dom/ClipboardEvent.cpp \ |
| 42 | third_party/WebKit/Source/core/dom/Comment.cpp \ |
| 43 | third_party/WebKit/Source/core/dom/CompositionEvent.cpp \ |
| 44 | third_party/WebKit/Source/core/dom/ContainerNode.cpp \ |
| 45 | third_party/WebKit/Source/core/dom/ContainerNodeAlgorithms.cpp \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 46 | third_party/WebKit/Source/core/dom/ContextLifecycleObserver.cpp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 47 | third_party/WebKit/Source/core/dom/ContextFeatures.cpp \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 48 | third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 49 | third_party/WebKit/Source/core/dom/CustomElementDefinition.cpp \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 50 | third_party/WebKit/Source/core/dom/CustomElementCallbackDispatcher.cpp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 51 | third_party/WebKit/Source/core/dom/CustomElementRegistry.cpp \ |
| 52 | third_party/WebKit/Source/core/dom/CustomElementUpgradeCandidateMap.cpp \ |
| 53 | third_party/WebKit/Source/core/dom/CustomEvent.cpp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 54 | third_party/WebKit/Source/core/dom/DOMError.cpp \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 55 | third_party/WebKit/Source/core/dom/DOMException.cpp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 56 | third_party/WebKit/Source/core/dom/DOMImplementation.cpp \ |
| 57 | third_party/WebKit/Source/core/dom/DOMNamedFlowCollection.cpp \ |
| 58 | third_party/WebKit/Source/core/dom/DOMStringList.cpp \ |
| 59 | third_party/WebKit/Source/core/dom/DOMStringMap.cpp \ |
| 60 | third_party/WebKit/Source/core/dom/DataTransferItem.cpp \ |
| 61 | third_party/WebKit/Source/core/dom/DatasetDOMStringMap.cpp \ |
| 62 | third_party/WebKit/Source/core/dom/DecodedDataDocumentParser.cpp \ |
| 63 | third_party/WebKit/Source/core/dom/DeviceOrientationController.cpp \ |
| 64 | third_party/WebKit/Source/core/dom/DeviceOrientationData.cpp \ |
| 65 | third_party/WebKit/Source/core/dom/DeviceOrientationEvent.cpp \ |
| 66 | third_party/WebKit/Source/core/dom/Document.cpp \ |
| 67 | third_party/WebKit/Source/core/dom/DocumentEventQueue.cpp \ |
| 68 | third_party/WebKit/Source/core/dom/DocumentFragment.cpp \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 69 | third_party/WebKit/Source/core/dom/DocumentFullscreen.cpp \ |
| 70 | third_party/WebKit/Source/core/dom/DocumentLifecycleObserver.cpp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 71 | third_party/WebKit/Source/core/dom/DocumentMarkerController.cpp \ |
| 72 | third_party/WebKit/Source/core/dom/DocumentMarker.cpp \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 73 | third_party/WebKit/Source/core/dom/DocumentOrderedList.cpp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 74 | third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp \ |
| 75 | third_party/WebKit/Source/core/dom/DocumentParser.cpp \ |
| 76 | third_party/WebKit/Source/core/dom/DocumentSharedObjectPool.cpp \ |
| 77 | third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp \ |
| 78 | third_party/WebKit/Source/core/dom/DocumentType.cpp \ |
| 79 | third_party/WebKit/Source/core/dom/Element.cpp \ |
| 80 | third_party/WebKit/Source/core/dom/ElementRareData.cpp \ |
| 81 | third_party/WebKit/Source/core/dom/ErrorEvent.cpp \ |
| 82 | third_party/WebKit/Source/core/dom/Event.cpp \ |
| 83 | third_party/WebKit/Source/core/dom/EventContext.cpp \ |
| 84 | third_party/WebKit/Source/core/dom/EventDispatchMediator.cpp \ |
| 85 | third_party/WebKit/Source/core/dom/EventDispatcher.cpp \ |
| 86 | third_party/WebKit/Source/core/dom/EventRetargeter.cpp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 87 | third_party/WebKit/Source/core/dom/EventListenerMap.cpp \ |
| 88 | third_party/WebKit/Source/core/dom/EventNames.cpp \ |
| 89 | third_party/WebKit/Source/core/dom/EventPathWalker.cpp \ |
| 90 | third_party/WebKit/Source/core/dom/EventTarget.cpp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 91 | third_party/WebKit/Source/core/dom/ExceptionCodePlaceholder.cpp \ |
| 92 | third_party/WebKit/Source/core/dom/FocusEvent.cpp \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 93 | third_party/WebKit/Source/core/dom/FullscreenController.cpp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 94 | third_party/WebKit/Source/core/dom/GenericEventQueue.cpp \ |
| 95 | third_party/WebKit/Source/core/dom/GestureEvent.cpp \ |
| 96 | third_party/WebKit/Source/core/dom/IconURL.cpp \ |
| 97 | third_party/WebKit/Source/core/dom/IdTargetObserver.cpp \ |
| 98 | third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp \ |
| 99 | third_party/WebKit/Source/core/dom/KeyboardEvent.cpp \ |
| 100 | third_party/WebKit/Source/core/dom/LiveNodeList.cpp \ |
| 101 | third_party/WebKit/Source/core/dom/MessageChannel.cpp \ |
| 102 | third_party/WebKit/Source/core/dom/MessageEvent.cpp \ |
| 103 | third_party/WebKit/Source/core/dom/MessagePort.cpp \ |
| 104 | third_party/WebKit/Source/core/dom/MessagePortChannel.cpp \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 105 | third_party/WebKit/Source/core/dom/Microtask.cpp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 106 | third_party/WebKit/Source/core/dom/MouseEvent.cpp \ |
| 107 | third_party/WebKit/Source/core/dom/MouseRelatedEvent.cpp \ |
| 108 | third_party/WebKit/Source/core/dom/MutationEvent.cpp \ |
| 109 | third_party/WebKit/Source/core/dom/MutationObserver.cpp \ |
| 110 | third_party/WebKit/Source/core/dom/MutationObserverInterestGroup.cpp \ |
| 111 | third_party/WebKit/Source/core/dom/MutationObserverRegistration.cpp \ |
| 112 | third_party/WebKit/Source/core/dom/MutationRecord.cpp \ |
| 113 | third_party/WebKit/Source/core/dom/NamedFlow.cpp \ |
| 114 | third_party/WebKit/Source/core/dom/NamedFlowCollection.cpp \ |
| 115 | third_party/WebKit/Source/core/dom/NameNodeList.cpp \ |
| 116 | third_party/WebKit/Source/core/dom/NamedNodeMap.cpp \ |
| 117 | third_party/WebKit/Source/core/dom/NamedNodesCollection.cpp \ |
| 118 | third_party/WebKit/Source/core/dom/Node.cpp \ |
| 119 | third_party/WebKit/Source/core/dom/NodeFilter.cpp \ |
| 120 | third_party/WebKit/Source/core/dom/NodeFilterCondition.cpp \ |
| 121 | third_party/WebKit/Source/core/dom/NodeIterator.cpp \ |
| 122 | third_party/WebKit/Source/core/dom/NodeList.cpp \ |
| 123 | third_party/WebKit/Source/core/dom/NodeRareData.cpp \ |
| 124 | third_party/WebKit/Source/core/dom/NodeRenderingContext.cpp \ |
| 125 | third_party/WebKit/Source/core/dom/NodeRenderingTraversal.cpp \ |
| 126 | third_party/WebKit/Source/core/dom/NodeTraversal.cpp \ |
| 127 | third_party/WebKit/Source/core/dom/Notation.cpp \ |
| 128 | third_party/WebKit/Source/core/dom/OverflowEvent.cpp \ |
| 129 | third_party/WebKit/Source/core/dom/PageTransitionEvent.cpp \ |
| 130 | third_party/WebKit/Source/core/dom/PendingScript.cpp \ |
| 131 | third_party/WebKit/Source/core/dom/PopStateEvent.cpp \ |
| 132 | third_party/WebKit/Source/core/dom/Position.cpp \ |
| 133 | third_party/WebKit/Source/core/dom/PositionIterator.cpp \ |
| 134 | third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp \ |
| 135 | third_party/WebKit/Source/core/dom/ProgressEvent.cpp \ |
| 136 | third_party/WebKit/Source/core/dom/PseudoElement.cpp \ |
| 137 | third_party/WebKit/Source/core/dom/QualifiedName.cpp \ |
| 138 | third_party/WebKit/Source/core/dom/Range.cpp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 139 | third_party/WebKit/Source/core/dom/ResourceProgressEvent.cpp \ |
| 140 | third_party/WebKit/Source/core/dom/ScopedEventQueue.cpp \ |
| 141 | third_party/WebKit/Source/core/dom/ScriptElement.cpp \ |
| 142 | third_party/WebKit/Source/core/dom/ScriptExecutionContext.cpp \ |
| 143 | third_party/WebKit/Source/core/dom/ScriptRunner.cpp \ |
| 144 | third_party/WebKit/Source/core/dom/ScriptableDocumentParser.cpp \ |
| 145 | third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp \ |
| 146 | third_party/WebKit/Source/core/dom/SecurityContext.cpp \ |
| 147 | third_party/WebKit/Source/core/dom/SelectorQuery.cpp \ |
| 148 | third_party/WebKit/Source/core/dom/SpaceSplitString.cpp \ |
| 149 | third_party/WebKit/Source/core/dom/StaticNodeList.cpp \ |
| 150 | third_party/WebKit/Source/core/dom/StringCallback.cpp \ |
| 151 | third_party/WebKit/Source/core/dom/StyleElement.cpp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 152 | third_party/WebKit/Source/core/dom/TagNodeList.cpp \ |
| 153 | third_party/WebKit/Source/core/dom/Text.cpp \ |
| 154 | third_party/WebKit/Source/core/dom/TextEvent.cpp \ |
| 155 | third_party/WebKit/Source/core/dom/Touch.cpp \ |
| 156 | third_party/WebKit/Source/core/dom/TouchEvent.cpp \ |
| 157 | third_party/WebKit/Source/core/dom/TouchList.cpp \ |
| 158 | third_party/WebKit/Source/core/dom/TransformSourceLibxslt.cpp \ |
| 159 | third_party/WebKit/Source/core/dom/TransitionEvent.cpp \ |
| 160 | third_party/WebKit/Source/core/dom/Traversal.cpp \ |
| 161 | third_party/WebKit/Source/core/dom/TreeScope.cpp \ |
| 162 | third_party/WebKit/Source/core/dom/TreeScopeAdopter.cpp \ |
| 163 | third_party/WebKit/Source/core/dom/TreeWalker.cpp \ |
| 164 | third_party/WebKit/Source/core/dom/UIEvent.cpp \ |
| 165 | third_party/WebKit/Source/core/dom/UIEventWithKeyState.cpp \ |
| 166 | third_party/WebKit/Source/core/dom/UserActionElementSet.cpp \ |
| 167 | third_party/WebKit/Source/core/dom/UserGestureIndicator.cpp \ |
| 168 | third_party/WebKit/Source/core/dom/UserTypingGestureIndicator.cpp \ |
| 169 | third_party/WebKit/Source/core/dom/ViewportArguments.cpp \ |
| 170 | third_party/WebKit/Source/core/dom/VisitedLinkState.cpp \ |
| 171 | third_party/WebKit/Source/core/dom/WebCoreMemoryInstrumentation.cpp \ |
| 172 | third_party/WebKit/Source/core/dom/WheelEvent.cpp \ |
| 173 | third_party/WebKit/Source/core/dom/WindowEventContext.cpp \ |
| 174 | third_party/WebKit/Source/core/dom/default/chromium/PlatformMessagePortChannelChromium.cpp \ |
| 175 | third_party/WebKit/Source/core/dom/shadow/ComposedShadowTreeWalker.cpp \ |
| 176 | third_party/WebKit/Source/core/dom/shadow/ContentDistributor.cpp \ |
| 177 | third_party/WebKit/Source/core/dom/shadow/ContentSelectorQuery.cpp \ |
| 178 | third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp \ |
| 179 | third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp \ |
| 180 | third_party/WebKit/Source/core/dom/shadow/SelectRuleFeatureSet.cpp \ |
| 181 | third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp |
| 182 | |
| 183 | |
| 184 | # Flags passed to both C and C++ files. |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 185 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 186 | -fstack-protector \ |
| 187 | --param=ssp-buffer-size=4 \ |
| 188 | \ |
| 189 | -fno-exceptions \ |
| 190 | -fno-strict-aliasing \ |
| 191 | -Wno-unused-parameter \ |
| 192 | -Wno-missing-field-initializers \ |
| 193 | -fvisibility=hidden \ |
| 194 | -pipe \ |
| 195 | -fPIC \ |
| 196 | -Wno-format \ |
| 197 | -EL \ |
| 198 | -mhard-float \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 199 | -ffunction-sections \ |
| 200 | -funwind-tables \ |
| 201 | -g \ |
| 202 | -fstack-protector \ |
| 203 | -fno-short-enums \ |
| 204 | -finline-limit=64 \ |
| 205 | -Wa,--noexecstack \ |
| 206 | -U_FORTIFY_SOURCE \ |
| 207 | -Wno-extra \ |
| 208 | -Wno-ignored-qualifiers \ |
| 209 | -Wno-type-limits \ |
| 210 | -Wno-address \ |
| 211 | -Wno-format-security \ |
| 212 | -Wno-return-type \ |
| 213 | -Wno-sequence-point \ |
| 214 | -Os \ |
| 215 | -g \ |
| 216 | -fomit-frame-pointer \ |
| 217 | -fdata-sections \ |
| 218 | -ffunction-sections |
| 219 | |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 220 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 221 | '-DANGLE_DX11' \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 222 | '-D_FILE_OFFSET_BITS=64' \ |
| 223 | '-DNO_TCMALLOC' \ |
| 224 | '-DDISABLE_NACL' \ |
| 225 | '-DCHROMIUM_BUILD' \ |
| 226 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 227 | '-DUSE_PROPRIETARY_CODECS' \ |
| 228 | '-DENABLE_GPU=1' \ |
| 229 | '-DUSE_OPENSSL=1' \ |
| 230 | '-DENABLE_EGLIMAGE=1' \ |
| 231 | '-DENABLE_LANGUAGE_DETECTION=1' \ |
| 232 | '-DWEBCORE_NAVIGATOR_VENDOR="Google Inc."' \ |
| 233 | '-DWEBKIT_IMPLEMENTATION=1' \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 234 | '-DINSIDE_WEBKIT' \ |
| 235 | '-DENABLE_CANVAS_USES_MAILBOX=1' \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 236 | '-DENABLE_CSS3_TEXT=0' \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 237 | '-DENABLE_CSS_EXCLUSIONS=1' \ |
| 238 | '-DENABLE_CSS_REGIONS=1' \ |
| 239 | '-DENABLE_CUSTOM_SCHEME_HANDLER=0' \ |
| 240 | '-DENABLE_ENCRYPTED_MEDIA_V2=1' \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 241 | '-DENABLE_SVG_FONTS=1' \ |
| 242 | '-DENABLE_TOUCH_ICON_LOADING=1' \ |
| 243 | '-DENABLE_XHR_TIMEOUT=0' \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 244 | '-DENABLE_GDI_FONTS_ON_WINDOWS=1' \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 245 | '-DENABLE_PARTITION_ALLOC=1' \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 246 | '-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \ |
| 247 | '-DENABLE_CALENDAR_PICKER=0' \ |
| 248 | '-DENABLE_FAST_MOBILE_SCROLLING=1' \ |
| 249 | '-DENABLE_INPUT_SPEECH=0' \ |
| 250 | '-DENABLE_LEGACY_NOTIFICATIONS=0' \ |
| 251 | '-DENABLE_MEDIA_CAPTURE=1' \ |
| 252 | '-DENABLE_NOTIFICATIONS=0' \ |
| 253 | '-DENABLE_ORIENTATION_EVENTS=1' \ |
| 254 | '-DENABLE_PRINTING=0' \ |
| 255 | '-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \ |
| 256 | '-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \ |
| 257 | '-DENABLE_8BIT_TEXTRUN=1' \ |
| 258 | '-DENABLE_OPENTYPE_VERTICAL=1' \ |
| 259 | '-DWTF_USE_HARFBUZZ=1' \ |
| 260 | '-DU_USING_ICU_NAMESPACE=0' \ |
| 261 | '-DSK_BUILD_NO_IMAGE_ENCODE' \ |
| 262 | '-DSK_DEFERRED_CANVAS_USES_GPIPE=1' \ |
| 263 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
| 264 | '-DGR_AGGRESSIVE_SHADER_OPTS=1' \ |
| 265 | '-DSK_ENABLE_INST_COUNT=0' \ |
| 266 | '-DSK_USE_POSIX_THREADS' \ |
| 267 | '-DSK_BUILD_FOR_ANDROID' \ |
| 268 | '-DCHROME_PNG_WRITE_SUPPORT' \ |
| 269 | '-DPNG_USER_CONFIG' \ |
| 270 | '-DLIBXML_STATIC' \ |
| 271 | '-DLIBXSLT_STATIC' \ |
| 272 | '-DUSE_SYSTEM_LIBJPEG' \ |
| 273 | '-DANDROID' \ |
| 274 | '-D__GNU_SOURCE=1' \ |
| 275 | '-DUSE_STLPORT=1' \ |
| 276 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 277 | '-DCHROME_BUILD_ID=""' \ |
| 278 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 279 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 280 | '-D_DEBUG' |
| 281 | |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 282 | |
| 283 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 284 | LOCAL_C_INCLUDES_Debug := \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 285 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 286 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
| 287 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| 288 | $(LOCAL_PATH)/third_party/khronos \ |
| 289 | $(LOCAL_PATH)/gpu \ |
| 290 | $(LOCAL_PATH) \ |
| 291 | $(LOCAL_PATH)/third_party/WebKit \ |
| 292 | $(LOCAL_PATH)/third_party/WebKit/Source \ |
| 293 | $(gyp_shared_intermediate_dir)/webkit \ |
| 294 | $(gyp_shared_intermediate_dir)/webkit/bindings \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 295 | $(LOCAL_PATH)/third_party/angle_dx11/include/GLSLANG \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 296 | $(PWD)/external/icu4c/common \ |
| 297 | $(PWD)/external/icu4c/i18n \ |
| 298 | $(LOCAL_PATH)/skia/config \ |
| 299 | $(LOCAL_PATH)/third_party/skia/src/core \ |
| 300 | $(LOCAL_PATH)/third_party/skia/include/config \ |
| 301 | $(LOCAL_PATH)/third_party/skia/include/core \ |
| 302 | $(LOCAL_PATH)/third_party/skia/include/effects \ |
| 303 | $(LOCAL_PATH)/third_party/skia/include/pdf \ |
| 304 | $(LOCAL_PATH)/third_party/skia/include/gpu \ |
| 305 | $(LOCAL_PATH)/third_party/skia/include/gpu/gl \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 306 | $(LOCAL_PATH)/third_party/skia/include/lazy \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 307 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
| 308 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 309 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 310 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
| 311 | $(LOCAL_PATH)/skia/ext \ |
| 312 | $(LOCAL_PATH)/third_party/iccjpeg \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 313 | $(LOCAL_PATH)/third_party/libpng \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 314 | $(LOCAL_PATH)/third_party/libwebp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 315 | $(LOCAL_PATH)/third_party/libxml/linux/include \ |
| 316 | $(LOCAL_PATH)/third_party/libxml/src/include \ |
| 317 | $(LOCAL_PATH)/third_party/libxslt \ |
| 318 | $(LOCAL_PATH)/third_party/npapi \ |
| 319 | $(LOCAL_PATH)/third_party/npapi/bindings \ |
| 320 | $(LOCAL_PATH)/third_party/ots/include \ |
| 321 | $(LOCAL_PATH)/third_party/qcms/src \ |
| 322 | $(LOCAL_PATH)/third_party/sqlite \ |
| 323 | $(LOCAL_PATH)/third_party/zlib \ |
| 324 | $(LOCAL_PATH)/v8/include \ |
| 325 | $(PWD)/external/jpeg \ |
| 326 | $(PWD)/frameworks/wilhelm/include \ |
| 327 | $(PWD)/bionic \ |
| 328 | $(PWD)/external/stlport/stlport |
| 329 | |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 330 | |
| 331 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 332 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 333 | -fno-rtti \ |
| 334 | -fno-threadsafe-statics \ |
| 335 | -fvisibility-inlines-hidden \ |
| 336 | -Wno-c++0x-compat \ |
| 337 | -Wno-deprecated \ |
| 338 | -Wno-uninitialized \ |
| 339 | -Wno-error=c++0x-compat \ |
| 340 | -Wno-non-virtual-dtor \ |
| 341 | -Wno-sign-promo \ |
| 342 | -Wno-non-virtual-dtor |
| 343 | |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 344 | |
| 345 | # Flags passed to both C and C++ files. |
| 346 | MY_CFLAGS_Release := \ |
| 347 | -fstack-protector \ |
| 348 | --param=ssp-buffer-size=4 \ |
| 349 | \ |
| 350 | -fno-exceptions \ |
| 351 | -fno-strict-aliasing \ |
| 352 | -Wno-unused-parameter \ |
| 353 | -Wno-missing-field-initializers \ |
| 354 | -fvisibility=hidden \ |
| 355 | -pipe \ |
| 356 | -fPIC \ |
| 357 | -Wno-format \ |
| 358 | -EL \ |
| 359 | -mhard-float \ |
| 360 | -ffunction-sections \ |
| 361 | -funwind-tables \ |
| 362 | -g \ |
| 363 | -fstack-protector \ |
| 364 | -fno-short-enums \ |
| 365 | -finline-limit=64 \ |
| 366 | -Wa,--noexecstack \ |
| 367 | -U_FORTIFY_SOURCE \ |
| 368 | -Wno-extra \ |
| 369 | -Wno-ignored-qualifiers \ |
| 370 | -Wno-type-limits \ |
| 371 | -Wno-address \ |
| 372 | -Wno-format-security \ |
| 373 | -Wno-return-type \ |
| 374 | -Wno-sequence-point \ |
| 375 | -Os \ |
| 376 | -fno-ident \ |
| 377 | -fdata-sections \ |
| 378 | -ffunction-sections \ |
| 379 | -fomit-frame-pointer |
| 380 | |
| 381 | MY_DEFS_Release := \ |
| 382 | '-DANGLE_DX11' \ |
| 383 | '-D_FILE_OFFSET_BITS=64' \ |
| 384 | '-DNO_TCMALLOC' \ |
| 385 | '-DDISABLE_NACL' \ |
| 386 | '-DCHROMIUM_BUILD' \ |
| 387 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 388 | '-DUSE_PROPRIETARY_CODECS' \ |
| 389 | '-DENABLE_GPU=1' \ |
| 390 | '-DUSE_OPENSSL=1' \ |
| 391 | '-DENABLE_EGLIMAGE=1' \ |
| 392 | '-DENABLE_LANGUAGE_DETECTION=1' \ |
| 393 | '-DWEBCORE_NAVIGATOR_VENDOR="Google Inc."' \ |
| 394 | '-DWEBKIT_IMPLEMENTATION=1' \ |
| 395 | '-DINSIDE_WEBKIT' \ |
| 396 | '-DENABLE_CANVAS_USES_MAILBOX=1' \ |
| 397 | '-DENABLE_CSS3_TEXT=0' \ |
| 398 | '-DENABLE_CSS_EXCLUSIONS=1' \ |
| 399 | '-DENABLE_CSS_REGIONS=1' \ |
| 400 | '-DENABLE_CUSTOM_SCHEME_HANDLER=0' \ |
| 401 | '-DENABLE_ENCRYPTED_MEDIA_V2=1' \ |
| 402 | '-DENABLE_SVG_FONTS=1' \ |
| 403 | '-DENABLE_TOUCH_ICON_LOADING=1' \ |
| 404 | '-DENABLE_XHR_TIMEOUT=0' \ |
| 405 | '-DENABLE_GDI_FONTS_ON_WINDOWS=1' \ |
| 406 | '-DENABLE_PARTITION_ALLOC=1' \ |
| 407 | '-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \ |
| 408 | '-DENABLE_CALENDAR_PICKER=0' \ |
| 409 | '-DENABLE_FAST_MOBILE_SCROLLING=1' \ |
| 410 | '-DENABLE_INPUT_SPEECH=0' \ |
| 411 | '-DENABLE_LEGACY_NOTIFICATIONS=0' \ |
| 412 | '-DENABLE_MEDIA_CAPTURE=1' \ |
| 413 | '-DENABLE_NOTIFICATIONS=0' \ |
| 414 | '-DENABLE_ORIENTATION_EVENTS=1' \ |
| 415 | '-DENABLE_PRINTING=0' \ |
| 416 | '-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \ |
| 417 | '-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \ |
| 418 | '-DENABLE_8BIT_TEXTRUN=1' \ |
| 419 | '-DENABLE_OPENTYPE_VERTICAL=1' \ |
| 420 | '-DWTF_USE_HARFBUZZ=1' \ |
| 421 | '-DU_USING_ICU_NAMESPACE=0' \ |
| 422 | '-DSK_BUILD_NO_IMAGE_ENCODE' \ |
| 423 | '-DSK_DEFERRED_CANVAS_USES_GPIPE=1' \ |
| 424 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
| 425 | '-DGR_AGGRESSIVE_SHADER_OPTS=1' \ |
| 426 | '-DSK_ENABLE_INST_COUNT=0' \ |
| 427 | '-DSK_USE_POSIX_THREADS' \ |
| 428 | '-DSK_BUILD_FOR_ANDROID' \ |
| 429 | '-DCHROME_PNG_WRITE_SUPPORT' \ |
| 430 | '-DPNG_USER_CONFIG' \ |
| 431 | '-DLIBXML_STATIC' \ |
| 432 | '-DLIBXSLT_STATIC' \ |
| 433 | '-DUSE_SYSTEM_LIBJPEG' \ |
| 434 | '-DANDROID' \ |
| 435 | '-D__GNU_SOURCE=1' \ |
| 436 | '-DUSE_STLPORT=1' \ |
| 437 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 438 | '-DCHROME_BUILD_ID=""' \ |
| 439 | '-DNDEBUG' \ |
| 440 | '-DNVALGRIND' \ |
| 441 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' |
| 442 | |
| 443 | |
| 444 | # Include paths placed before CFLAGS/CPPFLAGS |
| 445 | LOCAL_C_INCLUDES_Release := \ |
| 446 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 447 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
| 448 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| 449 | $(LOCAL_PATH)/third_party/khronos \ |
| 450 | $(LOCAL_PATH)/gpu \ |
| 451 | $(LOCAL_PATH) \ |
| 452 | $(LOCAL_PATH)/third_party/WebKit \ |
| 453 | $(LOCAL_PATH)/third_party/WebKit/Source \ |
| 454 | $(gyp_shared_intermediate_dir)/webkit \ |
| 455 | $(gyp_shared_intermediate_dir)/webkit/bindings \ |
| 456 | $(LOCAL_PATH)/third_party/angle_dx11/include/GLSLANG \ |
| 457 | $(PWD)/external/icu4c/common \ |
| 458 | $(PWD)/external/icu4c/i18n \ |
| 459 | $(LOCAL_PATH)/skia/config \ |
| 460 | $(LOCAL_PATH)/third_party/skia/src/core \ |
| 461 | $(LOCAL_PATH)/third_party/skia/include/config \ |
| 462 | $(LOCAL_PATH)/third_party/skia/include/core \ |
| 463 | $(LOCAL_PATH)/third_party/skia/include/effects \ |
| 464 | $(LOCAL_PATH)/third_party/skia/include/pdf \ |
| 465 | $(LOCAL_PATH)/third_party/skia/include/gpu \ |
| 466 | $(LOCAL_PATH)/third_party/skia/include/gpu/gl \ |
| 467 | $(LOCAL_PATH)/third_party/skia/include/lazy \ |
| 468 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
| 469 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 470 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 471 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
| 472 | $(LOCAL_PATH)/skia/ext \ |
| 473 | $(LOCAL_PATH)/third_party/iccjpeg \ |
| 474 | $(LOCAL_PATH)/third_party/libpng \ |
| 475 | $(LOCAL_PATH)/third_party/libwebp \ |
| 476 | $(LOCAL_PATH)/third_party/libxml/linux/include \ |
| 477 | $(LOCAL_PATH)/third_party/libxml/src/include \ |
| 478 | $(LOCAL_PATH)/third_party/libxslt \ |
| 479 | $(LOCAL_PATH)/third_party/npapi \ |
| 480 | $(LOCAL_PATH)/third_party/npapi/bindings \ |
| 481 | $(LOCAL_PATH)/third_party/ots/include \ |
| 482 | $(LOCAL_PATH)/third_party/qcms/src \ |
| 483 | $(LOCAL_PATH)/third_party/sqlite \ |
| 484 | $(LOCAL_PATH)/third_party/zlib \ |
| 485 | $(LOCAL_PATH)/v8/include \ |
| 486 | $(PWD)/external/jpeg \ |
| 487 | $(PWD)/frameworks/wilhelm/include \ |
| 488 | $(PWD)/bionic \ |
| 489 | $(PWD)/external/stlport/stlport |
| 490 | |
| 491 | |
| 492 | # Flags passed to only C++ (and not C) files. |
| 493 | LOCAL_CPPFLAGS_Release := \ |
| 494 | -fno-rtti \ |
| 495 | -fno-threadsafe-statics \ |
| 496 | -fvisibility-inlines-hidden \ |
| 497 | -Wno-c++0x-compat \ |
| 498 | -Wno-deprecated \ |
| 499 | -Wno-uninitialized \ |
| 500 | -Wno-error=c++0x-compat \ |
| 501 | -Wno-non-virtual-dtor \ |
| 502 | -Wno-sign-promo \ |
| 503 | -Wno-non-virtual-dtor |
| 504 | |
| 505 | |
| 506 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 507 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 508 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 509 | ### Rules for final target. |
| 510 | |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 511 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 512 | -Wl,-z,now \ |
| 513 | -Wl,-z,relro \ |
| 514 | -Wl,-z,noexecstack \ |
| 515 | -fPIC \ |
| 516 | -EL \ |
| 517 | -Wl,--no-keep-memory \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 518 | -nostdlib \ |
| 519 | -Wl,--no-undefined \ |
| 520 | -Wl,--exclude-libs=ALL \ |
| 521 | -Wl,--gc-sections \ |
| 522 | -Wl,-O1 \ |
| 523 | -Wl,--as-needed |
| 524 | |
| 525 | |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 526 | LOCAL_LDFLAGS_Release := \ |
| 527 | -Wl,-z,now \ |
| 528 | -Wl,-z,relro \ |
| 529 | -Wl,-z,noexecstack \ |
| 530 | -fPIC \ |
| 531 | -EL \ |
| 532 | -Wl,--no-keep-memory \ |
| 533 | -nostdlib \ |
| 534 | -Wl,--no-undefined \ |
| 535 | -Wl,--exclude-libs=ALL \ |
| 536 | -Wl,-O1 \ |
| 537 | -Wl,--as-needed \ |
| 538 | -Wl,--gc-sections |
| 539 | |
| 540 | |
| 541 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 542 | |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 543 | LOCAL_STATIC_LIBRARIES := \ |
| 544 | skia_skia_gyp |
| 545 | |
| 546 | # Enable grouping to fix circular references |
| 547 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 548 | |
| 549 | LOCAL_SHARED_LIBRARIES := \ |
| 550 | libstlport \ |
| 551 | libdl |
| 552 | |
| 553 | # Add target alias to "gyp_all_modules" target. |
| 554 | .PHONY: gyp_all_modules |
| 555 | gyp_all_modules: third_party_WebKit_Source_core_webcore_dom_gyp |
| 556 | |
| 557 | # Alias gyp target name. |
| 558 | .PHONY: webcore_dom |
| 559 | webcore_dom: third_party_WebKit_Source_core_webcore_dom_gyp |
| 560 | |
| 561 | include $(BUILD_STATIC_LIBRARY) |