1# Copyright 2020 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5declare_args() { 6 # Configure the environment for which to build. Could be either "device", 7 # "simulator" or "catalyst". If unspecified, then it will be assumed to be 8 # "simulator" if the target_cpu is "x68" or "x64", "device" otherwise. The 9 # default is only there for compatibility reasons and will be removed (see 10 # crbug.com/1138425 for more details). 11 target_environment = "" 12 13 # Generate orderfile at application startup and then exit. 14 # NOTE: This flag adds runtime tooling to capture function call details, 15 # writes out an orderfile to the documents directory, then terminates the 16 # application. It should generally NOT be enabled. 17 ios_chrome_generate_order_file = false 18} 19 20if (target_environment == "") { 21 if (current_cpu == "x86" || current_cpu == "x64") { 22 target_environment = "simulator" 23 } else { 24 target_environment = "device" 25 } 26} 27 28assert(target_environment == "simulator" || target_environment == "device" || 29 target_environment == "catalyst") 30