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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 | 506 |
507 # Build with support for gprof when PROFILE=1. | 507 # Build with support for gprof when PROFILE=1. |
508 if ARGUMENTS.get('PROFILE') == '1': | 508 if ARGUMENTS.get('PROFILE') == '1': |
509 linux_env.Append(CCFLAGS=['-pg', '-g']) | 509 linux_env.Append(CCFLAGS=['-pg', '-g']) |
510 linux_env.Append(LINKFLAGS=['-pg']) | 510 linux_env.Append(LINKFLAGS=['-pg']) |
511 | 511 |
512 # Build with symbols (useful for opt builds, for example) when SYMBOLS=1. | 512 # Build with symbols (useful for opt builds, for example) when SYMBOLS=1. |
513 if ARGUMENTS.get('SYMBOLS') == '1': | 513 if ARGUMENTS.get('SYMBOLS') == '1': |
514 linux_env.Append(CCFLAGS=['-g']) | 514 linux_env.Append(CCFLAGS=['-g']) |
515 | 515 |
| 516 # Build shared libraries (useful for fast links) when SHARED=1. |
| 517 if ARGUMENTS.get('SHARED') == '1': |
| 518 linux_env.Replace(COMPONENT_STATIC=False) |
| 519 |
516 # Build with system-provided NSS and GTK. | 520 # Build with system-provided NSS and GTK. |
517 if root_env['PLATFORM'] in ['linux', 'linux2', 'posix']: | 521 if root_env['PLATFORM'] in ['linux', 'linux2', 'posix']: |
518 try: | 522 try: |
519 linux_env.ParseConfig('pkg-config --cflags --libs nss') | 523 linux_env.ParseConfig('pkg-config --cflags --libs nss') |
520 linux_env.ParseConfig('pkg-config --cflags --libs gtk+-2.0') | 524 linux_env.ParseConfig('pkg-config --cflags --libs gtk+-2.0') |
521 linux_env.ParseConfig('pkg-config --cflags --libs pangoft2') | 525 linux_env.ParseConfig('pkg-config --cflags --libs pangoft2') |
522 except OSError, e: | 526 except OSError, e: |
523 print ('\n' | 527 print ('\n' |
524 'Failed to find a package dependency. Please install all the\n' | 528 'Failed to find a package dependency. Please install all the\n' |
525 'packages listed at\n' | 529 'packages listed at\n' |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 'all_libraries', | 806 'all_libraries', |
803 'all_languages', | 807 'all_languages', |
804 'all_programs', | 808 'all_programs', |
805 'all_test_programs', | 809 'all_test_programs', |
806 ], projects = [p], | 810 ], projects = [p], |
807 COMPONENT_VS_PROJECT_SCRIPT_PATH=( | 811 COMPONENT_VS_PROJECT_SCRIPT_PATH=( |
808 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), | 812 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), |
809 ) | 813 ) |
810 | 814 |
811 # ------------------------------------------------------------------------- | 815 # ------------------------------------------------------------------------- |
OLD | NEW |