Hello all, How can the unwanted includes in a generated source be disabled?
We are compiling a DirectFB port using r64500 of webkit's source code and we are having problems compiling DerivedSources/WebCore/JSDOMWindow.cpp. The errors are due to missing generated headers: *DerivedSources/WebCore/JSDOMWindow.cpp:191:28: error: JSSQLException.h: No such file or directory DerivedSources/WebCore/JSDOMWindow.cpp:200:26: error: JSTimeRanges.h: No such file or directory * but the fact is that they should not be included, since we are compiling with no database nor video enabled. The features passed to compilation are: *-DENABLE_CHANNEL_MESSAGING=1 -DENABLE_DATAGRID=0 -DENABLE_METER_TAG=0 -DENABLE_PROGRESS_TAG=1 -DENABLE_JAVASCRIPT_DEBUGGER=1 -DENABLE_DATABASE=0 -DENABLE_DATALIST=1 -DENABLE_EVENTSOURCE=1 -DENABLE_DIRECTORY_UPLOAD=0 -DENABLE_INPUT_SPEECH=0 -DENABLE_ICONDATABASE=0 -DENABLE_IMAGE_RESIZER=0 -DENABLE_SANDBOX=1 -DENABLE_RUBY=1 -DENABLE_WORKERS=1 -DENABLE_SHARED_WORKERS=1 -DENABLE_FILTERS=1 -DENABLE_WEB_SOCKETS=0 * The given source is being generated with this line: */usr/bin/perl -I./WebCore/bindings/scripts ./WebCore/bindings/scripts/ generate-bindings.pl --include "./WebCore/accessibility" --include "./WebCore/bindings/js" --include "./WebCore/css" --include "./WebCore/dom" --include "./WebCore/html" --include "./WebCore/html/canvas" --include "./WebCore/inspector" --include "./WebCore/loader/appcache" --include "./WebCore/notifications" --include "./WebCore/page" --include "./WebCore/storage" --include "./WebCore/svg" --include "./WebCore/xml" --include "./WebCore/plugins" --include "./WebCore/websockets" --include "./WebCore/workers" --outputDir "./DerivedSources/WebCore" --defines "LANGUAGE_JAVASCRIPT=1 ENABLE_CHANNEL_MESSAGING=1 ENABLE_DATAGRID=0 ENABLE_METER_TAG=0 ENABLE_PROGRESS_TAG=1 ENABLE_JAVASCRIPT_DEBUGGER=1 ENABLE_DATALIST=1 ENABLE_EVENTSOURCE=1 ENABLE_WORKERS=1 ENABLE_SHARED_WORKERS=1 ENABLE_FILTERS=1 " --generator JS ./WebCore/page/DOMWindow.idl* What files must be modified to tell the build system to generate the include line for SQLException.idl only if the proper defines are enabled? Regards, PS: I have taken a look at WebCore/bindings/scripts/CodeGeneratorJS.pm and i could manage to disable the include by checking GenerateConditionalString($dataNode) but it seems not the right way of doing it, since the rest of includes seem to work fine. -- Alejandro Vazquez Fente
_______________________________________________ webkit-help mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
