diff options
-rw-r--r-- | webkit/SConscript | 86 | ||||
-rw-r--r-- | webkit/build/port/SConscript | 72 | ||||
-rw-r--r-- | webkit/glue/SConscript | 6 |
3 files changed, 92 insertions, 72 deletions
diff --git a/webkit/SConscript b/webkit/SConscript index 219af0c..237b113 100644 --- a/webkit/SConscript +++ b/webkit/SConscript @@ -9,6 +9,7 @@ Import(['env']) env = env.Clone() env_res = env.Clone() + # We use the SCons addRepository() call (an internal API that will # at some point be made public) to "back" the build directory # hierarchy with the source directory hierarchies in which we want to @@ -42,9 +43,12 @@ port_dir.addRepository(env.Dir('$CHROME_SRC_DIR/third_party/WebKit/WebCore')) if env['PLATFORM'] == 'win32': env['WEBKIT_PLATFORM_SUBDIR'] = 'win' + env['JAVASCRIPTCORE_PLATFORM_SUBDIR'] = 'os-win32' elif env['PLATFORM'] == 'darwin': env['WEBKIT_PLATFORM_SUBDIR'] = 'mac' + env['JAVASCRIPTCORE_PLATFORM_SUBDIR'] = 'TODO' elif env['PLATFORM'] == 'posix': + env['JAVASCRIPTCORE_PLATFORM_SUBDIR'] = 'TODO' env.Append( CCFLAGS = [ '-Wno-parentheses', @@ -68,6 +72,8 @@ env.Prepend( # introduced any hidden problems. #'$WEBKIT_DIR/build/JavaScriptCore', + '$WEBKIT_DIR/build/WebCore', + '$WEBKIT_DIR/port/platform/image-decoders', '$WEBKIT_DIR/port/platform/image-decoders/bmp', '$WEBKIT_DIR/port/platform/image-decoders/gif', @@ -90,12 +96,23 @@ env.Prepend( '$V8_DIR/include', '$WEBKIT_DIR/V8Bindings/DerivedSources', '$WEBKIT_DIR/V8Bindings/SharedSources', - - '$WEBKIT_DIR/pending', '$WEBKIT_DIR/port/bindings/v8', + '$WEBKIT_DIR/WebCore', + '$WEBKIT_DIR/WebCore/JavaScriptHeaders', + '$WEBKIT_DIR/WebCore/JavaScriptHeaders/JavaScriptCore', + '$WEBKIT_DIR/pending', + '$WEBKIT_DIR/port/bridge', '$WEBKIT_DIR/port/css', '$WEBKIT_DIR/port/dom', + '$WEBKIT_DIR/port/editing', '$WEBKIT_DIR/port/history', + '$WEBKIT_DIR/port/html', + '$WEBKIT_DIR/port/loader', + '$WEBKIT_DIR/port/loader/appcache', + '$WEBKIT_DIR/port/loader/archive', + '$WEBKIT_DIR/port/loader/icon', + '$WEBKIT_DIR/port/page', + '$WEBKIT_DIR/port/page/animation', '$WEBKIT_DIR/port/page/chromium', '$WEBKIT_DIR/port/platform', '$WEBKIT_DIR/port/platform/chromium', @@ -103,43 +120,38 @@ env.Prepend( '$WEBKIT_DIR/port/platform/graphics/chromium', '$WEBKIT_DIR/port/platform/graphics/skia', '$WEBKIT_DIR/port/platform/$WEBKIT_PLATFORM_SUBDIR', + '$WEBKIT_DIR/port/svg/graphics', + '$WEBKIT_DIR/port/platform/network', '$WEBKIT_DIR/port/platform/network/chromium', + '$WEBKIT_DIR/port/platform/network/$WEBKIT_PLATFORM_SUBDIR', + '$WEBKIT_DIR/port/platform/sql', + '$WEBKIT_DIR/port/platform/text', + '$WEBKIT_DIR/port/plugins', + '$WEBKIT_DIR/port/plugins/chromium', '$WEBKIT_DIR/port/rendering', + '$WEBKIT_DIR/port/rendering/style', + '$WEBKIT_DIR/port/storage', + '$WEBKIT_DIR/port/style', + '$WEBKIT_DIR', + '$WEBKIT_DIR/build/port', '$JAVASCRIPTCORE_DIR', '$JAVASCRIPTCORE_DIR/wtf', + '$JAVASCRIPTCORE_DIR/$JAVASCRIPTCORE_PLATFORM_SUBDIR', - # Directories in third_party/WebKit/Webcore that we pull headers - # from. We don't have to list directories that are listed in the - # $WEBKIT_DIR/port section above because they automatically fall - # back to third_party/WebKit/Webcore. - '$WEBCORE_DIR/editing', - '$WEBCORE_DIR/html', - '$WEBCORE_DIR/inspector', - '$WEBCORE_DIR/loader', - '$WEBCORE_DIR/loader/appcache', - '$WEBCORE_DIR/loader/archive', - '$WEBCORE_DIR/loader/icon', - '$WEBCORE_DIR/page', - '$WEBCORE_DIR/page/animation', - '$WEBCORE_DIR/platform/network', - '$WEBCORE_DIR/platform/sql', - '$WEBCORE_DIR/platform/text', - '$WEBCORE_DIR/plugins', - '$WEBCORE_DIR/rendering/style', - '$WEBCORE_DIR/storage', - '$WEBCORE_DIR/style', - '$WEBCORE_DIR/svg', - '$WEBCORE_DIR/svg/animation', - '$WEBCORE_DIR/svg/graphics', - '$WEBCORE_DIR/xml', + '$WEBKIT_DIR/build', + + '$WEBKIT_DIR/port/DerivedSources', + '$WEBKIT_DIR/port/svg', + '$WEBKIT_DIR/port/svg/animation', + '$WEBKIT_DIR/port/svg/graphics/filters', '$CHROME_SRC_DIR', ], ) env.Append( - WEBCORE_DIR = '$CHROME_SRC_DIR/third_party/WebKit/WebCore', + WEBCORE_DIR = "$THIRD_PARTY_WEBKIT_DIR/WebCore", PENDING_DIR = "$WEBKIT_DIR/pending", PORT_DIR = "$WEBKIT_DIR/port", @@ -152,6 +164,17 @@ env.Append( DERIVED_DIR = env.Dir("$WEBKIT_DIR/V8Bindings/DerivedSources"), SHARED_DIR = env.Dir("$WEBKIT_DIR/V8Bindings/SharedSources"), + # This is a stop gap to get linux building in time for the webkit + # merge. The true fix is to move the above CPPPATH prepend under this + # Append block and remove all the old pending directories (and add the new + # upstream ones.) + CPPPATH = [ + '$WEBCORE_DIR/rendering', + '$WEBCORE_DIR/rendering/style', + '$WEBCORE_DIR/inspector', + '$WEBCORE_DIR/xml', + ], + CPPDEFINES = [ 'U_STATIC_IMPLEMENTATION', '_SCL_SECURE_NO_DEPRECATE', @@ -224,12 +247,13 @@ if env['PLATFORM'] == 'win32': env.Prepend( CPPPATH = [ - # Windows precompiled headers are here - '$WEBKIT_DIR/build', - - '$JAVASCRIPTCORE_DIR/os-win32', + '$WEBKIT_DIR/port/$JAVASCRIPTCORE_PLATFORM_SUBDIR', + '$THIRD_PARTY_WEBKIT_DIR/JavaScriptCore/$JAVASCRIPTCORE_PLATFORM_SUBDIR', ]) else: + env.Prepend( + CPPPATH = ['$WEBKIT_DIR/build/JSConfig/WebCore/v8'], + ) env.Append( CXXFLAGS = ['-Wno-multichar'], ) diff --git a/webkit/build/port/SConscript b/webkit/build/port/SConscript index 1e16989..9582457 100644 --- a/webkit/build/port/SConscript +++ b/webkit/build/port/SConscript @@ -44,6 +44,8 @@ env = env.Clone( PERL_INCLUDE_PATH = ['$BINDINGS_SCRIPTS_DIR', '$CHROME_SRC_DIR/third_party/WebKit/WebCore/bindings/scripts'], + WEBKIT_PORT_DIR = '$WEBKIT_DIR/port', + FEATURE_DEFINES = [ 'ENABLE_CROSS_DOCUMENT_MESSAGING', 'ENABLE_XSLT', @@ -480,8 +482,8 @@ for name in idl_files: # copy over some files i = env.Install('$SHARED_DIR', - ['$PORT_DIR/bindings/js/PausedTimeouts.h', - '$PORT_DIR/bindings/js/PausedTimeouts.cpp']) + ['$WEBKIT_PORT_DIR/bindings/js/PausedTimeouts.h', + '$WEBKIT_PORT_DIR/bindings/js/PausedTimeouts.cpp']) env.Alias('webkit', i) # HTML tag and attribute names @@ -489,9 +491,9 @@ env.Alias('webkit', i) # --extraDefines $HTML_FLAGS. env.Command(['$DERIVED_DIR/HTMLNames.cpp', '$DERIVED_DIR/HTMLNames.h'], - ['$PORT_DIR/dom/make_names.pl', - '$PORT_DIR/html/HTMLTagNames.in', - '$PORT_DIR/html/HTMLAttributeNames.in'], + ['$WEBKIT_PORT_DIR/dom/make_names.pl', + '$WEBKIT_PORT_DIR/html/HTMLTagNames.in', + '$WEBKIT_PORT_DIR/html/HTMLAttributeNames.in'], '$PERL $_PERL_INCLUDE_FLAGS ${SOURCES[0].posix} ' '--tags ${SOURCES[1].posix} ' '--attrs ${SOURCES[2].posix} ' @@ -500,8 +502,8 @@ env.Command(['$DERIVED_DIR/HTMLNames.cpp', env.Command(['$DERIVED_DIR/XMLNames.cpp', '$DERIVED_DIR/XMLNames.h'], - ['$PORT_DIR/dom/make_names.pl', - '$PORT_DIR/xml/xmlattrs.in'], + ['$WEBKIT_PORT_DIR/dom/make_names.pl', + '$WEBKIT_PORT_DIR/xml/xmlattrs.in'], '$PERL $_PERL_INCLUDE_FLAGS ${SOURCES[0].posix} ' '--attrs ${SOURCES[1].posix} ' '--outputDir $DERIVED_DIR') @@ -510,9 +512,9 @@ env.Command(['$DERIVED_DIR/SVGElementFactory.cpp', '$DERIVED_DIR/SVGElementFactory.h', '$DERIVED_DIR/SVGNames.cpp', '$DERIVED_DIR/SVGNames.h'], - ['$PORT_DIR/dom/make_names.pl', - '$PORT_DIR/svg/svgtags.in', - '$PORT_DIR/svg/svgattrs.in'], + ['$WEBKIT_PORT_DIR/dom/make_names.pl', + '$WEBKIT_PORT_DIR/svg/svgtags.in', + '$WEBKIT_PORT_DIR/svg/svgattrs.in'], '$PERL $_PERL_INCLUDE_FLAGS ${SOURCES[0].posix} ' '--tags ${SOURCES[1].posix} ' '--attrs ${SOURCES[2].posix} ' @@ -523,8 +525,8 @@ env.Command(['$DERIVED_DIR/SVGElementFactory.cpp', env.Command(['$DERIVED_DIR/XLinkNames.cpp', '$DERIVED_DIR/XLinkNames.h'], - ['$PORT_DIR/dom/make_names.pl', - '$PORT_DIR/svg/xlinkattrs.in'], + ['$WEBKIT_PORT_DIR/dom/make_names.pl', + '$WEBKIT_PORT_DIR/svg/xlinkattrs.in'], '$PERL $_PERL_INCLUDE_FLAGS ${SOURCES[0].posix} ' '--attrs ${SOURCES[1].posix} ' '--outputDir $DERIVED_DIR') @@ -543,20 +545,20 @@ def cat_files(target, source, env): fout.close() env.Command('$DERIVED_DIR/html4.css', - ['$PORT_DIR/css/html4.css', + ['$WEBKIT_PORT_DIR/css/html4.css', '$PORTROOT/css/html4-overrides.css'], cat_files) env.Command('$DERIVED_DIR/quirks.css', - ['$PORT_DIR/css/quirks.css', + ['$WEBKIT_PORT_DIR/css/quirks.css', '$PORTROOT/css/quirks-overrides.css'], cat_files) env.Command(['$DERIVED_DIR/UserAgentStyleSheets.h', '$DERIVED_DIR/UserAgentStyleSheetsData.cpp'], - ['$PORT_DIR/css/make-css-file-arrays.pl', - '$PORT_DIR/css/view-source.css', - '$PORT_DIR/css/svg.css', + ['$WEBKIT_PORT_DIR/css/make-css-file-arrays.pl', + '$WEBKIT_PORT_DIR/css/view-source.css', + '$WEBKIT_PORT_DIR/css/svg.css', '$DERIVED_DIR/html4.css', '$DERIVED_DIR/quirks.css'], '$PERL ${SOURCES[0].posix} ${TARGETS.posix} ${SOURCES[1:].posix}') @@ -578,7 +580,7 @@ def create_h_wrapper(target, source, env): def BuildYacc(env, dir, name, file): env.Command(['$DERIVED_DIR/%s.cpp' % file, '$DERIVED_DIR/%s.h' % file], - ['$PORT_DIR/%s/%s.y' % (dir, file)], + ['$WEBKIT_PORT_DIR/%s/%s.y' % (dir, file)], ['$YACC -d -p %s ${SOURCES[0].posix} ' % name + '-o ${TARGET.posix}', Action(create_h_wrapper), @@ -589,24 +591,24 @@ BuildYacc(env, 'css', 'cssyy', 'CSSGrammar') # TODO(bradnelson): need to add in error checking -env.Command('$PORT_DIR/SVGCSSValueKeywords.in', - '$PORT_DIR/css/SVGCSSValueKeywords.in', +env.Command('$WEBKIT_PORT_DIR/SVGCSSValueKeywords.in', + '$WEBKIT_PORT_DIR/css/SVGCSSValueKeywords.in', '$PERL -ne "print lc" $SOURCES > $TARGET') -env.Command('$PORT_DIR/CSSValueKeywords.in', - ['$PORT_DIR/css/CSSValueKeywords.in', - '$PORT_DIR/css/SVGCSSValueKeywords.in'], +env.Command('$WEBKIT_PORT_DIR/CSSValueKeywords.in', + ['$WEBKIT_PORT_DIR/css/CSSValueKeywords.in', + '$WEBKIT_PORT_DIR/css/SVGCSSValueKeywords.in'], '$PERL -ne "print lc" $SOURCES > $TARGET') -env.Command('$PORT_DIR/CSSPropertyNames.in', - ['$PORT_DIR/css/CSSPropertyNames.in', - '$PORT_DIR/css/SVGCSSPropertyNames.in'], +env.Command('$WEBKIT_PORT_DIR/CSSPropertyNames.in', + ['$WEBKIT_PORT_DIR/css/CSSPropertyNames.in', + '$WEBKIT_PORT_DIR/css/SVGCSSPropertyNames.in'], '$PERL -ne "print lc" $SOURCES > $TARGET') env.Command(['$DERIVED_DIR/CSSValueKeywords.c', '$DERIVED_DIR/CSSValueKeywords.h'], - ['$PORT_DIR/css/makevalues.pl', - '$PORT_DIR/CSSValueKeywords.in'], + ['$WEBKIT_PORT_DIR/css/makevalues.pl', + '$WEBKIT_PORT_DIR/CSSValueKeywords.in'], ['cd ${SOURCES[1].dir} && $PERL ${str(SOURCES[0].abspath).replace("\\\\", "/")}', Move('${TARGETS[0]}', '${SOURCES[1].dir}/${TARGETS[0].file}'), Move('${TARGETS[1]}', '${SOURCES[1].dir}/${TARGETS[1].file}'), @@ -614,8 +616,8 @@ env.Command(['$DERIVED_DIR/CSSValueKeywords.c', env.Command(['$DERIVED_DIR/CSSPropertyNames.cpp', '$DERIVED_DIR/CSSPropertyNames.h'], - ['$PORT_DIR/css/makeprop.pl', - '$PORT_DIR/CSSPropertyNames.in'], + ['$WEBKIT_PORT_DIR/css/makeprop.pl', + '$WEBKIT_PORT_DIR/CSSPropertyNames.in'], ['cd ${SOURCES[1].dir} && $PERL ${str(SOURCES[0].abspath).replace("\\\\", "/")}', Move('${TARGETS[0]}', '${SOURCES[1].dir}/${TARGETS[0].file}'), Move('${TARGETS[1]}', '${SOURCES[1].dir}/${TARGETS[1].file}'), @@ -624,25 +626,25 @@ env.Command(['$DERIVED_DIR/CSSPropertyNames.cpp', # DOCTYPE strings env.Command('$DERIVED_DIR/DocTypeStrings.cpp', - '$PORT_DIR/html/DocTypeStrings.gperf', + '$WEBKIT_PORT_DIR/html/DocTypeStrings.gperf', 'gperf -CEot -L ANSI-C -k "*" -N findDoctypeEntry -F ' + \ ',PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards ' + \ '$SOURCE > $TARGET') # color names env.Command('$DERIVED_DIR/ColorData.c', - '$PORT_DIR/platform/ColorData.gperf', + '$WEBKIT_PORT_DIR/platform/ColorData.gperf', 'gperf -CDEot -L ANSI-C -k "*" -N findColor -D -s 2 ' + \ '$SOURCE > $TARGET') # HTML entity names env.Command('$DERIVED_DIR/HTMLEntityNames.c', - '$PORT_DIR/html/HTMLEntityNames.gperf', + '$WEBKIT_PORT_DIR/html/HTMLEntityNames.gperf', 'gperf -a -L ANSI-C -C -G -c -o -t -k "*" -N findEntity ' + \ '-D -s 2 $SOURCE > $TARGET') # CSS tokenizer env.Command('$DERIVED_DIR/tokenizer.cpp', - ['$PORT_DIR/css/tokenizer.flex', - '$PORT_DIR/css/maketokenizer'], + ['$WEBKIT_PORT_DIR/css/tokenizer.flex', + '$WEBKIT_PORT_DIR/css/maketokenizer'], 'flex --nowarn -t $SOURCE | perl ${SOURCES[1]} > $TARGET') diff --git a/webkit/glue/SConscript b/webkit/glue/SConscript index 589f2ea..ead5570 100644 --- a/webkit/glue/SConscript +++ b/webkit/glue/SConscript @@ -6,12 +6,6 @@ Import('env') env = env.Clone() -env.Append( - CPPPATH = [ - '$WEBKIT_DIR/build/WebCore', - ] -) - if env['PLATFORM'] == 'win32': env.Append( CCFLAGS = [ |