blob: 9e7f4df85572d93dc76b955dd1fed8fe707a1ac4 [file] [log] [blame]
Avi Drissman73a09d12022-09-08 20:33:381# Copyright 2014 The Chromium Authors
[email protected]f38dc102014-02-12 11:34:252# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
brettw1d61ea72016-08-06 00:03:455# =============================================
6# PLEASE DO NOT ADD MORE FLAGS TO THIS FILE
7# =============================================
[email protected]f38dc102014-02-12 11:34:258#
brettw1d61ea72016-08-06 00:03:459# These flags are effectively global. Your feature flag should go near the
10# code it controls. Most of these items are here now because they control
11# legacy global #defines passed to the compiler (now replaced with generated
12# buildflag headers -- see //build/buildflag_header.gni).
[email protected]3ad0946b2014-02-24 21:29:4913#
brettw1d61ea72016-08-06 00:03:4514# These flags are ui-related so should eventually be moved to various places
15# in //ui/*.
16#
17# There is more advice on where to put build flags in the "Build flag" section
18# of //build/config/BUILDCONFIG.gn.
[email protected]f38dc102014-02-12 11:34:2519
mark a. foltze185ab2fa2023-11-06 21:21:2020import("//build/config/cast.gni")
Yuke Liao8f4228582021-04-02 22:28:4521import("//build/config/chromeos/args.gni")
Dirk Pranke79d065d2020-08-29 03:28:3022import("//build/config/chromeos/ui_mode.gni")
Maksim Sisovcecaf7e2021-09-01 08:01:4523import("//build/config/ozone.gni")
slan77bdc2e62015-09-21 17:56:2624
[email protected]f38dc102014-02-12 11:34:2525declare_args() {
[email protected]c48ad0b2014-02-19 20:31:5226 # Indicates if Aura is enabled. Aura is a low-level windowing library, sort
27 # of a replacement for GDI or GTK.
Sean McAllisterdeaa7402020-07-31 04:42:5428 use_aura = is_win || is_linux || is_chromeos || is_fuchsia
[email protected]f38dc102014-02-12 11:34:2529}
30
dprankef6fd4d72016-11-22 19:43:1331declare_args() {
32 # True means the UI is built using the "views" framework.
Sean McAllisterdeaa7402020-07-31 04:42:5433 toolkit_views = is_mac || is_win || is_linux || is_chromeos || is_fuchsia
Nick Diego Yamane632978e02019-08-14 22:35:4134
Andrew Grieve6a9a4d92021-12-21 16:03:2235 use_glib =
Ryan Keane3d77fa12022-06-16 01:52:4836 is_linux && !is_castos &&
Andrew Grieve6a9a4d92021-12-21 16:03:2237 # Avoid the need for glib when Android is building things via secondary
38 # toolchains.
39 target_os != "android"
dprankef6fd4d72016-11-22 19:43:1340}
41
Ryan Keane3d77fa12022-06-16 01:52:4842assert(!use_glib || (is_linux && !is_castos))
dpranke9de17432015-06-09 19:04:5743
Ryan Keane3d77fa12022-06-16 01:52:4844use_atk = use_glib && current_toolchain == default_toolchain
Dirk Pranke79d065d2020-08-29 03:28:3045
46# Whether using Xvfb to provide a display server for a test might be
47# necessary.
Georg Neisa324c502025-03-03 06:04:5448use_xvfb_in_this_config = is_linux
Dirk Pranke79d065d2020-08-29 03:28:3049#
brettw1d61ea72016-08-06 00:03:4550# =============================================
51# PLEASE DO NOT ADD MORE FLAGS TO THIS FILE
52# =============================================
53#
54# See comment at the top.