1 ## 2 ## Copyright 2009, The Android Open Source Project 3 ## 4 ## Redistribution and use in source and binary forms, with or without 5 ## modification, are permitted provided that the following conditions 6 ## are met: 7 ## * Redistributions of source code must retain the above copyright 8 ## notice, this list of conditions and the following disclaimer. 9 ## * Redistributions in binary form must reproduce the above copyright 10 ## notice, this list of conditions and the following disclaimer in the 11 ## documentation and/or other materials provided with the distribution. 12 ## 13 ## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY 14 ## EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15 ## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 16 ## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 17 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 18 ## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 19 ## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 20 ## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 21 ## OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 ## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 ## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 ## 25 26 LOCAL_CFLAGS += -DWTF_USE_V8=1 27 28 BINDING_C_INCLUDES := \ 29 external/v8/include \ 30 \ 31 $(LOCAL_PATH)/bindings/v8 \ 32 $(LOCAL_PATH)/bindings/v8/custom \ 33 $(LOCAL_PATH)/bindings/v8/specialization \ 34 $(LOCAL_PATH)/bridge \ 35 $(LOCAL_PATH)/bridge/jni \ 36 $(LOCAL_PATH)/bridge/jni/v8 \ 37 $(LOCAL_PATH)/bridge/jsc \ 38 \ 39 $(base_intermediates)/WebCore/bindings \ 40 $(base_intermediates)/WebCore/svg \ 41 $(base_intermediates)/JavaScriptCore 42 43 LOCAL_SRC_FILES += \ 44 bindings/ScriptControllerBase.cpp \ 45 \ 46 bindings/generic/RuntimeEnabledFeatures.cpp \ 47 \ 48 bindings/v8/ChildThreadDOMData.cpp \ 49 bindings/v8/DateExtension.cpp \ 50 bindings/v8/DOMData.cpp \ 51 bindings/v8/DOMDataStore.cpp \ 52 bindings/v8/DOMWrapperWorld.cpp \ 53 bindings/v8/DerivedSourcesAllInOne.cpp \ 54 bindings/v8/IsolatedWorld.cpp \ 55 bindings/v8/MainThreadDOMData.cpp \ 56 bindings/v8/NPV8Object.cpp \ 57 bindings/v8/ScheduledAction.cpp \ 58 bindings/v8/ScopedDOMDataStore.cpp \ 59 bindings/v8/ScriptArray.cpp \ 60 bindings/v8/ScriptCachedFrameData.cpp \ 61 bindings/v8/ScriptCallFrame.cpp \ 62 bindings/v8/ScriptCallStack.cpp \ 63 bindings/v8/ScriptController.cpp \ 64 bindings/v8/ScriptEventListener.cpp \ 65 bindings/v8/ScriptFunctionCall.cpp \ 66 bindings/v8/ScriptInstance.cpp \ 67 bindings/v8/ScriptObject.cpp \ 68 bindings/v8/ScriptScope.cpp \ 69 bindings/v8/ScriptState.cpp \ 70 bindings/v8/ScriptStringImpl.cpp \ 71 bindings/v8/ScriptValue.cpp \ 72 bindings/v8/SerializedScriptValue.cpp \ 73 bindings/v8/StaticDOMDataStore.cpp \ 74 bindings/v8/V8AbstractEventListener.cpp \ 75 bindings/v8/V8Binding.cpp \ 76 bindings/v8/V8Collection.cpp \ 77 bindings/v8/V8ConsoleMessage.cpp \ 78 bindings/v8/V8DOMMap.cpp \ 79 bindings/v8/V8DOMWindowShell.cpp \ 80 bindings/v8/V8DOMWrapper.cpp \ 81 bindings/v8/V8DataGridDataSource.cpp \ 82 bindings/v8/V8EventListenerList.cpp \ 83 bindings/v8/V8GCController.cpp \ 84 bindings/v8/V8Helpers.cpp \ 85 bindings/v8/V8HiddenPropertyName.cpp \ 86 bindings/v8/V8IsolatedContext.cpp \ 87 bindings/v8/V8Index.cpp \ 88 bindings/v8/V8LazyEventListener.cpp \ 89 bindings/v8/V8NPObject.cpp \ 90 bindings/v8/V8NPUtils.cpp \ 91 bindings/v8/V8NodeFilterCondition.cpp \ 92 bindings/v8/V8Proxy.cpp \ 93 bindings/v8/V8Utilities.cpp \ 94 bindings/v8/V8WorkerContextEventListener.cpp \ 95 bindings/v8/WorkerContextExecutionProxy.cpp \ 96 bindings/v8/WorkerScriptController.cpp \ 97 bindings/v8/WorldContextHandle.cpp \ 98 \ 99 bindings/v8/npruntime.cpp \ 100 \ 101 bindings/v8/custom/V8AbstractWorkerCustom.cpp \ 102 bindings/v8/custom/V8AttrCustom.cpp \ 103 bindings/v8/custom/V8BarInfoCustom.cpp \ 104 bindings/v8/custom/V8CSSRuleCustom.cpp \ 105 bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp \ 106 bindings/v8/custom/V8CSSStyleSheetCustom.cpp \ 107 bindings/v8/custom/V8CSSValueCustom.cpp \ 108 bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp \ 109 bindings/v8/custom/V8CanvasPixelArrayCustom.cpp \ 110 bindings/v8/custom/V8ClipboardCustom.cpp \ 111 bindings/v8/custom/V8CoordinatesCustom.cpp \ 112 bindings/v8/custom/V8CustomApplicationInstalledCallback.cpp \ 113 bindings/v8/custom/V8CustomEventListener.cpp \ 114 bindings/v8/custom/V8CustomPositionCallback.cpp \ 115 bindings/v8/custom/V8CustomPositionErrorCallback.cpp \ 116 bindings/v8/custom/V8CustomSQLStatementCallback.cpp \ 117 bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp \ 118 bindings/v8/custom/V8CustomSQLTransactionCallback.cpp \ 119 bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp \ 120 bindings/v8/custom/V8CustomVoidCallback.cpp \ 121 bindings/v8/custom/V8DOMApplicationCacheCustom.cpp \ 122 bindings/v8/custom/V8DOMSelectionCustom.cpp \ 123 bindings/v8/custom/V8DOMWindowCustom.cpp \ 124 bindings/v8/custom/V8DataGridColumnListCustom.cpp \ 125 bindings/v8/custom/V8DatabaseCustom.cpp \ 126 bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp \ 127 bindings/v8/custom/V8DocumentCustom.cpp \ 128 bindings/v8/custom/V8DocumentLocationCustom.cpp \ 129 bindings/v8/custom/V8ElementCustom.cpp \ 130 bindings/v8/custom/V8EventCustom.cpp \ 131 bindings/v8/custom/V8EventSourceConstructor.cpp \ 132 bindings/v8/custom/V8EventSourceCustom.cpp \ 133 bindings/v8/custom/V8GeolocationCustom.cpp \ 134 bindings/v8/custom/V8HistoryCustom.cpp \ 135 bindings/v8/custom/V8HTMLAllCollectionCustom.cpp \ 136 bindings/v8/custom/V8HTMLAudioElementConstructor.cpp \ 137 bindings/v8/custom/V8HTMLCanvasElementCustom.cpp \ 138 bindings/v8/custom/V8HTMLCollectionCustom.cpp \ 139 bindings/v8/custom/V8HTMLDataGridElementCustom.cpp \ 140 bindings/v8/custom/V8HTMLDocumentCustom.cpp \ 141 bindings/v8/custom/V8HTMLElementCustom.cpp \ 142 bindings/v8/custom/V8HTMLFormElementCustom.cpp \ 143 bindings/v8/custom/V8HTMLFrameElementCustom.cpp \ 144 bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp \ 145 bindings/v8/custom/V8HTMLIFrameElementCustom.cpp \ 146 bindings/v8/custom/V8HTMLImageElementConstructor.cpp \ 147 bindings/v8/custom/V8HTMLInputElementCustom.cpp \ 148 bindings/v8/custom/V8HTMLOptionElementConstructor.cpp \ 149 bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp \ 150 bindings/v8/custom/V8HTMLPlugInElementCustom.cpp \ 151 bindings/v8/custom/V8HTMLSelectElementCustom.cpp \ 152 bindings/v8/custom/V8LocationCustom.cpp \ 153 bindings/v8/custom/V8MessageChannelConstructor.cpp \ 154 bindings/v8/custom/V8MessagePortCustom.cpp \ 155 bindings/v8/custom/V8MessageEventCustom.cpp \ 156 bindings/v8/custom/V8NamedNodeMapCustom.cpp \ 157 bindings/v8/custom/V8NamedNodesCollection.cpp \ 158 bindings/v8/custom/V8NavigatorCustom.cpp \ 159 bindings/v8/custom/V8NodeCustom.cpp \ 160 bindings/v8/custom/V8NodeFilterCustom.cpp \ 161 bindings/v8/custom/V8NodeIteratorCustom.cpp \ 162 bindings/v8/custom/V8NodeListCustom.cpp \ 163 bindings/v8/custom/V8PopStateEventCustom.cpp \ 164 bindings/v8/custom/V8ScreenCustom.cpp \ 165 bindings/v8/custom/V8SQLResultSetRowListCustom.cpp \ 166 bindings/v8/custom/V8SQLTransactionCustom.cpp \ 167 bindings/v8/custom/V8WebSocketCustom.cpp 168 169 ifeq ($(ENABLE_SVG), true) 170 LOCAL_SRC_FILES += \ 171 bindings/v8/custom/V8SVGDocumentCustom.cpp \ 172 bindings/v8/custom/V8SVGElementCustom.cpp \ 173 bindings/v8/custom/V8SVGElementInstanceCustom.cpp \ 174 bindings/v8/custom/V8SVGLengthCustom.cpp \ 175 bindings/v8/custom/V8SVGMatrixCustom.cpp \ 176 bindings/v8/custom/V8SVGPathSegCustom.cpp 177 endif 178 179 LOCAL_SRC_FILES += \ 180 bindings/v8/custom/V8SharedWorkerCustom.cpp \ 181 bindings/v8/custom/V8StorageCustom.cpp \ 182 bindings/v8/custom/V8StyleSheetCustom.cpp \ 183 bindings/v8/custom/V8StyleSheetListCustom.cpp \ 184 bindings/v8/custom/V8TreeWalkerCustom.cpp \ 185 bindings/v8/custom/V8WebKitCSSMatrixConstructor.cpp \ 186 bindings/v8/custom/V8WebKitPointConstructor.cpp \ 187 bindings/v8/custom/V8WorkerContextCustom.cpp \ 188 bindings/v8/custom/V8WorkerCustom.cpp \ 189 bindings/v8/custom/V8XMLHttpRequestConstructor.cpp \ 190 bindings/v8/custom/V8XMLHttpRequestCustom.cpp \ 191 bindings/v8/custom/V8XMLHttpRequestUploadCustom.cpp \ 192 \ 193 bindings/v8/specialization/V8BindingState.cpp 194 195 LOCAL_SRC_FILES += \ 196 bridge/jni/JNIBridge.cpp \ 197 bridge/jni/JNIUtility.cpp \ 198 bridge/jni/v8/JNIBridgeV8.cpp \ 199 bridge/jni/v8/JNIUtilityPrivate.cpp \ 200 bridge/jni/v8/JavaClassV8.cpp \ 201 bridge/jni/v8/JavaInstanceV8.cpp \ 202 bridge/jni/v8/JavaNPObjectV8.cpp 203