diff options
Diffstat (limited to 'chrome/third_party/hunspell/SConscript')
-rw-r--r-- | chrome/third_party/hunspell/SConscript | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/chrome/third_party/hunspell/SConscript b/chrome/third_party/hunspell/SConscript index d55c592..0162dad 100644 --- a/chrome/third_party/hunspell/SConscript +++ b/chrome/third_party/hunspell/SConscript @@ -42,18 +42,33 @@ env.Prepend( env.Append( CPPDEFINES = [ - 'W32', 'OPENOFFICEORG', 'CHROME_SPELL', 'HUNSPELL_CHROME_CLIENT', ], +) - CCFLAGS = [ - '/TP', +if env['PLATFORM'] == 'win32': + env.Append( + CPPDEFINES = [ + 'W32', + ], + CCFLAGS = [ + '/TP', - '/wd4800', - ], -) + '/wd4800', + ], + ) + +if env['PLATFORM'] == 'posix': + env.Append( + CCFLAGS = [ + '-Wno-parentheses', + '-Wno-unused-value', + '-Wno-unused-variable', + '-Wno-write-strings', + ], + ) input_files = [ 'google/bdict_reader.cc', |