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 if sys.platform == 'win32': | 10 if sys.platform == 'win32': |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 '$SANDBOX_DIR/sandbox.scons', | 497 '$SANDBOX_DIR/sandbox.scons', |
498 ], | 498 ], |
499 ) | 499 ) |
500 | 500 |
501 linux_env.Append( | 501 linux_env.Append( |
502 # We need rt for clock_gettime. | 502 # We need rt for clock_gettime. |
503 LIBS = ['rt'], | 503 LIBS = ['rt'], |
504 | 504 |
505 ICU_LIBS = ['icu'], | 505 ICU_LIBS = ['icu'], |
506 ) | 506 ) |
| 507 |
| 508 # Build an "official" build (DCHECKs completely compiled out, etc). |
| 509 if ARGUMENTS.get('OFFICIAL') == '1': |
| 510 linux_env.Append(CPPDEFINES=['OFFICIAL_BUILD']) |
| 511 |
507 # Build with support for gcov when COVERAGE=1. | 512 # Build with support for gcov when COVERAGE=1. |
508 if ARGUMENTS.get('COVERAGE') == '1': | 513 if ARGUMENTS.get('COVERAGE') == '1': |
509 linux_env.Append(CCFLAGS=['-fprofile-arcs', '-ftest-coverage']) | 514 linux_env.Append(CCFLAGS=['-fprofile-arcs', '-ftest-coverage']) |
510 linux_env.Append(LINKFLAGS=['-fprofile-arcs']) | 515 linux_env.Append(LINKFLAGS=['-fprofile-arcs']) |
511 | 516 |
512 # Build with support for gprof when PROFILE=1. | 517 # Build with support for gprof when PROFILE=1. |
513 if ARGUMENTS.get('PROFILE') == '1': | 518 if ARGUMENTS.get('PROFILE') == '1': |
514 linux_env.Append(CCFLAGS=['-pg', '-g']) | 519 linux_env.Append(CCFLAGS=['-pg', '-g']) |
515 linux_env.Append(LINKFLAGS=['-pg']) | 520 linux_env.Append(LINKFLAGS=['-pg']) |
516 | 521 |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 'all_libraries', | 816 'all_libraries', |
812 'all_languages', | 817 'all_languages', |
813 'all_programs', | 818 'all_programs', |
814 'all_test_programs', | 819 'all_test_programs', |
815 ], projects = [p], | 820 ], projects = [p], |
816 COMPONENT_VS_PROJECT_SCRIPT_PATH=( | 821 COMPONENT_VS_PROJECT_SCRIPT_PATH=( |
817 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), | 822 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), |
818 ) | 823 ) |
819 | 824 |
820 # ------------------------------------------------------------------------- | 825 # ------------------------------------------------------------------------- |
OLD | NEW |