1*6777b538SAndroid Build Coastguard Worker# Copyright 2019 The Chromium Authors 2*6777b538SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be 3*6777b538SAndroid Build Coastguard Worker# found in the LICENSE file. 4*6777b538SAndroid Build Coastguard Worker 5*6777b538SAndroid Build Coastguard Workerdeclare_args() { 6*6777b538SAndroid Build Coastguard Worker # This is used only by Simple Chrome to bind its value to test-runner scripts 7*6777b538SAndroid Build Coastguard Worker # generated at build-time. 8*6777b538SAndroid Build Coastguard Worker cros_board = "" 9*6777b538SAndroid Build Coastguard Worker 10*6777b538SAndroid Build Coastguard Worker # Similar to cros_board above, this used only by test-runner scripts in 11*6777b538SAndroid Build Coastguard Worker # Simple Chrome. 12*6777b538SAndroid Build Coastguard Worker cros_sdk_version = "" 13*6777b538SAndroid Build Coastguard Worker} 14*6777b538SAndroid Build Coastguard Worker 15*6777b538SAndroid Build Coastguard Worker# Ensure that if one is set, the other is as well. 16*6777b538SAndroid Build Coastguard Workerassert(cros_board == "" == (cros_sdk_version == "")) 17*6777b538SAndroid Build Coastguard Worker 18*6777b538SAndroid Build Coastguard Workerdeclare_args() { 19*6777b538SAndroid Build Coastguard Worker # Determines if we're building for a Chrome OS device (or VM) and not just 20*6777b538SAndroid Build Coastguard Worker # linux-chromeos. NOTE: Most test targets in Chrome expect to run under 21*6777b538SAndroid Build Coastguard Worker # linux-chromeos, so some have compile-time asserts that intentionally fail 22*6777b538SAndroid Build Coastguard Worker # when this build flag is set. Build and run the tests for linux-chromeos 23*6777b538SAndroid Build Coastguard Worker # instead. 24*6777b538SAndroid Build Coastguard Worker # https://chromium.googlesource.com/chromium/src/+/main/docs/chromeos_build_instructions.md 25*6777b538SAndroid Build Coastguard Worker # https://chromium.googlesource.com/chromiumos/docs/+/main/simple_chrome_workflow.md 26*6777b538SAndroid Build Coastguard Worker is_chromeos_device = false 27*6777b538SAndroid Build Coastguard Worker 28*6777b538SAndroid Build Coastguard Worker # Determines if we run the test in skylab, aka the CrOS labs. 29*6777b538SAndroid Build Coastguard Worker is_skylab = false 30*6777b538SAndroid Build Coastguard Worker 31*6777b538SAndroid Build Coastguard Worker # Determines if we collect hardware information in chrome://system and 32*6777b538SAndroid Build Coastguard Worker # feedback logs. A similar build flag "hw_details" is defined in Chrome OS 33*6777b538SAndroid Build Coastguard Worker # (see https://crrev.com/c/3123455). 34*6777b538SAndroid Build Coastguard Worker is_chromeos_with_hw_details = false 35*6777b538SAndroid Build Coastguard Worker 36*6777b538SAndroid Build Coastguard Worker # Determines if we're willing to link against libinput 37*6777b538SAndroid Build Coastguard Worker use_libinput = false 38*6777b538SAndroid Build Coastguard Worker 39*6777b538SAndroid Build Coastguard Worker # Refers to the separate branding required for the reven build. 40*6777b538SAndroid Build Coastguard Worker is_reven = false 41*6777b538SAndroid Build Coastguard Worker} 42