| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 # We need rt for clock_gettime. | 461 # We need rt for clock_gettime. |
| 462 LIBS = ['rt'], | 462 LIBS = ['rt'], |
| 463 | 463 |
| 464 ICU_LIBS = ['icu'], | 464 ICU_LIBS = ['icu'], |
| 465 ) | 465 ) |
| 466 # Build with support for gcov when COVERAGE=1. | 466 # Build with support for gcov when COVERAGE=1. |
| 467 if ARGUMENTS.get('COVERAGE') == '1': | 467 if ARGUMENTS.get('COVERAGE') == '1': |
| 468 linux_env.Append(CCFLAGS=['-fprofile-arcs', '-ftest-coverage']) | 468 linux_env.Append(CCFLAGS=['-fprofile-arcs', '-ftest-coverage']) |
| 469 linux_env.Append(LINKFLAGS=['-fprofile-arcs']) | 469 linux_env.Append(LINKFLAGS=['-fprofile-arcs']) |
| 470 | 470 |
| 471 # Build with support for gprof when PROFILE=1. |
| 472 if ARGUMENTS.get('PROFILE') == '1': |
| 473 linux_env.Append(CCFLAGS=['-pg', '-g']) |
| 474 linux_env.Append(LINKFLAGS=['-pg']) |
| 475 |
| 476 # Build with symbols (useful for opt builds, for example) when SYMBOLS=1. |
| 477 if ARGUMENTS.get('SYMBOLS') == '1': |
| 478 linux_env.Append(CCFLAGS=['-g']) |
| 479 |
| 471 # Build with system-provided NSS and GTK. | 480 # Build with system-provided NSS and GTK. |
| 472 if root_env['PLATFORM'] in ['linux', 'linux2', 'posix']: | 481 if root_env['PLATFORM'] in ['linux', 'linux2', 'posix']: |
| 473 try: | 482 try: |
| 474 linux_env.ParseConfig('pkg-config --cflags --libs nss') | 483 linux_env.ParseConfig('pkg-config --cflags --libs nss') |
| 475 linux_env.ParseConfig('pkg-config --cflags --libs gtk+-2.0') | 484 linux_env.ParseConfig('pkg-config --cflags --libs gtk+-2.0') |
| 476 linux_env.ParseConfig('pkg-config --cflags --libs pangoft2') | 485 linux_env.ParseConfig('pkg-config --cflags --libs pangoft2') |
| 477 except OSError, e: | 486 except OSError, e: |
| 478 print ('\n' | 487 print ('\n' |
| 479 'Failed to find a package dependency. Please install all the\n' | 488 'Failed to find a package dependency. Please install all the\n' |
| 480 'packages listed at\n' | 489 'packages listed at\n' |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 'all_libraries', | 725 'all_libraries', |
| 717 'all_languages', | 726 'all_languages', |
| 718 'all_programs', | 727 'all_programs', |
| 719 'all_test_programs', | 728 'all_test_programs', |
| 720 ], projects = [p], | 729 ], projects = [p], |
| 721 COMPONENT_VS_PROJECT_SCRIPT_PATH=( | 730 COMPONENT_VS_PROJECT_SCRIPT_PATH=( |
| 722 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), | 731 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), |
| 723 ) | 732 ) |
| 724 | 733 |
| 725 # ------------------------------------------------------------------------- | 734 # ------------------------------------------------------------------------- |
| OLD | NEW |