• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS.  All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import("//build/dotfile_settings.gni")
10
11# The location of the build configuration file.
12buildconfig = "//build/config/BUILDCONFIG.gn"
13
14# The secondary source root is a parallel directory tree where
15# GN build files are placed when they can not be placed directly
16# in the source tree, e.g. for third party source trees.
17secondary_source = "//build/secondary/"
18
19# These are the targets to check headers for by default. The files in targets
20# matching these patterns (see "gn help label_pattern" for format) will have
21# their includes checked for proper dependencies when you run either
22# "gn check" or "gn gen --check".
23check_targets = [
24  ":webrtc_common",
25  "//api/*",
26  "//audio/*",
27  "//backup/*",
28  "//call/*",
29  "//common_audio/*",
30  "//common_video/*",
31  "//examples/*",
32  "//logging/*",
33  "//media/*",
34  "//modules/*",
35  "//p2p/*",
36  "//pc/*",
37  "//rtc_base/*",
38  "//rtc_tools/*",
39  "//sdk/*",
40  "//stats/*",
41  "//system_wrappers/*",
42  "//test/*",
43  "//video/*",
44  "//third_party/libyuv/*",
45]
46
47# These are the list of GN files that run exec_script. This whitelist exists
48# to force additional review for new uses of exec_script, which is strongly
49# discouraged except for gypi_to_gn calls.
50exec_script_whitelist = build_dotfile_settings.exec_script_whitelist +
51                        [ "//build_overrides/build.gni" ]
52
53default_args = {
54  # Webrtc does not support component builds because we are not using the
55  # template "component" but we rely directly on "rtc_static_library" and
56  # "rtc_shared_library". This means that we cannot use the chromium default
57  # value for this argument.
58  # This also means that the user can override this value using --args or
59  # the args.gn file but this setting will be ignored because we don't support
60  # component builds.
61  is_component_build = false
62
63  mac_sdk_min = "10.12"
64
65  ios_deployment_target = "10.0"
66
67  # The SDK API level, in contrast, is set by build/android/AndroidManifest.xml.
68  android32_ndk_api_level = 16
69  android64_ndk_api_level = 21
70
71  # WebRTC does not provide the gflags dependency. Because libyuv uses it only
72  # for unittests, it can be disabled (see third_party/libyuv/BUILD.gn)
73  libyuv_use_gflags = false
74
75  enable_libaom = true
76
77  gtest_enable_absl_printers = true
78}
79