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/cast.gni") 18import("//build/config/chrome_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 is_chrome_for_testing_branded 33 34 # libudev usage. This currently only affects the content layer. 35 use_udev = (is_linux && !is_castos) || is_chromeos 36 37 use_dbus = is_linux || is_chromeos 38 39 use_gio = is_linux && !is_castos 40 41 use_blink = !is_ios 42} 43# 44# ============================================= 45# PLEASE DO NOT ADD MORE FLAGS TO THIS FILE 46# ============================================= 47# 48# See comment at the top. 49