Android.v8bindings.mk revision 50eea7a05518cae9a523e4be0b0e86bacee8eef7
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
26LOCAL_CFLAGS += -DWTF_USE_V8=1
27
28BINDING_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	$(WEBCORE_INTERMEDIATES_PATH)/bindings \
40	$(WEBCORE_INTERMEDIATES_PATH)/svg \
41	$(base_intermediates)/Source/JavaScriptCore
42
43LOCAL_SRC_FILES += \
44	bindings/ScriptControllerBase.cpp \
45	\
46	bindings/v8/ChildThreadDOMData.cpp \
47	bindings/v8/DateExtension.cpp \
48	bindings/v8/DOMData.cpp \
49	bindings/v8/DOMDataStore.cpp \
50	bindings/v8/DOMWrapperWorld.cpp \
51	bindings/v8/IDBBindingUtilities.cpp \
52	bindings/v8/IsolatedWorld.cpp \
53	bindings/v8/MainThreadDOMData.cpp \
54	bindings/v8/NPV8Object.cpp \
55	bindings/v8/RetainedDOMInfo.cpp \
56	bindings/v8/ScheduledAction.cpp \
57	bindings/v8/ScopedDOMDataStore.cpp \
58	bindings/v8/ScriptCachedFrameData.cpp \
59	bindings/v8/ScriptCallStackFactory.cpp \
60	bindings/v8/ScriptController.cpp \
61	bindings/v8/ScriptEventListener.cpp \
62	bindings/v8/ScriptFunctionCall.cpp \
63	bindings/v8/ScriptInstance.cpp \
64	bindings/v8/ScriptObject.cpp \
65	bindings/v8/ScriptProfiler.cpp \
66	bindings/v8/ScriptScope.cpp \
67	bindings/v8/ScriptState.cpp \
68	bindings/v8/ScriptValue.cpp \
69	bindings/v8/SerializedScriptValue.cpp \
70	bindings/v8/StaticDOMDataStore.cpp \
71	bindings/v8/V8AbstractEventListener.cpp \
72	bindings/v8/V8Binding.cpp \
73	bindings/v8/V8Collection.cpp \
74	bindings/v8/V8DOMMap.cpp \
75	bindings/v8/V8DOMWindowShell.cpp \
76	bindings/v8/V8DOMWrapper.cpp \
77	bindings/v8/V8DataGridDataSource.cpp \
78	bindings/v8/V8EventListener.cpp \
79	bindings/v8/V8EventListenerList.cpp \
80	bindings/v8/V8GCController.cpp \
81	bindings/v8/V8GCForContextDispose.cpp \
82	bindings/v8/V8Helpers.cpp \
83	bindings/v8/V8HiddenPropertyName.cpp \
84	bindings/v8/V8IsolatedContext.cpp \
85	bindings/v8/V8LazyEventListener.cpp \
86	bindings/v8/V8NPObject.cpp \
87	bindings/v8/V8NPUtils.cpp \
88	bindings/v8/V8NodeFilterCondition.cpp \
89	bindings/v8/V8Proxy.cpp \
90	bindings/v8/V8Utilities.cpp \
91	bindings/v8/V8WindowErrorHandler.cpp \
92	bindings/v8/V8WorkerContextEventListener.cpp \
93	bindings/v8/WorkerContextExecutionProxy.cpp \
94	bindings/v8/WorkerScriptController.cpp \
95	bindings/v8/WorldContextHandle.cpp \
96	\
97	bindings/v8/npruntime.cpp \
98	\
99	bindings/v8/custom/V8ArrayBufferCustom.cpp \
100	bindings/v8/custom/V8CSSRuleCustom.cpp \
101	bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp \
102	bindings/v8/custom/V8CSSStyleSheetCustom.cpp \
103	bindings/v8/custom/V8CSSValueCustom.cpp \
104	bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp \
105	bindings/v8/custom/V8CanvasPixelArrayCustom.cpp \
106	bindings/v8/custom/V8ClipboardCustom.cpp \
107	bindings/v8/custom/V8ConsoleCustom.cpp \
108	bindings/v8/custom/V8CoordinatesCustom.cpp \
109	bindings/v8/custom/V8CustomApplicationInstalledCallback.cpp \
110	bindings/v8/custom/V8CustomPositionCallback.cpp \
111	bindings/v8/custom/V8CustomPositionErrorCallback.cpp \
112	bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp \
113	bindings/v8/custom/V8CustomVoidCallback.cpp \
114	bindings/v8/custom/V8DOMFormDataCustom.cpp \
115	bindings/v8/custom/V8DOMSettableTokenListCustom.cpp \
116	bindings/v8/custom/V8DOMStringMapCustom.cpp \
117	bindings/v8/custom/V8DOMTokenListCustom.cpp \
118	bindings/v8/custom/V8DOMWindowCustom.cpp \
119	bindings/v8/custom/V8DataGridColumnListCustom.cpp \
120	bindings/v8/custom/V8DataViewCustom.cpp \
121	bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp \
122	bindings/v8/custom/V8DeviceMotionEventCustom.cpp \
123	bindings/v8/custom/V8DeviceOrientationEventCustom.cpp \
124	bindings/v8/custom/V8DirectoryEntrySyncCustom.cpp \
125	bindings/v8/custom/V8DocumentCustom.cpp \
126	bindings/v8/custom/V8DocumentLocationCustom.cpp \
127	bindings/v8/custom/V8ElementCustom.cpp \
128	bindings/v8/custom/V8EntrySyncCustom.cpp \
129	bindings/v8/custom/V8EventCustom.cpp \
130	bindings/v8/custom/V8EventSourceConstructor.cpp \
131	bindings/v8/custom/V8FileReaderCustom.cpp \
132	bindings/v8/custom/V8Float32ArrayCustom.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/V8HTMLImageElementConstructor.cpp \
146	bindings/v8/custom/V8HTMLInputElementCustom.cpp \
147	bindings/v8/custom/V8HTMLOptionElementConstructor.cpp \
148	bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp \
149	bindings/v8/custom/V8HTMLOutputElementCustom.cpp \
150	bindings/v8/custom/V8HTMLPlugInElementCustom.cpp \
151	bindings/v8/custom/V8HTMLSelectElementCustom.cpp \
152	bindings/v8/custom/V8ImageDataCustom.cpp \
153	bindings/v8/custom/V8Int16ArrayCustom.cpp \
154	bindings/v8/custom/V8Int32ArrayCustom.cpp \
155	bindings/v8/custom/V8Int8ArrayCustom.cpp \
156	bindings/v8/custom/V8LocationCustom.cpp \
157	bindings/v8/custom/V8MessageChannelConstructor.cpp \
158	bindings/v8/custom/V8MessagePortCustom.cpp \
159	bindings/v8/custom/V8MessageEventCustom.cpp \
160	bindings/v8/custom/V8NamedNodeMapCustom.cpp \
161	bindings/v8/custom/V8NamedNodesCollection.cpp \
162	bindings/v8/custom/V8NavigatorCustom.cpp \
163	bindings/v8/custom/V8NodeCustom.cpp \
164	bindings/v8/custom/V8NodeListCustom.cpp \
165	bindings/v8/custom/V8PopStateEventCustom.cpp \
166	bindings/v8/custom/V8SQLResultSetRowListCustom.cpp \
167	bindings/v8/custom/V8SQLTransactionCustom.cpp \
168	bindings/v8/custom/V8SQLTransactionSyncCustom.cpp \
169	bindings/v8/custom/V8Uint16ArrayCustom.cpp \
170	bindings/v8/custom/V8Uint32ArrayCustom.cpp \
171	bindings/v8/custom/V8Uint8ArrayCustom.cpp \
172	bindings/v8/custom/V8WebKitAnimationCustom.cpp \
173	bindings/v8/custom/V8WebSocketCustom.cpp
174
175ifeq ($(ENABLE_SVG), true)
176LOCAL_SRC_FILES += \
177	bindings/v8/custom/V8SVGDocumentCustom.cpp \
178	bindings/v8/custom/V8SVGElementCustom.cpp \
179	bindings/v8/custom/V8SVGLengthCustom.cpp \
180	bindings/v8/custom/V8SVGPathSegCustom.cpp
181endif
182
183LOCAL_SRC_FILES += \
184	bindings/v8/custom/V8SharedWorkerCustom.cpp \
185	bindings/v8/custom/V8StorageCustom.cpp \
186	bindings/v8/custom/V8StyleSheetCustom.cpp \
187	bindings/v8/custom/V8StyleSheetListCustom.cpp \
188	bindings/v8/custom/V8WebKitCSSMatrixConstructor.cpp \
189	bindings/v8/custom/V8WebKitPointConstructor.cpp \
190	bindings/v8/custom/V8WorkerContextCustom.cpp \
191	bindings/v8/custom/V8WorkerCustom.cpp \
192	bindings/v8/custom/V8XMLHttpRequestConstructor.cpp \
193	bindings/v8/custom/V8XMLHttpRequestCustom.cpp \
194	\
195	bindings/v8/specialization/V8BindingState.cpp
196
197LOCAL_SRC_FILES += \
198	bridge/jni/JNIUtility.cpp \
199	bridge/jni/JavaMethodJobject.cpp \
200	bridge/jni/JobjectWrapper.cpp \
201	bridge/jni/v8/JNIUtilityPrivate.cpp \
202	bridge/jni/v8/JavaClassV8.cpp \
203	bridge/jni/v8/JavaFieldV8.cpp \
204	bridge/jni/v8/JavaInstanceV8.cpp \
205	bridge/jni/v8/JavaNPObjectV8.cpp
206
207# For XPath.
208LOCAL_SRC_FILES += \
209	bindings/v8/custom/V8CustomXPathNSResolver.cpp
210
211# For XSLT.
212LOCAL_SRC_FILES += \
213	bindings/v8/custom/V8XSLTProcessorCustom.cpp
214