1*6777b538SAndroid Build Coastguard Worker# Copyright 2016 The Chromium Authors 2*6777b538SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be 3*6777b538SAndroid Build Coastguard Worker# found in the LICENSE file. 4*6777b538SAndroid Build Coastguard Worker 5*6777b538SAndroid Build Coastguard Worker# Features used by targets inside and outside of |url|. 6*6777b538SAndroid Build Coastguard Worker# For details see declare_args() in build/config/BUILDCONFIG.gn. 7*6777b538SAndroid Build Coastguard Workerdeclare_args() { 8*6777b538SAndroid Build Coastguard Worker # Enables the use of ICU alternatives in lieu of ICU for the target toolchain. 9*6777b538SAndroid Build Coastguard Worker # The flag is used for Cronet to reduce the size of the Cronet binary. 10*6777b538SAndroid Build Coastguard Worker use_platform_icu_alternatives = false 11*6777b538SAndroid Build Coastguard Worker} 12*6777b538SAndroid Build Coastguard Worker 13*6777b538SAndroid Build Coastguard Worker# Never use platform icu for host toolchain. 14*6777b538SAndroid Build Coastguard Worker# E.g. Don't apply this for host binaries when target_os = "android". 15*6777b538SAndroid Build Coastguard Workeruse_platform_icu_alternatives = 16*6777b538SAndroid Build Coastguard Worker use_platform_icu_alternatives && current_toolchain == default_toolchain 17