1# Copyright 2018 Google Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Variable that can be used to support multiple build scenarios, like having
16# Chromium specific targets in a client project's GN file etc.
17build_with_chromium = false
18
19# Don't use Chromium's third_party/binutils.
20linux_use_bundled_binutils_override = false
21
22declare_args() {
23  # Android 32-bit non-component, non-clang builds cannot have symbol_level=2
24  # due to 4GiB file size limit, see https://crbug.com/648948.
25  # Set this flag to true to skip the assertion.
26  ignore_elf32_limitations = false
27
28  # Use the system install of Xcode for tools like ibtool, libtool, etc.
29  # This does not affect the compiler. When this variable is false, targets will
30  # instead use a hermetic install of Xcode. [The hermetic install can be
31  # obtained with gclient sync after setting the environment variable
32  # FORCE_MAC_TOOLCHAIN].
33  use_system_xcode = ""
34}
35
36if (use_system_xcode == "") {
37  if (target_os == "mac") {
38    _result = exec_script("//build/mac/should_use_hermetic_xcode.py",
39                          [ target_os ],
40                          "value")
41    use_system_xcode = _result == 0
42  }
43  if (target_os == "ios") {
44    use_system_xcode = true
45  }
46}
47