1 2 ## 3 ## Copyright 2009, The Android Open Source Project 4 ## 5 ## Redistribution and use in source and binary forms, with or without 6 ## modification, are permitted provided that the following conditions 7 ## are met: 8 ## * Redistributions of source code must retain the above copyright 9 ## notice, this list of conditions and the following disclaimer. 10 ## * Redistributions in binary form must reproduce the above copyright 11 ## notice, this list of conditions and the following disclaimer in the 12 ## documentation and/or other materials provided with the distribution. 13 ## 14 ## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY 15 ## EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 ## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 17 ## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 18 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 19 ## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 20 ## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 21 ## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 22 ## OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 ## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 ## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 ## 26 27 # lookup tables for old-style JavaScript bindings 28 create_hash_table := $(LOCAL_PATH)/../JavaScriptCore/create_hash_table 29 30 GEN := $(addprefix $(intermediates)/, \ 31 bindings/js/JSDOMWindowBase.lut.h \ 32 ) 33 $(GEN): PRIVATE_CUSTOM_TOOL = perl $(create_hash_table) $< > $@ 34 $(GEN): $(intermediates)/bindings/js/%.lut.h: $(LOCAL_PATH)/bindings/js/%.cpp $(create_hash_table) 35 $(transform-generated-source) 36 LOCAL_GENERATED_SOURCES += $(GEN) 37 38 39 GEN := $(intermediates)/bindings/js/JSHTMLInputElementBaseTable.cpp 40 $(GEN): PRIVATE_CUSTOM_TOOL = perl $(create_hash_table) $< > $@ 41 $(GEN): $(intermediates)/bindings/js/%Table.cpp: $(LOCAL_PATH)/bindings/js/%.cpp $(create_hash_table) 42 $(transform-generated-source) 43 $(intermediates)/bindings/js/JSHTMLInputElementBase.o : $(GEN) 44 45 # lookup tables for old-style JavaScript bindings 46 js_binding_scripts := $(addprefix $(LOCAL_PATH)/,\ 47 bindings/scripts/CodeGenerator.pm \ 48 bindings/scripts/IDLParser.pm \ 49 bindings/scripts/IDLStructure.pm \ 50 bindings/scripts/generate-bindings.pl \ 51 ) 52 53 FEATURE_DEFINES := ENABLE_ORIENTATION_EVENTS=1 ENABLE_TOUCH_EVENTS=1 ENABLE_DATABASE=1 ENABLE_OFFLINE_WEB_APPLICATIONS=1 ENABLE_DOM_STORAGE=1 ENABLE_VIDEO=1 ENABLE_GEOLOCATION=1 ENABLE_CONNECTION=1 ENABLE_APPLICATION_INSTALLED=1 ENABLE_XPATH=1 ENABLE_XSLT=1 ENABLE_DEVICE_ORIENTATION=1 ENABLE_FILE_READER=1 ENABLE_BLOB=1 ENABLE_WEB_TIMING=1 54 55 ifeq ($(ENABLE_SVG), true) 56 FEATURE_DEFINES += ENABLE_SVG=1 57 endif 58 59 # CSS 60 GEN := \ 61 $(intermediates)/css/JSCSSCharsetRule.h \ 62 $(intermediates)/css/JSCSSFontFaceRule.h \ 63 $(intermediates)/css/JSCSSImportRule.h \ 64 $(intermediates)/css/JSCSSMediaRule.h \ 65 $(intermediates)/css/JSCSSPageRule.h \ 66 $(intermediates)/css/JSCSSPrimitiveValue.h \ 67 $(intermediates)/css/JSCSSRule.h \ 68 $(intermediates)/css/JSCSSRuleList.h \ 69 $(intermediates)/css/JSCSSStyleDeclaration.h \ 70 $(intermediates)/css/JSCSSStyleRule.h \ 71 $(intermediates)/css/JSCSSStyleSheet.h \ 72 $(intermediates)/css/JSCSSValue.h \ 73 $(intermediates)/css/JSCSSValueList.h \ 74 $(intermediates)/css/JSCounter.h \ 75 $(intermediates)/css/JSMediaList.h \ 76 $(intermediates)/css/JSMediaQueryList.h \ 77 $(intermediates)/css/JSRGBColor.h \ 78 $(intermediates)/css/JSRect.h \ 79 $(intermediates)/css/JSStyleMedia.h \ 80 $(intermediates)/css/JSStyleSheet.h \ 81 $(intermediates)/css/JSStyleSheetList.h \ 82 $(intermediates)/css/JSWebKitCSSKeyframeRule.h \ 83 $(intermediates)/css/JSWebKitCSSKeyframesRule.h \ 84 $(intermediates)/css/JSWebKitCSSMatrix.h \ 85 $(intermediates)/css/JSWebKitCSSTransformValue.h 86 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 87 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $< 88 $(GEN): $(intermediates)/css/JS%.h : $(LOCAL_PATH)/css/%.idl $(js_binding_scripts) 89 $(transform-generated-source) 90 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 91 92 93 # We also need the .cpp files, which are generated as side effects of the 94 # above rules. Specifying this explicitly makes -j2 work. 95 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/css/%.cpp : $(intermediates)/css/%.h 96 97 # DOM 98 GEN := \ 99 $(intermediates)/dom/JSAttr.h \ 100 $(intermediates)/dom/JSBeforeLoadEvent.h \ 101 $(intermediates)/dom/JSCDATASection.h \ 102 $(intermediates)/dom/JSCharacterData.h \ 103 $(intermediates)/dom/JSClientRect.h \ 104 $(intermediates)/dom/JSClientRectList.h \ 105 $(intermediates)/dom/JSClipboard.h \ 106 $(intermediates)/dom/JSComment.h \ 107 $(intermediates)/dom/JSCustomEvent.h \ 108 $(intermediates)/dom/JSCompositionEvent.h \ 109 $(intermediates)/dom/JSDOMCoreException.h \ 110 $(intermediates)/dom/JSDOMImplementation.h \ 111 $(intermediates)/dom/JSDOMStringList.h \ 112 $(intermediates)/dom/JSDOMStringMap.h \ 113 $(intermediates)/dom/JSDataTransferItems.h \ 114 $(intermediates)/dom/JSDeviceMotionEvent.h \ 115 $(intermediates)/dom/JSDeviceOrientationEvent.h \ 116 $(intermediates)/dom/JSDocument.h \ 117 $(intermediates)/dom/JSDocumentFragment.h \ 118 $(intermediates)/dom/JSDocumentType.h \ 119 $(intermediates)/dom/JSElement.h \ 120 $(intermediates)/dom/JSEntity.h \ 121 $(intermediates)/dom/JSEntityReference.h \ 122 $(intermediates)/dom/JSErrorEvent.h \ 123 $(intermediates)/dom/JSEvent.h \ 124 $(intermediates)/dom/JSEventException.h \ 125 $(intermediates)/dom/JSHashChangeEvent.h \ 126 $(intermediates)/dom/JSKeyboardEvent.h \ 127 $(intermediates)/dom/JSMessageChannel.h \ 128 $(intermediates)/dom/JSMessageEvent.h \ 129 $(intermediates)/dom/JSMessagePort.h \ 130 $(intermediates)/dom/JSMouseEvent.h \ 131 $(intermediates)/dom/JSMutationEvent.h \ 132 $(intermediates)/dom/JSNamedNodeMap.h \ 133 $(intermediates)/dom/JSNode.h \ 134 $(intermediates)/dom/JSNodeFilter.h \ 135 $(intermediates)/dom/JSNodeIterator.h \ 136 $(intermediates)/dom/JSNodeList.h \ 137 $(intermediates)/dom/JSNotation.h \ 138 $(intermediates)/dom/JSOverflowEvent.h \ 139 $(intermediates)/dom/JSPageTransitionEvent.h \ 140 $(intermediates)/dom/JSPopStateEvent.h \ 141 $(intermediates)/dom/JSProcessingInstruction.h \ 142 $(intermediates)/dom/JSProgressEvent.h \ 143 $(intermediates)/dom/JSRange.h \ 144 $(intermediates)/dom/JSRangeException.h \ 145 $(intermediates)/dom/JSText.h \ 146 $(intermediates)/dom/JSTextEvent.h \ 147 $(intermediates)/dom/JSTouch.h \ 148 $(intermediates)/dom/JSTouchEvent.h \ 149 $(intermediates)/dom/JSTouchList.h \ 150 $(intermediates)/dom/JSTreeWalker.h \ 151 $(intermediates)/dom/JSUIEvent.h \ 152 $(intermediates)/dom/JSWebKitAnimationEvent.h \ 153 $(intermediates)/dom/JSWebKitTransitionEvent.h \ 154 $(intermediates)/dom/JSWheelEvent.h 155 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 156 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $< 157 $(GEN): $(intermediates)/dom/JS%.h : $(LOCAL_PATH)/dom/%.idl $(js_binding_scripts) 158 $(transform-generated-source) 159 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 160 161 # We also need the .cpp files, which are generated as side effects of the 162 # above rules. Specifying this explicitly makes -j2 work. 163 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/dom/%.cpp : $(intermediates)/dom/%.h 164 165 # Fileapi 166 GEN := \ 167 $(intermediates)/fileapi/JSBlob.h \ 168 $(intermediates)/fileapi/JSDOMFileSystem.h \ 169 $(intermediates)/fileapi/JSDOMFileSystemSync.h \ 170 $(intermediates)/fileapi/JSDirectoryEntry.h \ 171 $(intermediates)/fileapi/JSDirectoryEntrySync.h \ 172 $(intermediates)/fileapi/JSDirectoryReader.h \ 173 $(intermediates)/fileapi/JSDirectoryReaderSync.h \ 174 $(intermediates)/fileapi/JSEntriesCallback.h \ 175 $(intermediates)/fileapi/JSEntry.h \ 176 $(intermediates)/fileapi/JSEntryArray.h \ 177 $(intermediates)/fileapi/JSEntryArraySync.h \ 178 $(intermediates)/fileapi/JSEntryCallback.h \ 179 $(intermediates)/fileapi/JSEntrySync.h \ 180 $(intermediates)/fileapi/JSErrorCallback.h \ 181 $(intermediates)/fileapi/JSFile.h \ 182 $(intermediates)/fileapi/JSFileCallback.h \ 183 $(intermediates)/fileapi/JSFileEntry.h \ 184 $(intermediates)/fileapi/JSFileEntrySync.h \ 185 $(intermediates)/fileapi/JSFileError.h \ 186 $(intermediates)/fileapi/JSFileException.h \ 187 $(intermediates)/fileapi/JSFileList.h \ 188 $(intermediates)/fileapi/JSFileReader.h \ 189 $(intermediates)/fileapi/JSFileReaderSync.h \ 190 $(intermediates)/fileapi/JSFileSystemCallback.h \ 191 $(intermediates)/fileapi/JSFileWriter.h \ 192 $(intermediates)/fileapi/JSFileWriterCallback.h \ 193 $(intermediates)/fileapi/JSMetadata.h \ 194 $(intermediates)/fileapi/JSMetadataCallback.h \ 195 $(intermediates)/fileapi/JSWebKitBlobBuilder.h \ 196 $(intermediates)/fileapi/JSWebKitFlags.h 197 198 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 199 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --include fileapi --outputdir $(dir $@) $< 200 $(GEN): $(intermediates)/fileapi/JS%.h : $(LOCAL_PATH)/fileapi/%.idl $(js_binding_scripts) 201 $(transform-generated-source) 202 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 203 204 # We also need the .cpp files, which are generated as side effects of the 205 # above rules. Specifying this explicitly makes -j2 work. 206 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/fileapi/%.cpp : $(intermediates)/fileapi/%.h 207 208 # HTML 209 GEN := \ 210 $(intermediates)/html/JSDOMFormData.h \ 211 $(intermediates)/html/JSDOMSettableTokenList.h \ 212 $(intermediates)/html/JSDOMTokenList.h \ 213 $(intermediates)/html/JSDOMURL.h \ 214 $(intermediates)/html/JSDataGridColumn.h \ 215 $(intermediates)/html/JSDataGridColumnList.h \ 216 $(intermediates)/html/JSHTMLAllCollection.h \ 217 $(intermediates)/html/JSHTMLAnchorElement.h \ 218 $(intermediates)/html/JSHTMLAppletElement.h \ 219 $(intermediates)/html/JSHTMLAreaElement.h \ 220 $(intermediates)/html/JSHTMLAudioElement.h \ 221 $(intermediates)/html/JSHTMLBRElement.h \ 222 $(intermediates)/html/JSHTMLBaseElement.h \ 223 $(intermediates)/html/JSHTMLBaseFontElement.h \ 224 $(intermediates)/html/JSHTMLBlockquoteElement.h \ 225 $(intermediates)/html/JSHTMLBodyElement.h \ 226 $(intermediates)/html/JSHTMLButtonElement.h \ 227 $(intermediates)/html/JSHTMLCanvasElement.h \ 228 $(intermediates)/html/JSHTMLCollection.h \ 229 $(intermediates)/html/JSHTMLDataGridElement.h \ 230 $(intermediates)/html/JSHTMLDataGridCellElement.h \ 231 $(intermediates)/html/JSHTMLDataGridColElement.h \ 232 $(intermediates)/html/JSHTMLDataGridRowElement.h \ 233 $(intermediates)/html/JSHTMLDataListElement.h \ 234 $(intermediates)/html/JSHTMLDetailsElement.h \ 235 $(intermediates)/html/JSHTMLDListElement.h \ 236 $(intermediates)/html/JSHTMLDirectoryElement.h \ 237 $(intermediates)/html/JSHTMLDivElement.h \ 238 $(intermediates)/html/JSHTMLDocument.h \ 239 $(intermediates)/html/JSHTMLElement.h \ 240 $(intermediates)/html/JSHTMLEmbedElement.h \ 241 $(intermediates)/html/JSHTMLFieldSetElement.h \ 242 $(intermediates)/html/JSHTMLFontElement.h \ 243 $(intermediates)/html/JSHTMLFormElement.h \ 244 $(intermediates)/html/JSHTMLFrameElement.h \ 245 $(intermediates)/html/JSHTMLFrameSetElement.h \ 246 $(intermediates)/html/JSHTMLHRElement.h \ 247 $(intermediates)/html/JSHTMLHeadElement.h \ 248 $(intermediates)/html/JSHTMLHeadingElement.h \ 249 $(intermediates)/html/JSHTMLHtmlElement.h \ 250 $(intermediates)/html/JSHTMLIFrameElement.h \ 251 $(intermediates)/html/JSHTMLImageElement.h \ 252 $(intermediates)/html/JSHTMLInputElement.h \ 253 $(intermediates)/html/JSHTMLIsIndexElement.h \ 254 $(intermediates)/html/JSHTMLKeygenElement.h \ 255 $(intermediates)/html/JSHTMLLIElement.h \ 256 $(intermediates)/html/JSHTMLLabelElement.h \ 257 $(intermediates)/html/JSHTMLLegendElement.h \ 258 $(intermediates)/html/JSHTMLLinkElement.h \ 259 $(intermediates)/html/JSHTMLMapElement.h \ 260 $(intermediates)/html/JSHTMLMarqueeElement.h \ 261 $(intermediates)/html/JSHTMLMediaElement.h \ 262 $(intermediates)/html/JSHTMLMenuElement.h \ 263 $(intermediates)/html/JSHTMLMetaElement.h \ 264 $(intermediates)/html/JSHTMLMeterElement.h \ 265 $(intermediates)/html/JSHTMLModElement.h \ 266 $(intermediates)/html/JSHTMLOListElement.h \ 267 $(intermediates)/html/JSHTMLObjectElement.h \ 268 $(intermediates)/html/JSHTMLOptGroupElement.h \ 269 $(intermediates)/html/JSHTMLOptionElement.h \ 270 $(intermediates)/html/JSHTMLOptionsCollection.h \ 271 $(intermediates)/html/JSHTMLOutputElement.h \ 272 $(intermediates)/html/JSHTMLParagraphElement.h \ 273 $(intermediates)/html/JSHTMLParamElement.h \ 274 $(intermediates)/html/JSHTMLPreElement.h \ 275 $(intermediates)/html/JSHTMLProgressElement.h \ 276 $(intermediates)/html/JSHTMLQuoteElement.h \ 277 $(intermediates)/html/JSHTMLScriptElement.h \ 278 $(intermediates)/html/JSHTMLSelectElement.h \ 279 $(intermediates)/html/JSHTMLSourceElement.h \ 280 $(intermediates)/html/JSHTMLStyleElement.h \ 281 $(intermediates)/html/JSHTMLTableCaptionElement.h \ 282 $(intermediates)/html/JSHTMLTableCellElement.h \ 283 $(intermediates)/html/JSHTMLTableColElement.h \ 284 $(intermediates)/html/JSHTMLTableElement.h \ 285 $(intermediates)/html/JSHTMLTableRowElement.h \ 286 $(intermediates)/html/JSHTMLTableSectionElement.h \ 287 $(intermediates)/html/JSHTMLTextAreaElement.h \ 288 $(intermediates)/html/JSHTMLTitleElement.h \ 289 $(intermediates)/html/JSHTMLUListElement.h \ 290 $(intermediates)/html/JSHTMLVideoElement.h \ 291 $(intermediates)/html/JSImageData.h \ 292 $(intermediates)/html/JSMediaError.h \ 293 $(intermediates)/html/JSTextMetrics.h \ 294 $(intermediates)/html/JSTimeRanges.h \ 295 $(intermediates)/html/JSValidityState.h \ 296 $(intermediates)/html/JSVoidCallback.h 297 298 299 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 300 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $< 301 $(GEN): $(intermediates)/html/JS%.h : $(LOCAL_PATH)/html/%.idl $(js_binding_scripts) 302 $(transform-generated-source) 303 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 304 305 # We also need the .cpp files, which are generated as side effects of the 306 # above rules. Specifying this explicitly makes -j2 work. 307 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/html/%.cpp : $(intermediates)/html/%.h 308 309 # Canvas 310 GEN := \ 311 $(intermediates)/html/canvas/JSArrayBuffer.h \ 312 $(intermediates)/html/canvas/JSArrayBufferView.h \ 313 $(intermediates)/html/canvas/JSCanvasGradient.h \ 314 $(intermediates)/html/canvas/JSCanvasPattern.h \ 315 $(intermediates)/html/canvas/JSCanvasRenderingContext.h \ 316 $(intermediates)/html/canvas/JSCanvasRenderingContext2D.h \ 317 $(intermediates)/html/canvas/JSDataView.h \ 318 $(intermediates)/html/canvas/JSFloat32Array.h \ 319 $(intermediates)/html/canvas/JSInt8Array.h \ 320 $(intermediates)/html/canvas/JSInt16Array.h \ 321 $(intermediates)/html/canvas/JSInt32Array.h \ 322 $(intermediates)/html/canvas/JSOESTextureFloat.h \ 323 $(intermediates)/html/canvas/JSOESVertexArrayObject.h \ 324 $(intermediates)/html/canvas/JSUint8Array.h \ 325 $(intermediates)/html/canvas/JSUint16Array.h \ 326 $(intermediates)/html/canvas/JSUint32Array.h \ 327 $(intermediates)/html/canvas/JSWebGLActiveInfo.h \ 328 $(intermediates)/html/canvas/JSWebGLBuffer.h \ 329 $(intermediates)/html/canvas/JSWebGLFramebuffer.h \ 330 $(intermediates)/html/canvas/JSWebGLProgram.h \ 331 $(intermediates)/html/canvas/JSWebGLRenderbuffer.h \ 332 $(intermediates)/html/canvas/JSWebGLRenderingContext.h \ 333 $(intermediates)/html/canvas/JSWebGLShader.h \ 334 $(intermediates)/html/canvas/JSWebGLTexture.h \ 335 $(intermediates)/html/canvas/JSWebGLUniformLocation.h \ 336 $(intermediates)/html/canvas/JSWebGLVertexArrayObjectOES.h 337 338 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 339 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $< 340 $(GEN): $(intermediates)/html/canvas/JS%.h : $(LOCAL_PATH)/html/canvas/%.idl $(js_binding_scripts) 341 $(transform-generated-source) 342 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 343 344 # We also need the .cpp files, which are generated as side effects of the 345 # above rules. Specifying this explicitly makes -j2 work. 346 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/html/canvas/%.cpp : $(intermediates)/html/canvas/%.h 347 348 # Appcache 349 GEN := \ 350 $(intermediates)/loader/appcache/JSDOMApplicationCache.h 351 352 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 353 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $< 354 $(GEN): $(intermediates)/loader/appcache/JS%.h : $(LOCAL_PATH)/loader/appcache/%.idl $(js_binding_scripts) 355 $(transform-generated-source) 356 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 357 358 # We also need the .cpp files, which are generated as side effects of the 359 # above rules. Specifying this explicitly makes -j2 work. 360 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/loader/appcache/%.cpp : $(intermediates)/loader/appcache/%.h 361 362 # page 363 GEN := \ 364 $(intermediates)/page/JSBarInfo.h \ 365 $(intermediates)/page/JSConnection.h \ 366 $(intermediates)/page/JSConsole.h \ 367 $(intermediates)/page/JSCoordinates.h \ 368 $(intermediates)/page/JSCrypto.h \ 369 $(intermediates)/page/JSDOMSelection.h \ 370 $(intermediates)/page/JSDOMWindow.h \ 371 $(intermediates)/page/JSEventSource.h \ 372 $(intermediates)/page/JSGeolocation.h \ 373 $(intermediates)/page/JSGeoposition.h \ 374 $(intermediates)/page/JSHistory.h \ 375 $(intermediates)/page/JSLocation.h \ 376 $(intermediates)/page/JSMemoryInfo.h \ 377 $(intermediates)/page/JSNavigator.h \ 378 $(intermediates)/page/JSNavigatorUserMediaError.h \ 379 $(intermediates)/page/JSNavigatorUserMediaErrorCallback.h \ 380 $(intermediates)/page/JSNavigatorUserMediaSuccessCallback.h \ 381 $(intermediates)/page/JSPerformance.h \ 382 $(intermediates)/page/JSPerformanceNavigation.h \ 383 $(intermediates)/page/JSPerformanceTiming.h \ 384 $(intermediates)/page/JSPositionError.h \ 385 $(intermediates)/page/JSScreen.h \ 386 $(intermediates)/page/JSSpeechInputEvent.h \ 387 $(intermediates)/page/JSWebKitAnimation.h \ 388 $(intermediates)/page/JSWebKitAnimationList.h \ 389 $(intermediates)/page/JSWebKitPoint.h \ 390 $(intermediates)/page/JSWorkerNavigator.h 391 392 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 393 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $< 394 $(GEN): $(intermediates)/page/JS%.h : $(LOCAL_PATH)/page/%.idl $(js_binding_scripts) 395 $(transform-generated-source) 396 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 397 398 # We also need the .cpp files, which are generated as side effects of the 399 # above rules. Specifying this explicitly makes -j2 work. 400 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/page/%.cpp : $(intermediates)/page/%.h 401 402 GEN := \ 403 $(intermediates)/plugins/JSDOMMimeType.h \ 404 $(intermediates)/plugins/JSDOMMimeTypeArray.h \ 405 $(intermediates)/plugins/JSDOMPlugin.h \ 406 $(intermediates)/plugins/JSDOMPluginArray.h 407 408 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 409 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $< 410 $(GEN): $(intermediates)/plugins/JS%.h : $(LOCAL_PATH)/plugins/%.idl $(js_binding_scripts) 411 $(transform-generated-source) 412 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 413 414 # We also need the .cpp files, which are generated as side effects of the 415 # above rules. Specifying this explicitly makes -j2 work. 416 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/plugins/%.cpp : $(intermediates)/plugins/%.h 417 418 # Database 419 GEN := \ 420 $(intermediates)/storage/JSDatabase.h \ 421 $(intermediates)/storage/JSDatabaseCallback.h \ 422 $(intermediates)/storage/JSDatabaseSync.h \ 423 $(intermediates)/storage/JSSQLError.h \ 424 $(intermediates)/storage/JSSQLException.h \ 425 $(intermediates)/storage/JSSQLResultSet.h \ 426 $(intermediates)/storage/JSSQLResultSetRowList.h \ 427 $(intermediates)/storage/JSSQLStatementCallback.h \ 428 $(intermediates)/storage/JSSQLStatementErrorCallback.h \ 429 $(intermediates)/storage/JSSQLTransaction.h \ 430 $(intermediates)/storage/JSSQLTransactionCallback.h \ 431 $(intermediates)/storage/JSSQLTransactionSync.h \ 432 $(intermediates)/storage/JSSQLTransactionSyncCallback.h \ 433 $(intermediates)/storage/JSSQLTransactionErrorCallback.h 434 435 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 436 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --include storage --outputdir $(dir $@) $< 437 $(GEN): $(intermediates)/storage/JS%.h : $(LOCAL_PATH)/storage/%.idl $(js_binding_scripts) 438 $(transform-generated-source) 439 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 440 441 # We also need the .cpp files, which are generated as side effects of the 442 # above rules. Specifying this explicitly makes -j2 work. 443 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/storage/%.cpp : $(intermediates)/storage/%.h 444 445 # DOM Storage 446 GEN := \ 447 $(intermediates)/storage/JSStorage.h \ 448 $(intermediates)/storage/JSStorageEvent.h 449 450 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 451 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $< 452 $(GEN): $(intermediates)/storage/JS%.h : $(LOCAL_PATH)/storage/%.idl $(js_binding_scripts) 453 $(transform-generated-source) 454 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 455 456 # We also need the .cpp files, which are generated as side effects of the 457 # above rules. Specifying this explicitly makes -j2 work. 458 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/storage/%.cpp : $(intermediates)/storage/%.h 459 460 # Indexed Database 461 GEN := \ 462 $(intermediates)/storage/JSIDBAny.h \ 463 $(intermediates)/storage/JSIDBCursor.h \ 464 $(intermediates)/storage/JSIDBCursorWithValue.h \ 465 $(intermediates)/storage/JSIDBDatabaseError.h \ 466 $(intermediates)/storage/JSIDBDatabaseException.h \ 467 $(intermediates)/storage/JSIDBDatabase.h \ 468 $(intermediates)/storage/JSIDBFactory.h \ 469 $(intermediates)/storage/JSIDBIndex.h \ 470 $(intermediates)/storage/JSIDBKey.h \ 471 $(intermediates)/storage/JSIDBKeyRange.h \ 472 $(intermediates)/storage/JSIDBObjectStore.h \ 473 $(intermediates)/storage/JSIDBRequest.h \ 474 $(intermediates)/storage/JSIDBTransaction.h \ 475 $(intermediates)/storage/JSIDBVersionChangeEvent.h \ 476 $(intermediates)/storage/JSIDBVersionChangeRequest.h 477 478 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 479 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --include storage --outputdir $(dir $@) $< 480 $(GEN): $(intermediates)/storage/JS%.h : $(LOCAL_PATH)/storage/%.idl $(js_binding_scripts) 481 $(transform-generated-source) 482 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 483 484 # We also need the .cpp files, which are generated as side effects of the 485 # above rules. Specifying this explicitly makes -j2 work. 486 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/storage/%.cpp : $(intermediates)/storage/%.h 487 488 # SVG 489 ifeq ($(ENABLE_SVG), true) 490 GEN := \ 491 $(intermediates)/svg/JSSVGAElement.h \ 492 $(intermediates)/svg/JSSVGAltGlyphElement.h \ 493 $(intermediates)/svg/JSSVGAngle.h \ 494 $(intermediates)/svg/JSSVGAnimateColorElement.h \ 495 $(intermediates)/svg/JSSVGAnimateElement.h \ 496 $(intermediates)/svg/JSSVGAnimateTransformElement.h \ 497 $(intermediates)/svg/JSSVGAnimatedAngle.h \ 498 $(intermediates)/svg/JSSVGAnimatedBoolean.h \ 499 $(intermediates)/svg/JSSVGAnimatedEnumeration.h \ 500 $(intermediates)/svg/JSSVGAnimatedInteger.h \ 501 $(intermediates)/svg/JSSVGAnimatedLength.h \ 502 $(intermediates)/svg/JSSVGAnimatedLengthList.h \ 503 $(intermediates)/svg/JSSVGAnimatedNumber.h \ 504 $(intermediates)/svg/JSSVGAnimatedNumberList.h \ 505 $(intermediates)/svg/JSSVGAnimatedPreserveAspectRatio.h \ 506 $(intermediates)/svg/JSSVGAnimatedRect.h \ 507 $(intermediates)/svg/JSSVGAnimatedString.h \ 508 $(intermediates)/svg/JSSVGAnimatedTransformList.h \ 509 $(intermediates)/svg/JSSVGAnimationElement.h \ 510 $(intermediates)/svg/JSSVGCircleElement.h \ 511 $(intermediates)/svg/JSSVGClipPathElement.h \ 512 $(intermediates)/svg/JSSVGColor.h \ 513 $(intermediates)/svg/JSSVGComponentTransferFunctionElement.h \ 514 $(intermediates)/svg/JSSVGCursorElement.h \ 515 $(intermediates)/svg/JSSVGDefsElement.h \ 516 $(intermediates)/svg/JSSVGDescElement.h \ 517 $(intermediates)/svg/JSSVGDocument.h \ 518 $(intermediates)/svg/JSSVGElement.h \ 519 $(intermediates)/svg/JSSVGElementInstance.h \ 520 $(intermediates)/svg/JSSVGElementInstanceList.h \ 521 $(intermediates)/svg/JSSVGEllipseElement.h \ 522 $(intermediates)/svg/JSSVGException.h \ 523 $(intermediates)/svg/JSSVGFEBlendElement.h \ 524 $(intermediates)/svg/JSSVGFEColorMatrixElement.h \ 525 $(intermediates)/svg/JSSVGFEComponentTransferElement.h \ 526 $(intermediates)/svg/JSSVGFECompositeElement.h \ 527 $(intermediates)/svg/JSSVGFEConvolveMatrixElement.h \ 528 $(intermediates)/svg/JSSVGFEDiffuseLightingElement.h \ 529 $(intermediates)/svg/JSSVGFEDisplacementMapElement.h \ 530 $(intermediates)/svg/JSSVGFEDistantLightElement.h \ 531 $(intermediates)/svg/JSSVGFEFloodElement.h \ 532 $(intermediates)/svg/JSSVGFEFuncAElement.h \ 533 $(intermediates)/svg/JSSVGFEFuncBElement.h \ 534 $(intermediates)/svg/JSSVGFEFuncGElement.h \ 535 $(intermediates)/svg/JSSVGFEFuncRElement.h \ 536 $(intermediates)/svg/JSSVGFEGaussianBlurElement.h \ 537 $(intermediates)/svg/JSSVGFEImageElement.h \ 538 $(intermediates)/svg/JSSVGFEMergeElement.h \ 539 $(intermediates)/svg/JSSVGFEMergeNodeElement.h \ 540 $(intermediates)/svg/JSSVGFEOffsetElement.h \ 541 $(intermediates)/svg/JSSVGFEPointLightElement.h \ 542 $(intermediates)/svg/JSSVGFESpecularLightingElement.h \ 543 $(intermediates)/svg/JSSVGFESpotLightElement.h \ 544 $(intermediates)/svg/JSSVGFETileElement.h \ 545 $(intermediates)/svg/JSSVGFETurbulenceElement.h \ 546 $(intermediates)/svg/JSSVGFilterElement.h \ 547 $(intermediates)/svg/JSSVGFontElement.h \ 548 $(intermediates)/svg/JSSVGFontFaceElement.h \ 549 $(intermediates)/svg/JSSVGFontFaceFormatElement.h \ 550 $(intermediates)/svg/JSSVGFontFaceNameElement.h \ 551 $(intermediates)/svg/JSSVGFontFaceSrcElement.h \ 552 $(intermediates)/svg/JSSVGFontFaceUriElement.h \ 553 $(intermediates)/svg/JSSVGForeignObjectElement.h \ 554 $(intermediates)/svg/JSSVGGElement.h \ 555 $(intermediates)/svg/JSSVGGlyphElement.h \ 556 $(intermediates)/svg/JSSVGGradientElement.h \ 557 $(intermediates)/svg/JSSVGHKernElement.h \ 558 $(intermediates)/svg/JSSVGImageElement.h \ 559 $(intermediates)/svg/JSSVGLength.h \ 560 $(intermediates)/svg/JSSVGLengthList.h \ 561 $(intermediates)/svg/JSSVGLineElement.h \ 562 $(intermediates)/svg/JSSVGLinearGradientElement.h \ 563 $(intermediates)/svg/JSSVGMarkerElement.h \ 564 $(intermediates)/svg/JSSVGMaskElement.h \ 565 $(intermediates)/svg/JSSVGMatrix.h \ 566 $(intermediates)/svg/JSSVGMetadataElement.h \ 567 $(intermediates)/svg/JSSVGMissingGlyphElement.h \ 568 $(intermediates)/svg/JSSVGNumber.h \ 569 $(intermediates)/svg/JSSVGNumberList.h \ 570 $(intermediates)/svg/JSSVGPaint.h \ 571 $(intermediates)/svg/JSSVGPathElement.h \ 572 $(intermediates)/svg/JSSVGPathSeg.h \ 573 $(intermediates)/svg/JSSVGPathSegArcAbs.h \ 574 $(intermediates)/svg/JSSVGPathSegArcRel.h \ 575 $(intermediates)/svg/JSSVGPathSegClosePath.h \ 576 $(intermediates)/svg/JSSVGPathSegCurvetoCubicAbs.h \ 577 $(intermediates)/svg/JSSVGPathSegCurvetoCubicRel.h \ 578 $(intermediates)/svg/JSSVGPathSegCurvetoCubicSmoothAbs.h \ 579 $(intermediates)/svg/JSSVGPathSegCurvetoCubicSmoothRel.h \ 580 $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticAbs.h \ 581 $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticRel.h \ 582 $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticSmoothAbs.h \ 583 $(intermediates)/svg/JSSVGPathSegCurvetoQuadraticSmoothRel.h \ 584 $(intermediates)/svg/JSSVGPathSegLinetoAbs.h \ 585 $(intermediates)/svg/JSSVGPathSegLinetoHorizontalAbs.h \ 586 $(intermediates)/svg/JSSVGPathSegLinetoHorizontalRel.h \ 587 $(intermediates)/svg/JSSVGPathSegLinetoRel.h \ 588 $(intermediates)/svg/JSSVGPathSegLinetoVerticalAbs.h \ 589 $(intermediates)/svg/JSSVGPathSegLinetoVerticalRel.h \ 590 $(intermediates)/svg/JSSVGPathSegList.h \ 591 $(intermediates)/svg/JSSVGPathSegMovetoAbs.h \ 592 $(intermediates)/svg/JSSVGPathSegMovetoRel.h \ 593 $(intermediates)/svg/JSSVGPatternElement.h \ 594 $(intermediates)/svg/JSSVGPoint.h \ 595 $(intermediates)/svg/JSSVGPointList.h \ 596 $(intermediates)/svg/JSSVGPolygonElement.h \ 597 $(intermediates)/svg/JSSVGPolylineElement.h \ 598 $(intermediates)/svg/JSSVGPreserveAspectRatio.h \ 599 $(intermediates)/svg/JSSVGRadialGradientElement.h \ 600 $(intermediates)/svg/JSSVGRect.h \ 601 $(intermediates)/svg/JSSVGRectElement.h \ 602 $(intermediates)/svg/JSSVGRenderingIntent.h \ 603 $(intermediates)/svg/JSSVGSVGElement.h \ 604 $(intermediates)/svg/JSSVGScriptElement.h \ 605 $(intermediates)/svg/JSSVGSetElement.h \ 606 $(intermediates)/svg/JSSVGStopElement.h \ 607 $(intermediates)/svg/JSSVGStringList.h \ 608 $(intermediates)/svg/JSSVGStyleElement.h \ 609 $(intermediates)/svg/JSSVGSwitchElement.h \ 610 $(intermediates)/svg/JSSVGSymbolElement.h \ 611 $(intermediates)/svg/JSSVGTRefElement.h \ 612 $(intermediates)/svg/JSSVGTSpanElement.h \ 613 $(intermediates)/svg/JSSVGTextContentElement.h \ 614 $(intermediates)/svg/JSSVGTextElement.h \ 615 $(intermediates)/svg/JSSVGTextPathElement.h \ 616 $(intermediates)/svg/JSSVGTextPositioningElement.h \ 617 $(intermediates)/svg/JSSVGTitleElement.h \ 618 $(intermediates)/svg/JSSVGTransform.h \ 619 $(intermediates)/svg/JSSVGTransformList.h \ 620 $(intermediates)/svg/JSSVGUnitTypes.h \ 621 $(intermediates)/svg/JSSVGUseElement.h \ 622 $(intermediates)/svg/JSSVGViewElement.h \ 623 $(intermediates)/svg/JSSVGVKernElement.h \ 624 $(intermediates)/svg/JSSVGZoomEvent.h 625 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 626 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include external/webkit/Source/WebCore/dom --include external/webkit/Source/WebCore/html --include external/webkit/Source/WebCore/svg --outputdir $(dir $@) $< 627 $(GEN): $(intermediates)/svg/JS%.h : $(LOCAL_PATH)/svg/%.idl $(js_binding_scripts) 628 $(transform-generated-source) 629 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 630 631 # We also need the .cpp files, which are generated as side effects of the 632 # above rules. Specifying this explicitly makes -j2 work. 633 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/svg/%.cpp : $(intermediates)/svg/%.h 634 endif 635 636 # Workers 637 GEN := \ 638 $(intermediates)/workers/JSAbstractWorker.h \ 639 $(intermediates)/workers/JSDedicatedWorkerContext.h \ 640 $(intermediates)/workers/JSSharedWorker.h \ 641 $(intermediates)/workers/JSSharedWorkerContext.h \ 642 $(intermediates)/workers/JSWorker.h \ 643 $(intermediates)/workers/JSWorkerContext.h \ 644 $(intermediates)/workers/JSWorkerLocation.h 645 646 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 647 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $< 648 $(GEN): $(intermediates)/workers/JS%.h : $(LOCAL_PATH)/workers/%.idl $(js_binding_scripts) 649 $(transform-generated-source) 650 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 651 652 # We also need the .cpp files, which are generated as side effects of the 653 # above rules. Specifying this explicitly makes -j2 work. 654 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/workers/%.cpp : $(intermediates)/workers/%.h 655 656 # XML 657 GEN := \ 658 $(intermediates)/xml/JSDOMParser.h \ 659 $(intermediates)/xml/JSXMLHttpRequest.h \ 660 $(intermediates)/xml/JSXMLHttpRequestException.h \ 661 $(intermediates)/xml/JSXMLHttpRequestProgressEvent.h \ 662 $(intermediates)/xml/JSXMLHttpRequestUpload.h \ 663 $(intermediates)/xml/JSXMLSerializer.h \ 664 $(intermediates)/xml/JSXPathException.h \ 665 $(intermediates)/xml/JSXPathExpression.h \ 666 $(intermediates)/xml/JSXPathEvaluator.h \ 667 $(intermediates)/xml/JSXPathNSResolver.h \ 668 $(intermediates)/xml/JSXPathResult.h \ 669 $(intermediates)/xml/JSXSLTProcessor.h 670 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 671 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $< 672 $(GEN): $(intermediates)/xml/JS%.h : $(LOCAL_PATH)/xml/%.idl $(js_binding_scripts) 673 $(transform-generated-source) 674 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 675 676 # We also need the .cpp files, which are generated as side effects of the 677 # above rules. Specifying this explicitly makes -j2 work. 678 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/xml/%.cpp : $(intermediates)/xml/%.h 679 #end 680 681 # Inspector 682 # These headers are required even when Inspector is disabled. 683 # Note that Inspector.idl should not be processed using the JS generator. 684 GEN := \ 685 $(intermediates)/inspector/JSScriptProfile.h 686 687 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 688 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $< 689 $(GEN): $(intermediates)/inspector/JS%.h : $(LOCAL_PATH)/inspector/%.idl $(js_binding_scripts) 690 $(transform-generated-source) 691 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 692 693 # We also need the .cpp files, which are generated as side effects of the 694 # above rules. Specifying this explicitly makes -j2 work. 695 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/inspector/%.cpp : $(intermediates)/inspector/%.h 696 697 # WebAudio 698 # These headers are required even when WebAudio is disabled 699 GEN := \ 700 $(intermediates)/webaudio/JSAudioContext.h \ 701 $(intermediates)/webaudio/JSAudioPannerNode.h 702 703 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 704 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I$(PRIVATE_PATH)/bindings/scripts $(PRIVATE_PATH)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --outputdir $(dir $@) $< 705 $(GEN): $(intermediates)/webaudio/JS%.h : $(LOCAL_PATH)/webaudio/%.idl $(js_binding_scripts) 706 $(transform-generated-source) 707 LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp) 708 709 # We also need the .cpp files, which are generated as side effects of the 710 # above rules. Specifying this explicitly makes -j2 work. 711 $(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/webaudio/%.cpp : $(intermediates)/webaudio/%.h 712 713 # HTML tag and attribute names 714 715 GEN:= $(intermediates)/HTMLNames.cpp $(intermediates)/HTMLNames.h $(intermediates)/HTMLElementFactory.cpp $(intermediates)/HTMLElementFactory.h $(intermediates)/JSHTMLElementWrapperFactory.cpp $(intermediates)/JSHTMLElementWrapperFactory.h 716 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 717 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --tags $(PRIVATE_PATH)/html/HTMLTagNames.in --attrs $(PRIVATE_PATH)/html/HTMLAttributeNames.in --extraDefines "$(FEATURE_DEFINES)" --factory --wrapperFactory --output $(dir $@) 718 $(GEN): $(LOCAL_PATH)/dom/make_names.pl $(LOCAL_PATH)/html/HTMLTagNames.in $(LOCAL_PATH)/html/HTMLAttributeNames.in 719 $(transform-generated-source) 720 LOCAL_GENERATED_SOURCES += $(GEN) 721 722 # SVG tag and attribute names 723 724 # Note that if SVG is not used, we still need the headers and SVGNames.cpp as 725 # the HTML5 parser still requires these. The factory .cpp files are also 726 # generated in this case, but since these are not needed, they are excluded 727 # from GEN so that they don't get compiled. 728 ifeq ($(ENABLE_SVG), true) 729 GEN:= $(intermediates)/SVGNames.cpp $(intermediates)/SVGNames.h $(intermediates)/SVGElementFactory.cpp $(intermediates)/SVGElementFactory.h $(intermediates)/JSSVGElementWrapperFactory.cpp $(intermediates)/JSSVGElementWrapperFactory.h 730 else 731 GEN:= $(intermediates)/SVGNames.h $(intermediates)/SVGNames.cpp $(intermediates)/SVGElementFactory.h $(intermediates)/JSSVGElementWrapperFactory.h 732 endif 733 SVG_FLAGS:=ENABLE_SVG_ANIMATION=1 ENABLE_SVG_AS_IMAGE=1 ENABLE_SVG_FILTERS=1 ENABLE_SVG_FONTS=1 ENABLE_SVG_FOREIGN_OBJECT=1 ENABLE_SVG_USE=1 734 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 735 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --tags $(PRIVATE_PATH)/svg/svgtags.in --attrs $(PRIVATE_PATH)/svg/svgattrs.in --extraDefines "$(SVG_FLAGS)" --factory --wrapperFactory --output $(dir $@) 736 $(GEN): $(LOCAL_PATH)/dom/make_names.pl $(LOCAL_PATH)/svg/svgtags.in $(LOCAL_PATH)/svg/svgattrs.in 737 $(transform-generated-source) 738 LOCAL_GENERATED_SOURCES += $(GEN) 739 740 # MathML tag and attribute names 741 742 # Note that MathML is never used but we still need the headers and 743 # MathMLames.cpp as the HTML5 parser still requires these. The factory 744 # .cpp files are also generated in this case, but since these are not 745 # needed, they are excluded from GEN so that they don't get compiled. 746 GEN:= $(intermediates)/MathMLNames.h $(intermediates)/MathMLNames.cpp $(intermediates)/MathMLElementFactory.h $(intermediates)/JSMathMLElementWrapperFactory.h 747 $(GEN): PRIVATE_PATH := $(LOCAL_PATH) 748 $(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --tags $(PRIVATE_PATH)/mathml/mathtags.in --attrs $(PRIVATE_PATH)/mathml/mathattrs.in --factory --wrapperFactory --output $(dir $@) 749 $(GEN): $(LOCAL_PATH)/dom/make_names.pl $(LOCAL_PATH)/mathml/mathtags.in $(LOCAL_PATH)/mathml/mathattrs.in 750 $(transform-generated-source) 751 LOCAL_GENERATED_SOURCES += $(GEN) 752 753