xref: /aosp_15_r20/external/angle/build/config/features.gni (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker# Copyright 2014 The Chromium Authors
2*8975f5c5SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be
3*8975f5c5SAndroid Build Coastguard Worker# found in the LICENSE file.
4*8975f5c5SAndroid Build Coastguard Worker
5*8975f5c5SAndroid Build Coastguard Worker# =============================================
6*8975f5c5SAndroid Build Coastguard Worker#   PLEASE DO NOT ADD MORE FLAGS TO THIS FILE
7*8975f5c5SAndroid Build Coastguard Worker# =============================================
8*8975f5c5SAndroid Build Coastguard Worker#
9*8975f5c5SAndroid Build Coastguard Worker# These flags are effectively global. Your feature flag should go near the
10*8975f5c5SAndroid Build Coastguard Worker# code it controls. Most of these items are here now because they control
11*8975f5c5SAndroid Build Coastguard Worker# legacy global #defines passed to the compiler (now replaced with generated
12*8975f5c5SAndroid Build Coastguard Worker# buildflag headers -- see //build/buildflag_header.gni).
13*8975f5c5SAndroid Build Coastguard Worker#
14*8975f5c5SAndroid Build Coastguard Worker# There is more advice on where to put build flags in the "Build flag" section
15*8975f5c5SAndroid Build Coastguard Worker# of //build/config/BUILDCONFIG.gn.
16*8975f5c5SAndroid Build Coastguard Worker
17*8975f5c5SAndroid Build Coastguard Workerimport("//build/config/cast.gni")
18*8975f5c5SAndroid Build Coastguard Workerimport("//build/config/chrome_build.gni")
19*8975f5c5SAndroid Build Coastguard Worker
20*8975f5c5SAndroid Build Coastguard Workerdeclare_args() {
21*8975f5c5SAndroid Build Coastguard Worker  # Enables proprietary codecs and demuxers; e.g. H264, AAC, MP3, and MP4.
22*8975f5c5SAndroid Build Coastguard Worker  # We always build Google Chrome and Chromecast with proprietary codecs.
23*8975f5c5SAndroid Build Coastguard Worker  #
24*8975f5c5SAndroid Build Coastguard Worker  # Note: this flag is used by WebRTC which is DEPSed into Chrome. Moving it
25*8975f5c5SAndroid Build Coastguard Worker  # out of //build will require using the build_overrides directory.
26*8975f5c5SAndroid Build Coastguard Worker  #
27*8975f5c5SAndroid Build Coastguard Worker  # Do not add any other conditions to the following line.
28*8975f5c5SAndroid Build Coastguard Worker  #
29*8975f5c5SAndroid Build Coastguard Worker  # TODO(crbug.com/1314528): Remove chromecast-related conditions and force
30*8975f5c5SAndroid Build Coastguard Worker  # builds to explicitly specify this.
31*8975f5c5SAndroid Build Coastguard Worker  proprietary_codecs = is_chrome_branded || is_castos || is_cast_android ||
32*8975f5c5SAndroid Build Coastguard Worker                       is_chrome_for_testing_branded
33*8975f5c5SAndroid Build Coastguard Worker
34*8975f5c5SAndroid Build Coastguard Worker  # libudev usage. This currently only affects the content layer.
35*8975f5c5SAndroid Build Coastguard Worker  use_udev = (is_linux && !is_castos) || is_chromeos
36*8975f5c5SAndroid Build Coastguard Worker
37*8975f5c5SAndroid Build Coastguard Worker  use_dbus = is_linux || is_chromeos
38*8975f5c5SAndroid Build Coastguard Worker
39*8975f5c5SAndroid Build Coastguard Worker  use_gio = is_linux && !is_castos
40*8975f5c5SAndroid Build Coastguard Worker
41*8975f5c5SAndroid Build Coastguard Worker  use_blink = !is_ios
42*8975f5c5SAndroid Build Coastguard Worker}
43*8975f5c5SAndroid Build Coastguard Worker#
44*8975f5c5SAndroid Build Coastguard Worker# =============================================
45*8975f5c5SAndroid Build Coastguard Worker#   PLEASE DO NOT ADD MORE FLAGS TO THIS FILE
46*8975f5c5SAndroid Build Coastguard Worker# =============================================
47*8975f5c5SAndroid Build Coastguard Worker#
48*8975f5c5SAndroid Build Coastguard Worker# See comment at the top.
49