~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to Source/WebCore/UseJSC.cmake

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
LIST(APPEND WebCore_INCLUDE_DIRECTORIES
 
2
    "${WEBCORE_DIR}/bindings/js"
 
3
    "${WEBCORE_DIR}/bridge/jsc"
 
4
)
 
5
 
 
6
LIST(APPEND WebCoreTestSupport_INCLUDE_DIRECTORIES
 
7
    "${WEBCORE_DIR}/testing/js"
 
8
)
 
9
 
 
10
LIST(APPEND WebCore_IDL_INCLUDES
 
11
    bindings/js
 
12
)
 
13
 
 
14
IF (PORT MATCHES "BlackBerry")
 
15
    LIST(APPEND WebCore_IDL_INCLUDES
 
16
        testing/js
 
17
    )
 
18
    LIST(APPEND WebCore_IDL_FILES
 
19
        testing/Internals.idl
 
20
        testing/InternalSettings.idl
 
21
    )
 
22
ENDIF ()
 
23
 
 
24
LIST(APPEND WebCore_SOURCES
 
25
    bindings/js/ArrayValue.cpp
 
26
    bindings/js/BindingState.cpp
 
27
    bindings/js/CallbackFunction.cpp
 
28
    bindings/js/DOMObjectHashTableMap.cpp
 
29
    bindings/js/DOMWrapperWorld.cpp
 
30
    bindings/js/Dictionary.cpp
 
31
    bindings/js/GCController.cpp
 
32
    bindings/js/JSArrayBufferCustom.cpp
 
33
    bindings/js/JSAttrCustom.cpp
 
34
    bindings/js/JSBlobCustom.cpp
 
35
    bindings/js/JSCDATASectionCustom.cpp
 
36
    bindings/js/JSDataViewCustom.cpp
 
37
    bindings/js/JSCSSFontFaceRuleCustom.cpp
 
38
    bindings/js/JSCSSImportRuleCustom.cpp
 
39
    bindings/js/JSCSSMediaRuleCustom.cpp
 
40
    bindings/js/JSCSSPageRuleCustom.cpp
 
41
    bindings/js/JSCSSRuleCustom.cpp
 
42
    bindings/js/JSCSSRuleListCustom.cpp
 
43
    bindings/js/JSCSSStyleDeclarationCustom.cpp
 
44
    bindings/js/JSCSSStyleRuleCustom.cpp
 
45
    bindings/js/JSCSSValueCustom.cpp
 
46
    bindings/js/JSCallbackData.cpp
 
47
    bindings/js/JSCanvasRenderingContext2DCustom.cpp
 
48
    bindings/js/JSCanvasRenderingContextCustom.cpp
 
49
    bindings/js/JSClipboardCustom.cpp
 
50
    bindings/js/JSConsoleCustom.cpp
 
51
    bindings/js/JSCoordinatesCustom.cpp
 
52
    bindings/js/JSCustomXPathNSResolver.cpp
 
53
    bindings/js/JSDictionary.cpp
 
54
    bindings/js/JSDOMBinding.cpp
 
55
    bindings/js/JSDOMFormDataCustom.cpp
 
56
    bindings/js/JSDOMGlobalObject.cpp
 
57
    bindings/js/JSDOMImplementationCustom.cpp
 
58
    bindings/js/JSDOMMimeTypeArrayCustom.cpp
 
59
    bindings/js/JSDOMPluginArrayCustom.cpp
 
60
    bindings/js/JSDOMPluginCustom.cpp
 
61
    bindings/js/JSDOMStringListCustom.cpp
 
62
    bindings/js/JSDOMStringMapCustom.cpp
 
63
    bindings/js/JSDOMTokenListCustom.cpp
 
64
    bindings/js/JSDOMWindowBase.cpp
 
65
    bindings/js/JSDOMWindowCustom.cpp
 
66
    bindings/js/JSDOMWindowShell.cpp
 
67
    bindings/js/JSDOMWindowWebAudioCustom.cpp
 
68
    bindings/js/JSDOMWindowWebSocketCustom.cpp
 
69
    bindings/js/JSDOMWrapper.cpp
 
70
    bindings/js/JSDeviceMotionEventCustom.cpp
 
71
    bindings/js/JSDeviceOrientationEventCustom.cpp
 
72
    bindings/js/JSDocumentCustom.cpp
 
73
    bindings/js/JSElementCustom.cpp
 
74
    bindings/js/JSErrorHandler.cpp
 
75
    bindings/js/JSEventCustom.cpp
 
76
    bindings/js/JSEventListener.cpp
 
77
    bindings/js/JSEventTargetCustom.cpp
 
78
    bindings/js/JSExceptionBase.cpp
 
79
    bindings/js/JSGeolocationCustom.cpp
 
80
    bindings/js/JSHTMLAllCollectionCustom.cpp
 
81
    bindings/js/JSHTMLAppletElementCustom.cpp
 
82
    bindings/js/JSHTMLCanvasElementCustom.cpp
 
83
    bindings/js/JSHTMLCollectionCustom.cpp
 
84
    bindings/js/JSHTMLDocumentCustom.cpp
 
85
    bindings/js/JSHTMLElementCustom.cpp
 
86
    bindings/js/JSHTMLEmbedElementCustom.cpp
 
87
    bindings/js/JSHTMLFormControlsCollectionCustom.cpp
 
88
    bindings/js/JSHTMLFormElementCustom.cpp
 
89
    bindings/js/JSHTMLFrameElementCustom.cpp
 
90
    bindings/js/JSHTMLFrameSetElementCustom.cpp
 
91
    bindings/js/JSHTMLInputElementCustom.cpp
 
92
    bindings/js/JSHTMLLinkElementCustom.cpp
 
93
    bindings/js/JSHTMLMediaElementCustom.cpp
 
94
    bindings/js/JSHTMLObjectElementCustom.cpp
 
95
    bindings/js/JSHTMLOptionsCollectionCustom.cpp
 
96
    bindings/js/JSHTMLOutputElementCustom.cpp
 
97
    bindings/js/JSHTMLSelectElementCustom.cpp
 
98
    bindings/js/JSHTMLStyleElementCustom.cpp
 
99
    bindings/js/JSHistoryCustom.cpp
 
100
    bindings/js/JSImageConstructor.cpp
 
101
    bindings/js/JSImageDataCustom.cpp
 
102
    bindings/js/JSInjectedScriptHostCustom.cpp
 
103
    bindings/js/JSInjectedScriptManager.cpp
 
104
    bindings/js/JSInspectorFrontendHostCustom.cpp
 
105
    bindings/js/JSJavaScriptCallFrameCustom.cpp
 
106
    bindings/js/JSLazyEventListener.cpp
 
107
    bindings/js/JSLocationCustom.cpp
 
108
    bindings/js/JSMainThreadExecState.cpp
 
109
    bindings/js/JSMediaListCustom.cpp
 
110
    bindings/js/JSMemoryInfoCustom.cpp
 
111
    bindings/js/JSMessageChannelCustom.cpp
 
112
    bindings/js/JSMessageEventCustom.cpp
 
113
    bindings/js/JSMessagePortCustom.cpp
 
114
    bindings/js/JSMicroDataItemValueCustom.cpp
 
115
    bindings/js/JSMutationCallbackCustom.cpp
 
116
    bindings/js/JSMutationObserverCustom.cpp
 
117
    bindings/js/JSNamedNodeMapCustom.cpp
 
118
    bindings/js/JSNodeCustom.cpp
 
119
    bindings/js/JSNodeFilterCondition.cpp
 
120
    bindings/js/JSNodeFilterCustom.cpp
 
121
    bindings/js/JSNodeIteratorCustom.cpp
 
122
    bindings/js/JSNodeListCustom.cpp
 
123
    bindings/js/JSNotificationCustom.cpp
 
124
    bindings/js/JSPluginElementFunctions.cpp
 
125
    bindings/js/JSPopStateEventCustom.cpp
 
126
    bindings/js/JSProcessingInstructionCustom.cpp
 
127
    bindings/js/JSStorageCustom.cpp
 
128
    bindings/js/JSStyleSheetCustom.cpp
 
129
    bindings/js/JSStyleSheetListCustom.cpp
 
130
    bindings/js/JSTextCustom.cpp
 
131
    bindings/js/JSTouchCustom.cpp
 
132
    bindings/js/JSTouchListCustom.cpp
 
133
    bindings/js/JSTreeWalkerCustom.cpp
 
134
    bindings/js/JSWebKitAnimationCustom.cpp
 
135
    bindings/js/JSWebKitAnimationListCustom.cpp
 
136
    bindings/js/JSWebKitCSSKeyframeRuleCustom.cpp
 
137
    bindings/js/JSWebKitCSSKeyframesRuleCustom.cpp
 
138
    bindings/js/JSWebKitPointCustom.cpp
 
139
    bindings/js/JSXMLHttpRequestCustom.cpp
 
140
    bindings/js/JSXMLHttpRequestUploadCustom.cpp
 
141
    bindings/js/JSXPathResultCustom.cpp
 
142
    bindings/js/JSXSLTProcessorCustom.cpp
 
143
    bindings/js/JavaScriptCallFrame.cpp
 
144
    bindings/js/PageScriptDebugServer.cpp
 
145
    bindings/js/ScheduledAction.cpp
 
146
    bindings/js/ScriptCachedFrameData.cpp
 
147
    bindings/js/ScriptCallStackFactory.cpp
 
148
    bindings/js/ScriptController.cpp
 
149
    bindings/js/ScriptDebugServer.cpp
 
150
    bindings/js/ScriptEventListener.cpp
 
151
    bindings/js/ScriptFunctionCall.cpp
 
152
    bindings/js/ScriptGCEvent.cpp
 
153
    bindings/js/ScriptObject.cpp
 
154
    bindings/js/ScriptProfile.cpp
 
155
    bindings/js/ScriptProfiler.cpp
 
156
    bindings/js/ScriptState.cpp
 
157
    bindings/js/ScriptValue.cpp
 
158
    bindings/js/SerializedScriptValue.cpp
 
159
 
 
160
    bridge/IdentifierRep.cpp
 
161
    bridge/NP_jsobject.cpp
 
162
    bridge/npruntime.cpp
 
163
    bridge/runtime_array.cpp
 
164
    bridge/runtime_method.cpp
 
165
    bridge/runtime_object.cpp
 
166
    bridge/runtime_root.cpp
 
167
 
 
168
    bridge/c/CRuntimeObject.cpp
 
169
    bridge/c/c_class.cpp
 
170
    bridge/c/c_instance.cpp
 
171
    bridge/c/c_runtime.cpp
 
172
    bridge/c/c_utility.cpp
 
173
 
 
174
    bridge/jsc/BridgeJSC.cpp
 
175
)
 
176
 
 
177
LIST(APPEND WebCoreTestSupport_SOURCES
 
178
    testing/js/WebCoreTestSupport.cpp
 
179
)
 
180
 
 
181
IF (ENABLE_BLOB)
 
182
    LIST(APPEND WebCore_SOURCES
 
183
        bindings/js/JSFileReaderCustom.cpp
 
184
    )
 
185
ENDIF ()
 
186
 
 
187
IF (ENABLE_REQUEST_ANIMATION_FRAME)
 
188
    LIST(APPEND WebCore_SOURCES
 
189
        bindings/js/JSRequestAnimationFrameCallbackCustom.cpp
 
190
    )
 
191
ENDIF ()
 
192
 
 
193
IF (ENABLE_SQL_DATABASE)
 
194
    LIST(APPEND WebCore_SOURCES
 
195
        bindings/js/JSCustomSQLStatementErrorCallback.cpp
 
196
        bindings/js/JSSQLResultSetRowListCustom.cpp
 
197
        bindings/js/JSSQLTransactionCustom.cpp
 
198
        bindings/js/JSSQLTransactionSyncCustom.cpp
 
199
    )
 
200
ENDIF ()
 
201
 
 
202
IF (ENABLE_INDEXED_DATABASE)
 
203
    LIST(APPEND WebCore_SOURCES
 
204
        bindings/js/IDBBindingUtilities.cpp
 
205
        bindings/js/JSIDBAnyCustom.cpp
 
206
        bindings/js/JSIDBKeyCustom.cpp
 
207
        bindings/js/JSIDBVersionChangeRequestCustom.cpp
 
208
    )
 
209
ENDIF ()
 
210
 
 
211
IF (ENABLE_WEB_SOCKETS)
 
212
    LIST(APPEND WebCore_SOURCES
 
213
        bindings/js/JSWebSocketCustom.cpp
 
214
    )
 
215
ENDIF ()
 
216
 
 
217
IF (ENABLE_WORKERS)
 
218
    LIST(APPEND WebCore_SOURCES
 
219
        bindings/js/JSDedicatedWorkerContextCustom.cpp
 
220
        bindings/js/JSWorkerContextBase.cpp
 
221
        bindings/js/JSWorkerContextCustom.cpp
 
222
        bindings/js/JSWorkerCustom.cpp
 
223
        bindings/js/WorkerScriptController.cpp
 
224
        bindings/js/WorkerScriptDebugServer.cpp
 
225
    )
 
226
ENDIF ()
 
227
 
 
228
IF (ENABLE_VIDEO_TRACK)
 
229
    LIST(APPEND WebCore_SOURCES
 
230
        bindings/js/JSTextTrackCueCustom.cpp
 
231
        bindings/js/JSTextTrackCustom.cpp
 
232
        bindings/js/JSTextTrackListCustom.cpp
 
233
        bindings/js/JSTrackCustom.cpp
 
234
        bindings/js/JSTrackEventCustom.cpp
 
235
    )
 
236
ENDIF ()
 
237
 
 
238
IF (ENABLE_SHARED_WORKERS)
 
239
    LIST(APPEND WebCore_SOURCES
 
240
        bindings/js/JSSharedWorkerCustom.cpp
 
241
    )
 
242
ENDIF ()
 
243
 
 
244
IF (ENABLE_NOTIFICATIONS)
 
245
    LIST(APPEND WebCore_SOURCES
 
246
        bindings/js/JSDesktopNotificationsCustom.cpp
 
247
        bindings/js/JSNotificationCustom.cpp
 
248
    )
 
249
ENDIF ()
 
250
 
 
251
if (ENABLE_FILE_SYSTEM)
 
252
    LIST(APPEND WebCore_SOURCES
 
253
        bindings/js/JSEntryCustom.cpp
 
254
        bindings/js/JSEntrySyncCustom.cpp
 
255
    )
 
256
ENDIF ()
 
257
 
 
258
IF (ENABLE_SVG)
 
259
    LIST(APPEND WebCore_SOURCES
 
260
        bindings/js/JSSVGElementInstanceCustom.cpp
 
261
        bindings/js/JSSVGLengthCustom.cpp
 
262
        bindings/js/JSSVGPathSegCustom.cpp
 
263
    )
 
264
ENDIF ()
 
265
 
 
266
IF (ENABLE_WEBGL)
 
267
    LIST(APPEND WebCore_SOURCES
 
268
        bindings/js/JSWebGLRenderingContextCustom.cpp
 
269
    )
 
270
ENDIF ()
 
271
 
 
272
IF (ENABLE_WEB_AUDIO)
 
273
    LIST(APPEND WebCore_SOURCES
 
274
        bindings/js/JSAudioBufferSourceNodeCustom.cpp
 
275
        bindings/js/JSAudioContextCustom.cpp
 
276
        bindings/js/JSScriptProcessorNodeCustom.cpp
 
277
    )
 
278
ENDIF ()
 
279
 
 
280
IF (ENABLE_WEB_INTENTS)
 
281
    LIST (APPEND WebCore_SOURCES
 
282
        bindings/js/JSIntentConstructor.cpp
 
283
    )
 
284
ENDIF ()
 
285
 
 
286
LIST(APPEND SCRIPTS_BINDINGS
 
287
    ${WEBCORE_DIR}/bindings/scripts/CodeGenerator.pm
 
288
    ${WEBCORE_DIR}/bindings/scripts/CodeGeneratorJS.pm
 
289
)
 
290
 
 
291
SET(IDL_INCLUDES "")
 
292
FOREACH (_include ${WebCore_IDL_INCLUDES})
 
293
    LIST(APPEND IDL_INCLUDES --include=${WEBCORE_DIR}/${_include})
 
294
ENDFOREACH ()
 
295
 
 
296
FOREACH (_include ${WebCoreTestSupport_IDL_INCLUDES})
 
297
    LIST(APPEND IDL_INCLUDES --include=${WEBCORE_DIR}/${_include})
 
298
ENDFOREACH ()
 
299
 
 
300
SET(FEATURE_DEFINES_JAVASCRIPT "LANGUAGE_JAVASCRIPT=1 ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}")
 
301
 
 
302
# Create JavaScript C++ code given an IDL input
 
303
FOREACH (_idl ${WebCore_IDL_FILES})
 
304
    SET(IDL_FILES_LIST "${IDL_FILES_LIST}${WEBCORE_DIR}/${_idl}\n")
 
305
ENDFOREACH ()
 
306
 
 
307
FOREACH (_idl ${WebCoreTestSupport_IDL_FILES})
 
308
    SET(IDL_FILES_LIST "${IDL_FILES_LIST}${WEBCORE_DIR}/${_idl}\n")
 
309
ENDFOREACH ()
 
310
 
 
311
FILE(WRITE ${IDL_FILES_TMP} ${IDL_FILES_LIST})
 
312
 
 
313
ADD_CUSTOM_COMMAND(
 
314
    OUTPUT ${SUPPLEMENTAL_DEPENDENCY_FILE}
 
315
    DEPENDS ${WEBCORE_DIR}/bindings/scripts/preprocess-idls.pl ${SCRIPTS_PREPROCESS_IDLS} ${WebCore_IDL_FILES} ${WebCoreTestSupport_IDL_FILES} ${IDL_ATTRIBUTES_FILE}
 
316
    COMMAND ${PERL_EXECUTABLE} -I${WEBCORE_DIR}/bindings/scripts ${WEBCORE_DIR}/bindings/scripts/preprocess-idls.pl --defines "${FEATURE_DEFINES_JAVASCRIPT}" --idlFilesList ${IDL_FILES_TMP} --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" --supplementalDependencyFile ${SUPPLEMENTAL_DEPENDENCY_FILE} --idlAttributesFile ${IDL_ATTRIBUTES_FILE}
 
317
    VERBATIM)
 
318
 
 
319
GENERATE_BINDINGS(WebCore_SOURCES
 
320
    "${WebCore_IDL_FILES}"
 
321
    "${WEBCORE_DIR}"
 
322
    "${IDL_INCLUDES}"
 
323
    "${FEATURE_DEFINES_JAVASCRIPT}"
 
324
    ${DERIVED_SOURCES_WEBCORE_DIR} JS JS
 
325
    ${SUPPLEMENTAL_DEPENDENCY_FILE})
 
326
 
 
327
GENERATE_BINDINGS(WebCoreTestSupport_SOURCES
 
328
    "${WebCoreTestSupport_IDL_FILES}"
 
329
    "${WEBCORE_DIR}"
 
330
    "${IDL_INCLUDES}"
 
331
    "${FEATURE_DEFINES_JAVASCRIPT}"
 
332
    ${DERIVED_SOURCES_WEBCORE_DIR} JS JS
 
333
    ${SUPPLEMENTAL_DEPENDENCY_FILE})