| OLD | NEW |
| 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 Import('env') | 5 Import('env') |
| 6 | 6 |
| 7 env = env.Clone() | 7 env = env.Clone() |
| 8 | 8 |
| 9 env.SConscript([ |
| 10 '$CHROME_DIR/third_party/hunspell/using_hunspell.scons', |
| 11 '$CHROME_DIR/third_party/wtl/using_wtl.scons', |
| 12 '$GOOGLE_UPDATE_DIR/using_google_update.scons', |
| 13 '$GTEST_DIR/../using_gtest.scons', |
| 14 '$ICU38_DIR/using_icu38.scons', |
| 15 '$LIBPNG_DIR/using_libpng.scons', |
| 16 '$LIBXML_DIR/using_libxml.scons', |
| 17 '$NPAPI_DIR/using_npapi.scons', |
| 18 '$SKIA_DIR/using_skia.scons', |
| 19 '$ZLIB_DIR/using_zlib.scons', |
| 20 ], {'env':env}) |
| 21 |
| 22 # TODO(sgk): convert into a using_*.scons pattern when we update WebKit. |
| 23 env.Append( |
| 24 CPPPATH = [ |
| 25 '$WEBKIT_DIR/build/localized_strings', |
| 26 ], |
| 27 ) |
| 9 | 28 |
| 10 env.Prepend( | 29 env.Prepend( |
| 11 CPPPATH = [ | 30 CPPPATH = [ |
| 12 '$CHROME_DIR/app/resources', | 31 '$CHROME_DIR/app/resources', |
| 13 #'$OBJ_ROOT/google_update', | 32 '$CHROME_DIR/app', |
| 14 '/chrome/tools/build/win', | |
| 15 '$CHROME_SRC_DIR', | 33 '$CHROME_SRC_DIR', |
| 16 ], | 34 ], |
| 17 CPPDEFINES = [ | 35 CPPDEFINES = [ |
| 18 'U_STATIC_IMPLEMENTATION', | |
| 19 'USE_HUNSPELL', | |
| 20 'HUNSPELL_CHROME_CLIENT', | |
| 21 'LIBXML_STATIC', | |
| 22 'PNG_USER_CONFIG', | |
| 23 'CHROME_PNG_WRITE_SUPPORT', | |
| 24 'GOOGLE_CHROME_BUILD', | 36 'GOOGLE_CHROME_BUILD', |
| 25 ], | 37 ], |
| 26 ) | 38 ) |
| 27 | 39 |
| 28 if env['PLATFORM'] == 'win32': | 40 if env['PLATFORM'] == 'win32': |
| 29 env.Prepend( | 41 env.Prepend( |
| 30 CCFLAGS = [ | 42 CPPPATH = [ |
| 31 '/TP', | 43 '$CHROME_DIR/tools/build/win', |
| 32 ], | 44 ], |
| 33 ) | 45 ) |
| 34 | 46 |
| 35 env.Append( | |
| 36 CPPPATH = [ | |
| 37 '$GTEST_DIR/include', | |
| 38 | |
| 39 '$GOOGLE_UPDATE_DIR', | |
| 40 '$CHROME_DIR/third_party/hunspell/src/hunspell', | |
| 41 '$CHROME_DIR/third_party/wtl/include', | |
| 42 '$NPAPI_DIR', | |
| 43 '$LIBXML_DIR/DerivedSources/include', | |
| 44 '$LIBXML_DIR/include', | |
| 45 '$ICU38_DIR/public/common', | |
| 46 '$ICU38_DIR/public/i18n', | |
| 47 '$CHROME_DIR/app', | |
| 48 '$WEBKIT_DIR/build/localized_strings', | |
| 49 '$ZLIB_DIR', | |
| 50 '$SKIA_DIR/include', | |
| 51 '$SKIA_DIR/include/corecg', | |
| 52 '$SKIA_DIR/platform', | |
| 53 '$LIBPNG_DIR', | |
| 54 '$BREAKPAD_DIR/src', | |
| 55 ], | |
| 56 ) | |
| 57 | |
| 58 input_files = [] | 47 input_files = [] |
| 59 | 48 |
| 60 if env['PLATFORM'] in ('posix', 'win32'): | 49 if env['PLATFORM'] in ('posix', 'win32'): |
| 61 # TODO: Port to Mac. | 50 # TODO: Port to Mac. |
| 62 input_files.extend([ | 51 input_files.extend([ |
| 63 'automation/url_request_failed_dns_job.cc', | 52 'automation/url_request_failed_dns_job.cc', |
| 64 'automation/url_request_mock_http_job.cc', | 53 'automation/url_request_mock_http_job.cc', |
| 65 'automation/url_request_mock_net_error_job.cc', | 54 'automation/url_request_mock_net_error_job.cc', |
| 66 'automation/url_request_slow_download_job.cc', | 55 'automation/url_request_slow_download_job.cc', |
| 67 'browser_process.cc', | 56 'browser_process.cc', |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 292 |
| 304 input_files.extend([ | 293 input_files.extend([ |
| 305 'web_contents_view_win.cc', | 294 'web_contents_view_win.cc', |
| 306 'render_widget_host_view_win.cc', | 295 'render_widget_host_view_win.cc', |
| 307 ]) | 296 ]) |
| 308 | 297 |
| 309 | 298 |
| 310 if env['PLATFORM'] in ('posix', 'win32'): | 299 if env['PLATFORM'] in ('posix', 'win32'): |
| 311 # TODO: This should work for all platforms. | 300 # TODO: This should work for all platforms. |
| 312 env.ChromeStaticLibrary('browser', input_files) | 301 env.ChromeStaticLibrary('browser', input_files) |
| 313 | |
| 314 | |
| 315 if env['PLATFORM'] == 'win32': | |
| 316 # TODO: Port this. | |
| 317 SConscript('debugger/SConscript', exports=['env']) | |
| OLD | NEW |