1# Copyright 2014 The Chromium Authors 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# There is more advice on where to put build flags in the "Build flag" section 15# of //build/config/BUILDCONFIG.gn. 16 17import("//build/config/chrome_build.gni") 18import("//build/config/chromecast_build.gni") 19 20declare_args() { 21 # Enables proprietary codecs and demuxers; e.g. H264, AAC, MP3, and MP4. 22 # We always build Google Chrome and Chromecast with proprietary codecs. 23 # 24 # Note: this flag is used by WebRTC which is DEPSed into Chrome. Moving it 25 # out of //build will require using the build_overrides directory. 26 # 27 # Do not add any other conditions to the following line. 28 # 29 # TODO(crbug.com/1314528): Remove chromecast-related conditions and force 30 # builds to explicitly specify this. 31 proprietary_codecs = is_chrome_branded || is_castos || is_cast_android 32 33 # libudev usage. This currently only affects the content layer. 34 use_udev = (is_linux && !is_castos) || is_chromeos 35 36 use_dbus = is_linux || is_chromeos 37 38 use_gio = is_linux && !is_castos 39 40 use_blink = !is_ios 41} 42# 43# ============================================= 44# PLEASE DO NOT ADD MORE FLAGS TO THIS FILE 45# ============================================= 46# 47# See comment at the top. 48