| 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 os | 5 import os |
| 6 import shutil | 6 import shutil |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 | 9 |
| 10 p = ARGUMENTS.get('PROGRESS') | 10 p = ARGUMENTS.get('PROGRESS') |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 if not root_env.WantSystemLib('libjpeg'): | 234 if not root_env.WantSystemLib('libjpeg'): |
| 235 sconscripts.append('$LIBJPEG_DIR/SConscript') | 235 sconscripts.append('$LIBJPEG_DIR/SConscript') |
| 236 if not root_env.WantSystemLib('libxml'): | 236 if not root_env.WantSystemLib('libxml'): |
| 237 sconscripts.append('$LIBXML_DIR/SConscript') | 237 sconscripts.append('$LIBXML_DIR/SConscript') |
| 238 root_env.Append(XML_LIB = ['libxml']) | 238 root_env.Append(XML_LIB = ['libxml']) |
| 239 else: | 239 else: |
| 240 root_env.Append(XML_LIB = ['xml2']) | 240 root_env.Append(XML_LIB = ['xml2']) |
| 241 if not root_env.WantSystemLib('libxslt'): | 241 if not root_env.WantSystemLib('libxslt'): |
| 242 sconscripts.append('$LIBXSLT_DIR/SConscript') | 242 sconscripts.append('$LIBXSLT_DIR/SConscript') |
| 243 if not root_env.WantSystemLib('lzma_sdk'): | 243 if not root_env.WantSystemLib('lzma_sdk'): |
| 244 sconscripts.append('$LZMA_SDK_DIR/SConscript') | 244 sconscripts.append('$LZMA_SDK_DIR/lzma_sdk.scons') |
| 245 if not root_env.WantSystemLib('zlib'): | 245 if not root_env.WantSystemLib('zlib'): |
| 246 sconscripts.append('$ZLIB_DIR/zlib.scons') | 246 sconscripts.append('$ZLIB_DIR/zlib.scons') |
| 247 root_env.Append(ZLIB_LIB = ['zlib']) | 247 root_env.Append(ZLIB_LIB = ['zlib']) |
| 248 else: | 248 else: |
| 249 root_env.Append(ZLIB_LIB = ['z']) | 249 root_env.Append(ZLIB_LIB = ['z']) |
| 250 sconscripts.extend([ | 250 sconscripts.extend([ |
| 251 '$BSDIFF_DIR/SConscript', | 251 '$BSDIFF_DIR/bsdiff.scons', |
| 252 '$BSPATCH_DIR/bspatch.scons', |
| 252 '$DMG_FP_DIR/dmg_fp.scons', | 253 '$DMG_FP_DIR/dmg_fp.scons', |
| 253 '$ICU38_DIR/icu38.scons', | 254 '$ICU38_DIR/icu38.scons', |
| 254 '$MODP_B64_DIR/modp_b64.scons', | 255 '$MODP_B64_DIR/modp_b64.scons', |
| 255 '$BSPATCH_DIR/SConscript', | |
| 256 ]) | 256 ]) |
| 257 | 257 |
| 258 if LoadComponent('v8') and root_env.Dir('$CHROME_SRC_DIR/v8').exists(): | 258 if LoadComponent('v8') and root_env.Dir('$CHROME_SRC_DIR/v8').exists(): |
| 259 sconscripts.append('$OBJ_ROOT/build/SConscript.v8') | 259 sconscripts.append('$OBJ_ROOT/build/SConscript.v8') |
| 260 | 260 |
| 261 if LoadComponent('webkit'): | 261 if LoadComponent('webkit'): |
| 262 sconscripts.append('$WEBKIT_DIR/SConscript') | 262 sconscripts.append('$WEBKIT_DIR/SConscript') |
| 263 | 263 |
| 264 | 264 |
| 265 # Add the final list into the root environment to be build in BuildComponents. | 265 # Add the final list into the root environment to be build in BuildComponents. |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 PERL_INCLUDE_FLAG = '-I ', | 503 PERL_INCLUDE_FLAG = '-I ', |
| 504 PERL_INCLUDE_SUFFIX = '', | 504 PERL_INCLUDE_SUFFIX = '', |
| 505 _PERL_INCLUDE_FLAGS = ('${_concat(PERL_INCLUDE_FLAG, ' | 505 _PERL_INCLUDE_FLAGS = ('${_concat(PERL_INCLUDE_FLAG, ' |
| 506 'PERL_INCLUDE_PATH, ' | 506 'PERL_INCLUDE_PATH, ' |
| 507 'PERL_INCLUDE_SUFFIX,' | 507 'PERL_INCLUDE_SUFFIX,' |
| 508 '__env__, RDirs, TARGET, SOURCE)}'), | 508 '__env__, RDirs, TARGET, SOURCE)}'), |
| 509 ) | 509 ) |
| 510 | 510 |
| 511 linux_env.FilterOut( | 511 linux_env.FilterOut( |
| 512 BUILD_SCONSCRIPTS = [ | 512 BUILD_SCONSCRIPTS = [ |
| 513 '$BSPATCH_DIR/SConscript', | 513 '$BSPATCH_DIR/bspatch.scons', |
| 514 '$BSDIFF_DIR/SConscript', | 514 '$BSDIFF_DIR/bsdiff.scons', |
| 515 '$GEARS_DIR/SConscript', | 515 '$GEARS_DIR/SConscript', |
| 516 '$GOOGLE_UPDATE_DIR/SConscript', | 516 '$GOOGLE_UPDATE_DIR/SConscript', |
| 517 '$RLZ_DIR/SConscript', | 517 '$RLZ_DIR/SConscript', |
| 518 '$SANDBOX_DIR/sandbox.scons', | 518 '$SANDBOX_DIR/sandbox.scons', |
| 519 ], | 519 ], |
| 520 ) | 520 ) |
| 521 | 521 |
| 522 linux_env.Append( | 522 linux_env.Append( |
| 523 # We need rt for clock_gettime. | 523 # We need rt for clock_gettime. |
| 524 LIBS = ['rt'], | 524 LIBS = ['rt'], |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 mac_env.Replace( | 594 mac_env.Replace( |
| 595 # Reproduce XCode's behavior of using gcc even to link C++, | 595 # Reproduce XCode's behavior of using gcc even to link C++, |
| 596 # and distinguishing it the -x c++ option. | 596 # and distinguishing it the -x c++ option. |
| 597 CC = 'gcc-4.2', | 597 CC = 'gcc-4.2', |
| 598 CXX = 'g++-4.2', | 598 CXX = 'g++-4.2', |
| 599 LINK = '$CXX', | 599 LINK = '$CXX', |
| 600 ) | 600 ) |
| 601 | 601 |
| 602 mac_env.FilterOut( | 602 mac_env.FilterOut( |
| 603 BUILD_SCONSCRIPTS = [ | 603 BUILD_SCONSCRIPTS = [ |
| 604 '$BSPATCH_DIR/SConscript', | 604 '$BSPATCH_DIR/bspatch.scons', |
| 605 '$BSDIFF_DIR/SConscript', | 605 '$BSDIFF_DIR/bsdiff.scons', |
| 606 '$LIBJPEG_DIR/SConscript', | 606 '$LIBJPEG_DIR/SConscript', |
| 607 '$LIBXML_DIR/SConscript', | 607 '$LIBXML_DIR/SConscript', |
| 608 '$LIBXSLT_DIR/SConscript', | 608 '$LIBXSLT_DIR/SConscript', |
| 609 '$BREAKPAD_DIR/SConscript', | 609 '$BREAKPAD_DIR/SConscript', |
| 610 '$CHROME_DIR/SConscript', | 610 '$CHROME_DIR/SConscript', |
| 611 '$GEARS_DIR/SConscript', | 611 '$GEARS_DIR/SConscript', |
| 612 '$GOOGLE_UPDATE_DIR/SConscript', | 612 '$GOOGLE_UPDATE_DIR/SConscript', |
| 613 '$RLZ_DIR/SConscript', | 613 '$RLZ_DIR/SConscript', |
| 614 '$SANDBOX_DIR/sandbox.scons', | 614 '$SANDBOX_DIR/sandbox.scons', |
| 615 'build/SConscript.v8', | 615 'build/SConscript.v8', |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 'all_libraries', | 787 'all_libraries', |
| 788 'all_languages', | 788 'all_languages', |
| 789 'all_programs', | 789 'all_programs', |
| 790 'all_test_programs', | 790 'all_test_programs', |
| 791 ], projects = [p], | 791 ], projects = [p], |
| 792 COMPONENT_VS_PROJECT_SCRIPT_PATH=( | 792 COMPONENT_VS_PROJECT_SCRIPT_PATH=( |
| 793 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), | 793 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), |
| 794 ) | 794 ) |
| 795 | 795 |
| 796 # ------------------------------------------------------------------------- | 796 # ------------------------------------------------------------------------- |
| OLD | NEW |