Bug 43863 - Build with --enable-indexed-database fails on a missing file - JSIDBKey.h
Summary: Build with --enable-indexed-database fails on a missing file - JSIDBKey.h
Status: RESOLVED DUPLICATE of bug 45110
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-11 10:52 PDT by red47514f7
Modified: 2010-09-06 10:44 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description red47514f7 2010-08-11 10:52:42 PDT
I tried to build latest WebKit nightly with maximal possible feature set. In particular, I passed --enable-indexed-database to autogen.sh

I go the following during compilation of DerivedSources/WebCore/JSIDBKeyRange.cpp :

DerivedSources/WebCore/JSIDBKeyRange.cpp:32:22: error: JSIDBKey.h: No such file or directory  
[some errors related to the lack of definitions expected to be in JSIDBKey.h follow]

The file is actually absent in the nightly itself. There is some code to generate this file (and some more bindings) in WebCore/Android.derived.jscbindings.mk .

The file is mentioned in the following files:

./WebCore/Android.derived.jscbindings.mk
./WebCore/WebCore.vcproj/WebCore.vcproj
./WebCore/WebCore.xcodeproj/project.pbxproj
./WebCore/bindings/js/JSIDBAnyCustom.cpp
./WebCore/bindings/js/JSIDBKeyCustom.cpp

The first one seems Android-specific, the next two are apparently just file list caches for IDEs, and the last two are users of the erroneously not-generated header.

Probably code from ./WebCore/Android.derived.jscbindings.mk could be generalized to generate the needed headers when --enable-indexed-database is passed. 

The Android-specific makefile generates the following headers:

    $(intermediates)/storage/JSIDBAny.h \
    $(intermediates)/storage/JSIDBCursor.h \
    $(intermediates)/storage/JSIDBDatabaseError.h \
    $(intermediates)/storage/JSIDBDatabaseException.h \
    $(intermediates)/storage/JSIDBDatabase.h \
    $(intermediates)/storage/JSIDBErrorEvent.h \
    $(intermediates)/storage/JSIDBEvent.h \
    $(intermediates)/storage/JSIDBFactory.h \
    $(intermediates)/storage/JSIDBIndex.h \
    $(intermediates)/storage/JSIDBKey.h \
    $(intermediates)/storage/JSIDBKeyRange.h \
    $(intermediates)/storage/JSIDBObjectStore.h \
    $(intermediates)/storage/JSIDBRequest.h \
    $(intermediates)/storage/JSIDBSuccessEvent.h \
    $(intermediates)/storage/JSIDBTransaction.h
Comment 1 Jeremy Orlow 2010-09-06 10:44:13 PDT
Thanks for the report, but this is a known issue.

*** This bug has been marked as a duplicate of bug 45110 ***