1*8975f5c5SAndroid Build Coastguard Worker# Copyright 2022 The Chromium Authors 2*8975f5c5SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be 3*8975f5c5SAndroid Build Coastguard Worker# found in the LICENSE file. 4*8975f5c5SAndroid Build Coastguard Worker 5*8975f5c5SAndroid Build Coastguard Workerdeclare_args() { 6*8975f5c5SAndroid Build Coastguard Worker # Control whether cronet is built (this is usually set by the script 7*8975f5c5SAndroid Build Coastguard Worker # components/cronet/tools/cr_cronet.py as cronet requires specific 8*8975f5c5SAndroid Build Coastguard Worker # gn args to build correctly). 9*8975f5c5SAndroid Build Coastguard Worker is_cronet_build = false 10*8975f5c5SAndroid Build Coastguard Worker 11*8975f5c5SAndroid Build Coastguard Worker # Controls whether cronet is currently being built for AOSP or Chromium. 12*8975f5c5SAndroid Build Coastguard Worker # This will always be false when building Cronet for Chromium. 13*8975f5c5SAndroid Build Coastguard Worker # the flag exists to accommodate for the divergence between the repos. 14*8975f5c5SAndroid Build Coastguard Worker is_cronet_for_aosp_build = false 15*8975f5c5SAndroid Build Coastguard Worker} 16*8975f5c5SAndroid Build Coastguard Worker 17*8975f5c5SAndroid Build Coastguard Workerif (is_cronet_for_aosp_build) { 18*8975f5c5SAndroid Build Coastguard Worker assert( 19*8975f5c5SAndroid Build Coastguard Worker is_cronet_build, 20*8975f5c5SAndroid Build Coastguard Worker "`is_cronet_for_aosp_build` flag can be only enabled when `is_cronet_build` flag is enabled.") 21*8975f5c5SAndroid Build Coastguard Worker} 22