| 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 5699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5710 'target_conditions': [ | 5710 'target_conditions': [ |
| 5711 ['_toolset=="host"', { 'cflags!': [ '-Wno-unused-local-typedefs' ]}], | 5711 ['_toolset=="host"', { 'cflags!': [ '-Wno-unused-local-typedefs' ]}], |
| 5712 ], | 5712 ], |
| 5713 }, | 5713 }, |
| 5714 }], | 5714 }], |
| 5715 # In the android webview build, force host targets to be compiled with clang | 5715 # In the android webview build, force host targets to be compiled with clang |
| 5716 # as the hermetic host gcc is very old on some platforms. This is already | 5716 # as the hermetic host gcc is very old on some platforms. This is already |
| 5717 # the default on the current development version of AOSP but we force it | 5717 # the default on the current development version of AOSP but we force it |
| 5718 # here in case we need to compile against an older release version. We also | 5718 # here in case we need to compile against an older release version. We also |
| 5719 # explicitly set it to false for target binaries to avoid causing problems | 5719 # explicitly set it to false for target binaries to avoid causing problems |
| 5720 # for the work to enable clang by default in AOSP. | 5720 # for the work to enable clang by default in AOSP. We also force the use of |
| 5721 # libstdc++ on host as peculiarities of the android gyp backend mean that |
| 5722 # using libc++ doesn't work, and Chromium doesn't yet require a more modern |
| 5723 # C++ library. |
| 5721 ['android_webview_build==1', { | 5724 ['android_webview_build==1', { |
| 5722 'target_defaults': { | 5725 'target_defaults': { |
| 5723 'target_conditions': [ | 5726 'target_conditions': [ |
| 5724 ['_toolset=="host"', { | 5727 ['_toolset=="host"', { |
| 5725 'aosp_build_settings': { | 5728 'aosp_build_settings': { |
| 5726 'LOCAL_CLANG': 'true', | 5729 'LOCAL_CLANG': 'true', |
| 5730 'LOCAL_CXX_STL': 'libstdc++', |
| 5727 }, | 5731 }, |
| 5728 }, { # else: _toolset != "host" | 5732 }, { # else: _toolset != "host" |
| 5729 'aosp_build_settings': { | 5733 'aosp_build_settings': { |
| 5730 'LOCAL_CLANG': 'false', | 5734 'LOCAL_CLANG': 'false', |
| 5731 }, | 5735 }, |
| 5732 }], | 5736 }], |
| 5733 ], | 5737 ], |
| 5734 }, | 5738 }, |
| 5735 }], | 5739 }], |
| 5736 # We need a special case to handle the android webview build on mac because | 5740 # We need a special case to handle the android webview build on mac because |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5888 # settings in target dicts. SYMROOT is a special case, because many other | 5892 # settings in target dicts. SYMROOT is a special case, because many other |
| 5889 # Xcode variables depend on it, including variables such as | 5893 # Xcode variables depend on it, including variables such as |
| 5890 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5894 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5891 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5895 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5892 # files to appear (when present) in the UI as actual files and not red | 5896 # files to appear (when present) in the UI as actual files and not red |
| 5893 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5897 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5894 # and therefore SYMROOT, needs to be set at the project level. | 5898 # and therefore SYMROOT, needs to be set at the project level. |
| 5895 'SYMROOT': '<(DEPTH)/xcodebuild', | 5899 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5896 }, | 5900 }, |
| 5897 } | 5901 } |
| OLD | NEW |