• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
14if (target_environment == "") {
15  if (current_cpu == "x86" || current_cpu == "x64") {
16    target_environment = "simulator"
17  } else {
18    target_environment = "device"
19  }
20}
21
22assert(target_environment == "simulator" || target_environment == "device" ||
23       target_environment == "catalyst")
24