1# Copyright 2014 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5# ============================================= 6# PLEASE DO NOT ADD MORE FLAGS TO THIS FILE 7# ============================================= 8# 9# 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). 13# 14# 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. 19 20import("//build/config/chromecast_build.gni") 21import("//build/config/chromeos/args.gni") 22import("//build/config/chromeos/ui_mode.gni") 23import("//build/config/ozone.gni") 24 25declare_args() { 26 # Indicates if Aura is enabled. Aura is a low-level windowing library, sort 27 # of a replacement for GDI or GTK. 28 use_aura = is_win || is_linux || is_chromeos || is_fuchsia 29} 30 31declare_args() { 32 # True means the UI is built using the "views" framework. 33 toolkit_views = is_mac || is_win || is_linux || is_chromeos || is_fuchsia 34 35 use_glib = is_linux && !is_chromecast 36} 37 38assert(!use_glib || (is_linux && !is_chromecast)) 39 40use_atk = is_linux && !is_chromecast && use_glib && 41 current_toolchain == default_toolchain 42 43# Whether using Xvfb to provide a display server for a test might be 44# necessary. 45use_xvfb_in_this_config = 46 is_linux || (is_chromeos_lacros && !is_chromeos_device) 47# 48# ============================================= 49# PLEASE DO NOT ADD MORE FLAGS TO THIS FILE 50# ============================================= 51# 52# See comment at the top. 53