| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # IMPORTANT: | 5 # IMPORTANT: |
| 6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
| 7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
| 8 { | 8 { |
| 9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
| 10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 # Enable the Syzygy optimization step. | 620 # Enable the Syzygy optimization step. |
| 621 'syzygy_optimize%': 0, | 621 'syzygy_optimize%': 0, |
| 622 | 622 |
| 623 # Enable hole punching for the protected video. | 623 # Enable hole punching for the protected video. |
| 624 'video_hole%': 0, | 624 'video_hole%': 0, |
| 625 | 625 |
| 626 # Automatically select platforms under ozone. Turn this off to | 626 # Automatically select platforms under ozone. Turn this off to |
| 627 # build only explicitly selected platforms. | 627 # build only explicitly selected platforms. |
| 628 'ozone_auto_platforms%': 1, | 628 'ozone_auto_platforms%': 1, |
| 629 | 629 |
| 630 # If this is set clang is used as host compiler, but not as target |
| 631 # compiler. Always do this by default. |
| 632 'host_clang%': 1, |
| 633 |
| 630 'conditions': [ | 634 'conditions': [ |
| 631 ['android_webview_build==0', { | |
| 632 # If this is set clang is used as host compiler, but not as target | |
| 633 # compiler. Always do this by default, except when building for AOSP. | |
| 634 'host_clang%': 1, | |
| 635 }, { | |
| 636 # See http://crbug.com/377684 | |
| 637 'host_clang%': 0, | |
| 638 }], | |
| 639 # A flag for POSIX platforms | 635 # A flag for POSIX platforms |
| 640 ['OS=="win"', { | 636 ['OS=="win"', { |
| 641 'os_posix%': 0, | 637 'os_posix%': 0, |
| 642 }, { | 638 }, { |
| 643 'os_posix%': 1, | 639 'os_posix%': 1, |
| 644 }], | 640 }], |
| 645 | 641 |
| 646 # A flag for BSD platforms | 642 # A flag for BSD platforms |
| 647 ['OS=="freebsd" or OS=="openbsd"', { | 643 ['OS=="freebsd" or OS=="openbsd"', { |
| 648 'os_bsd%': 1, | 644 'os_bsd%': 1, |
| (...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1540 # it takes effect here. | 1536 # it takes effect here. |
| 1541 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa
n==0 and tsan==0 and msan==0 and ubsan_vptr==0', { | 1537 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa
n==0 and tsan==0 and msan==0 and ubsan_vptr==0', { |
| 1542 'conditions': [ | 1538 'conditions': [ |
| 1543 ['OS=="android"', { | 1539 ['OS=="android"', { |
| 1544 # We directly set the gcc versions since we know what we use. | 1540 # We directly set the gcc versions since we know what we use. |
| 1545 'gcc_version%': 48, | 1541 'gcc_version%': 48, |
| 1546 }, { | 1542 }, { |
| 1547 'gcc_version%': '<!pymod_do_main(compiler_version target compiler)', | 1543 'gcc_version%': '<!pymod_do_main(compiler_version target compiler)', |
| 1548 }], | 1544 }], |
| 1549 ['android_webview_build==1', { | 1545 ['android_webview_build==1', { |
| 1550 # Android WebView uses a hermetic toolchain even for host, so set it | 1546 # Android WebView uses a hermetic clang toolchain for host builds. |
| 1551 # manually here. | 1547 'host_gcc_version%': 0, |
| 1552 'conditions': [ | |
| 1553 ['host_os=="mac"', { | |
| 1554 'host_gcc_version%': 42, | |
| 1555 }, { # linux | |
| 1556 'host_gcc_version%': 46, | |
| 1557 }], | |
| 1558 ], | |
| 1559 }, { # android_webview_build!=1 | 1548 }, { # android_webview_build!=1 |
| 1560 'host_gcc_version%': '<!pymod_do_main(compiler_version host compiler
)', | 1549 'host_gcc_version%': '<!pymod_do_main(compiler_version host compiler
)', |
| 1561 }], | 1550 }], |
| 1562 ], | 1551 ], |
| 1563 }, { | 1552 }, { |
| 1564 'host_gcc_version%': 0, | 1553 'host_gcc_version%': 0, |
| 1565 'gcc_version%': 0, | 1554 'gcc_version%': 0, |
| 1566 }], | 1555 }], |
| 1567 ['OS=="win" and "<!pymod_do_main(dir_exists <(windows_sdk_default_path))"=
="True"', { | 1556 ['OS=="win" and "<!pymod_do_main(dir_exists <(windows_sdk_default_path))"=
="True"', { |
| 1568 'windows_sdk_path%': '<(windows_sdk_default_path)', | 1557 'windows_sdk_path%': '<(windows_sdk_default_path)', |
| (...skipping 4189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5758 # settings in target dicts. SYMROOT is a special case, because many other | 5747 # settings in target dicts. SYMROOT is a special case, because many other |
| 5759 # Xcode variables depend on it, including variables such as | 5748 # Xcode variables depend on it, including variables such as |
| 5760 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5749 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5761 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5750 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5762 # files to appear (when present) in the UI as actual files and not red | 5751 # files to appear (when present) in the UI as actual files and not red |
| 5763 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5752 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5764 # and therefore SYMROOT, needs to be set at the project level. | 5753 # and therefore SYMROOT, needs to be set at the project level. |
| 5765 'SYMROOT': '<(DEPTH)/xcodebuild', | 5754 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5766 }, | 5755 }, |
| 5767 } | 5756 } |
| OLD | NEW |