xref: /aosp_15_r20/external/angle/build/config/cronet/config.gni (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1# Copyright 2022 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  # Control whether cronet is built (this is usually set by the script
7  # components/cronet/tools/cr_cronet.py as cronet requires specific
8  # gn args to build correctly).
9  is_cronet_build = false
10
11  # Controls whether cronet is currently being built for AOSP or Chromium.
12  # This will always be false when building Cronet for Chromium.
13  # the flag exists to accommodate for the divergence between the repos.
14  is_cronet_for_aosp_build = false
15}
16
17if (is_cronet_for_aosp_build) {
18  assert(
19      is_cronet_build,
20      "`is_cronet_for_aosp_build` flag can be only enabled when `is_cronet_build` flag is enabled.")
21}
22