Currently, JavaScriptCore is build by including JavaScriptCore.pri in WebCore.pro, jsc.pro and QtScript.pro. This .pri file just add JavaScriptCore's cpp files to the SOURCES variable. Building JavaScriptCore statically before would prevent recompiling JavaScriptCore's cpp files for each project and would allow its objects files to be compiled with different optimization flags.
Created attachment 51620 [details] Patch
Created attachment 51627 [details] Patch v2 Removes unrelated hunk.
Committed r56623: <http://trac.webkit.org/changeset/56623>
Revision r56623 cherry-picked into qtwebkit-2.0 with commit b9a9ed485914673c4801be819f8906e933666435
This breaks the WinCE build (reverting the commit fixes the build ), I get: pcre_compile.cpp c:\qt\wince5\webkit\javascriptcore\wtf\unicode\qt4/UnicodeQt4.h(31) : fatal error C1083: Cannot open include file: 'stdint.h' : No such file or directory pcre_exec.cpp c:\qt\wince5\webkit\javascriptcore\wtf\unicode\qt4/UnicodeQt4.h(31) : fatal error C1083: Cannot open include file: 'stdint.h' : No such file or directory pcre_tables.cpp c:\qt\wince5\webkit\javascriptcore\wtf\unicode\qt4/UnicodeQt4.h(31) : fatal error C1083: Cannot open include file: 'stdint.h' : No such file or directory pcre_ucp_searchfuncs.cpp c:\qt\wince5\webkit\javascriptcore\wtf\unicode\qt4/UnicodeQt4.h(31) : fatal error C1083: Cannot open include file: 'stdint.h' : No such file or directory pcre_xclass.cpp c:\qt\wince5\webkit\javascriptcore\wtf\unicode\qt4/UnicodeQt4.h(31) : fatal error C1083: Cannot open include file: 'stdint.h' : No such file or directory Looks like JavaScriptCore/os-win32 is not being added to includepath.
(In reply to comment #5) > This breaks the WinCE build (reverting the commit fixes the build ), I get: Filed #36751
(In reply to comment #6) > (In reply to comment #5) > > This breaks the WinCE build (reverting the commit fixes the build ), I get: > > Filed #36751 Err https://bugs.webkit.org/show_bug.cgi?id=36751