blob: df578bc929fb59c0388f5d2dced21bc09eb25499 [file] [log] [blame]
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
declare_args() {
# Deprecated, use is_lacros.
#
# This controls UI configuration for Chrome.
# If this flag is set, we assume Chrome runs on Chrome OS devices, using
# Wayland (instead of X11).
#
# TODO(crbug.com/1052397):
# Define chromeos_product instead, which takes either "browser" or "ash".
# Re-define the following variables as:
# is_lacros = chromeos_product == "browser"
# is_ash = chromeos_product == "ash"
chromeos_is_browser_only = false
# Setting this to true when building LaCrOS-chrome will cause it to
# *also* build ash-chrome in a subdirectory using an alternate toolchain.
# Don't set this unless you're sure you want it, because it'll double
# your build time.
also_build_ash_chrome = false
}
# is_chromeos_{ash,lacros} is used to specify that it is specific to either
# ash or lacros chrome for chromeos. For platform specific logic that
# applies to both, use is_chromeos instead.
# .gn files are evaluated multiple times for each toolchain.
# is_chromeos_{ash,lacros} should be set true only for builds with target
# toolchains.
is_chromeos_ash = is_chromeos && !chromeos_is_browser_only
# TODO(crbug.com/1052397): Remove is_linux once lacros-chrome switches
# to target_os=chromeos
is_chromeos_lacros = (is_chromeos || is_linux) && chromeos_is_browser_only