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 19declare_args() { 20 # Android 32-bit non-component, non-clang builds cannot have symbol_level=2 21 # due to 4GiB file size limit, see https://crbug.com/648948. 22 # Set this flag to true to skip the assertion. 23 ignore_elf32_limitations = false 24 25 # Use the system install of Xcode for tools like ibtool, libtool, etc. 26 # This does not affect the compiler. When this variable is false, targets will 27 # instead use a hermetic install of Xcode. [The hermetic install can be 28 # obtained with gclient sync after setting the environment variable 29 # FORCE_MAC_TOOLCHAIN]. 30 use_system_xcode = "" 31} 32 33if (use_system_xcode == "") { 34 if (target_os == "mac") { 35 _result = exec_script("//build/mac/should_use_hermetic_xcode.py", 36 [ target_os ], 37 "value") 38 use_system_xcode = _result == 0 39 } 40 if (target_os == "ios") { 41 use_system_xcode = true 42 } 43} 44