blob: f1c62fae33fb3ae7a2c5725a5b69a8e95bf5c38c [file] [log] [blame]
# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
declare_args() {
# Configure the environment for which to build. Could be either "device",
# "simulator" or "catalyst". If unspecified, then it will be assumed to be
# "simulator" if the target_cpu is "x68" or "x64", "device" otherwise. The
# default is only there for compatibility reasons and will be removed (see
# crbug.com/1138425 for more details).
target_environment = ""
# Generate orderfile at application startup.
# NOTE: This flag adds runtime tooling to capture function call details and
# then writes out an orderfile to the documents directory. It should generally
# NOT be enabled.
ios_chrome_generate_order_file = false
}
if (target_environment == "") {
if (current_cpu == "x86" || current_cpu == "x64") {
target_environment = "simulator"
} else {
target_environment = "device"
}
}
assert(target_environment == "simulator" || target_environment == "device" ||
target_environment == "catalyst")