Avi Drissman | 3e1a26c | 2022-09-15 20:26:03 | [diff] [blame] | 1 | # Copyright 2016 The Chromium Authors |
kapishnikov | abe280e | 2016-04-14 19:07:16 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | # Features used by targets inside and outside of |url|. |
| 6 | # For details see declare_args() in build/config/BUILDCONFIG.gn. |
| 7 | declare_args() { |
Hitoshi Yoshida | 0669723 | 2018-03-05 04:09:15 | [diff] [blame] | 8 | # Enables the use of ICU alternatives in lieu of ICU for the target toolchain. |
| 9 | # The flag is used for Cronet to reduce the size of the Cronet binary. |
kapishnikov | abe280e | 2016-04-14 19:07:16 | [diff] [blame] | 10 | use_platform_icu_alternatives = false |
| 11 | } |
Hitoshi Yoshida | 0669723 | 2018-03-05 04:09:15 | [diff] [blame] | 12 | |
| 13 | # Never use platform icu for host toolchain. |
| 14 | # E.g. Don't apply this for host binaries when target_os = "android". |
| 15 | use_platform_icu_alternatives = |
| 16 | use_platform_icu_alternatives && current_toolchain == default_toolchain |