diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-20 00:39:44 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-20 00:39:44 +0000 |
commit | bda05798c0609582075a3b872c37ad56021920c4 (patch) | |
tree | 8cee1fbe5c54dfc67aa9eba4a0543170d92a5cb7 /webkit | |
parent | 023a54f549d447c0845271440e9918ce243445f8 (diff) | |
download | chromium_src-bda05798c0609582075a3b872c37ad56021920c4.zip chromium_src-bda05798c0609582075a3b872c37ad56021920c4.tar.gz chromium_src-bda05798c0609582075a3b872c37ad56021920c4.tar.bz2 |
Make pcre compile under Linux with SCons.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1077 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/SConscript | 12 | ||||
-rw-r--r-- | webkit/SConscript.javascriptcore_pcre | 27 |
2 files changed, 22 insertions, 17 deletions
diff --git a/webkit/SConscript b/webkit/SConscript index cbf3ed7..97074a2 100644 --- a/webkit/SConscript +++ b/webkit/SConscript @@ -77,8 +77,6 @@ env.Prepend( '$WEBKIT_DIR/port/platform/text', '$WEBKIT_DIR/port/plugins', '$WEBKIT_DIR/port/rendering', - '#/', - '.', '$WEBKIT_DIR/port/platform/image-decoders', '$WEBKIT_DIR/port/platform/image-decoders/bmp', @@ -99,11 +97,9 @@ env.Prepend( '$WEBKIT_DIR/port/storage', '$WEBKIT_DIR/port/xml', '$WEBKIT_DIR/port', - '$WEBKIT_DIR/port/os-win32', '$WEBKIT_DIR/port/wtf', '$THIRD_PARTY_WEBKIT_DIR/JavaScriptCore', '$THIRD_PARTY_WEBKIT_DIR/JavaScriptCore/wtf', - '$THIRD_PARTY_WEBKIT_DIR/JavaScriptCore/os-win32', '$WEBKIT_DIR/port/svg', '$WEBKIT_DIR/port/svg/graphics/filters', '$WEBKIT_DIR/port/plugins', @@ -190,11 +186,17 @@ if env['PLATFORM'] == 'win32': '_WIN32_WINNT=0x0600', 'WINVER=0x0600', ]) + + env.Prepend( + CPPPATH = [ + '$WEBKIT_DIR/port/os-win32', + '$THIRD_PARTY_WEBKIT_DIR/JavaScriptCore/os-win32', + ]) else: sconscript_dirs = [ # TODO(erg): For now, only JavaScriptCore compiles and links; the rest is next. # 'SConscript.port', -# 'SConscript.javascriptcore_pcre', + 'SConscript.javascriptcore_pcre', 'build/JSConfig/SConscript', 'build/JavaScriptCore/SConscript', # 'build/WebCore/SConscript', diff --git a/webkit/SConscript.javascriptcore_pcre b/webkit/SConscript.javascriptcore_pcre index 9e849c2..0ee9784 100644 --- a/webkit/SConscript.javascriptcore_pcre +++ b/webkit/SConscript.javascriptcore_pcre @@ -37,18 +37,21 @@ env.Prepend( CPPPATH = [ '$WEBKIT_DIR/port/JavaScriptCore', '$WEBKIT_DIR/port/JavaScriptCore/pcre', - ], - CCFLAGS = [ - '/TP', - '/wd4127', - '/wd4355', - '/wd4510', - '/wd4512', - '/wd4610', - '/wd4706', - '/wd4800', - ], -) + ]) + +if env['PLATFORM'] == 'win32': + env.Prepend( + CCFLAGS = [ + '/TP', + '/wd4127', + '/wd4355', + '/wd4510', + '/wd4512', + '/wd4610', + '/wd4706', + '/wd4800', + ], + ) dir = env.Dir('$PCRE_DIR') |