1*6777b538SAndroid Build Coastguard Worker# Copyright 2014 The Chromium Authors. All rights reserved. 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# This points to the ICU version of this file in ICU, but can point to 6*6777b538SAndroid Build Coastguard Worker# downstream-specific file when included as //third_party dependency. 7*6777b538SAndroid Build Coastguard Worker 8*6777b538SAndroid Build Coastguard Workerif (defined(is_fuchsia_tree) && is_fuchsia_tree) { 9*6777b538SAndroid Build Coastguard Worker # This file is supposed to exist only in the Fuchsia build tree. 10*6777b538SAndroid Build Coastguard Worker import("//build/icu.gni") 11*6777b538SAndroid Build Coastguard Worker} else { 12*6777b538SAndroid Build Coastguard Worker declare_args() { 13*6777b538SAndroid Build Coastguard Worker # Tells icu to load an external data file rather than rely on the icudata 14*6777b538SAndroid Build Coastguard Worker # being linked directly into the binary. 15*6777b538SAndroid Build Coastguard Worker icu_use_data_file = true 16*6777b538SAndroid Build Coastguard Worker 17*6777b538SAndroid Build Coastguard Worker # If true, then this creates a stub data file. This should be disabled if 18*6777b538SAndroid Build Coastguard Worker # a custom data file will be used instead, in order to avoid conflicting 19*6777b538SAndroid Build Coastguard Worker # symbols. 20*6777b538SAndroid Build Coastguard Worker icu_use_stub_data = true 21*6777b538SAndroid Build Coastguard Worker 22*6777b538SAndroid Build Coastguard Worker # If true, compile icu into a standalone static library. Currently this is 23*6777b538SAndroid Build Coastguard Worker # only useful on Chrome OS. 24*6777b538SAndroid Build Coastguard Worker icu_disable_thin_archive = false 25*6777b538SAndroid Build Coastguard Worker 26*6777b538SAndroid Build Coastguard Worker # If set to nonempty, this is the label of the directory to be used to pull 27*6777b538SAndroid Build Coastguard Worker # the ICU data files content. The setting has effect only when building 28*6777b538SAndroid Build Coastguard Worker # inside the Fuchsia source tree. 29*6777b538SAndroid Build Coastguard Worker icu_fuchsia_override_data_dir = "" 30*6777b538SAndroid Build Coastguard Worker 31*6777b538SAndroid Build Coastguard Worker # If set, the ":icudata" target will copy the ICU data to $root_build_dir. 32*6777b538SAndroid Build Coastguard Worker icu_copy_icudata_to_root_build_dir = true 33*6777b538SAndroid Build Coastguard Worker 34*6777b538SAndroid Build Coastguard Worker # Fuchsia sometimes requires extra compilation flags for ICU to adapt it to 35*6777b538SAndroid Build Coastguard Worker # its current toolchain. Since it takes a while for ICU to roll through 36*6777b538SAndroid Build Coastguard Worker # Fuchsia, it can take a long time from an ICU commit to a fix rolling into 37*6777b538SAndroid Build Coastguard Worker # Fuchsia. This flag allows us to define the flag ahead of time in 38*6777b538SAndroid Build Coastguard Worker # //build/icu.gni, and remove the rollout issues. 39*6777b538SAndroid Build Coastguard Worker icu_fuchsia_extra_compile_flags = [] 40*6777b538SAndroid Build Coastguard Worker 41*6777b538SAndroid Build Coastguard Worker # Similar to above, except it allows adding an entire `config` target. 42*6777b538SAndroid Build Coastguard Worker icu_fuchsia_extra_configs = [] 43*6777b538SAndroid Build Coastguard Worker 44*6777b538SAndroid Build Coastguard Worker # Similar to above, except it allows removing an entire `config` target, if 45*6777b538SAndroid Build Coastguard Worker # it exists. 46*6777b538SAndroid Build Coastguard Worker icu_fuchsia_remove_configs = [] 47*6777b538SAndroid Build Coastguard Worker } 48*6777b538SAndroid Build Coastguard Worker 49*6777b538SAndroid Build Coastguard Worker # Set to true if icu is being built from the Fuchsia tree. 50*6777b538SAndroid Build Coastguard Worker icu_is_in_fuchsia = defined(is_fuchsia_tree) && is_fuchsia_tree 51*6777b538SAndroid Build Coastguard Worker} 52