blob: 9c43afd2ca5fcbcb11958808362b4bc5e39373e5 [file] [log] [blame]
Henrik Kjellander41177752015-04-09 15:36:28 +02001# 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
kjellanderad6f6462016-11-29 06:35:14 -08009import("//build/dotfile_settings.gni")
10
Henrik Kjellander41177752015-04-09 15:36:28 +020011# The location of the build configuration file.
12buildconfig = "//build/config/BUILDCONFIG.gn"
13
Mirko Bonadeid28434b2021-04-14 17:52:26 +020014# The python interpreter to use by default. On Windows, this will look
15# for python3.exe and python3.bat.
16script_executable = "python3"
17
Henrik Kjellander41177752015-04-09 15:36:28 +020018# The secondary source root is a parallel directory tree where
19# GN build files are placed when they can not be placed directly
20# in the source tree, e.g. for third party source trees.
21secondary_source = "//build/secondary/"
22
23# These are the targets to check headers for by default. The files in targets
24# matching these patterns (see "gn help label_pattern" for format) will have
25# their includes checked for proper dependencies when you run either
26# "gn check" or "gn gen --check".
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020027check_targets = [
28 "//api/*",
29 "//audio/*",
30 "//backup/*",
31 "//call/*",
32 "//common_audio/*",
33 "//common_video/*",
Mirko Bonadeicbaaaed2018-02-19 15:14:04 +010034 "//examples/*",
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020035 "//logging/*",
36 "//media/*",
37 "//modules/*",
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020038 "//p2p/*",
39 "//pc/*",
40 "//rtc_base/*",
41 "//rtc_tools/*",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +010042 "//sdk/*",
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020043 "//stats/*",
44 "//system_wrappers/*",
45 "//test/*",
46 "//video/*",
Mirko Bonadei1bc1ec42018-02-09 07:47:30 +010047 "//third_party/libyuv/*",
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020048]
Henrik Kjellander41177752015-04-09 15:36:28 +020049
50# These are the list of GN files that run exec_script. This whitelist exists
51# to force additional review for new uses of exec_script, which is strongly
52# discouraged except for gypi_to_gn calls.
oprypin370c6d52017-09-11 11:38:48 -070053exec_script_whitelist = build_dotfile_settings.exec_script_whitelist +
54 [ "//build_overrides/build.gni" ]
mbonadei96606272017-03-03 19:41:59 -080055
56default_args = {
57 # Webrtc does not support component builds because we are not using the
58 # template "component" but we rely directly on "rtc_static_library" and
59 # "rtc_shared_library". This means that we cannot use the chromium default
60 # value for this argument.
61 # This also means that the user can override this value using --args or
62 # the args.gn file but this setting will be ignored because we don't support
63 # component builds.
64 is_component_build = false
erikchen0ff78002017-07-13 09:03:13 -070065
kjellanderec2c93e2017-09-08 10:52:17 -070066 mac_sdk_min = "10.12"
oprypin28104eb2017-08-02 01:26:18 -070067
Kári Tristan Helgasonffe93762019-03-07 13:14:32 +010068 ios_deployment_target = "10.0"
Oleh Prypinceec4d02017-11-28 18:47:21 +010069
Mirko Bonadei81ed7e52018-01-18 17:24:43 +010070 # The SDK API level, in contrast, is set by build/android/AndroidManifest.xml.
71 android32_ndk_api_level = 16
72 android64_ndk_api_level = 21
73
oprypinfbbba3f2017-09-25 08:34:41 -070074 # WebRTC does not provide the gflags dependency. Because libyuv uses it only
75 # for unittests, it can be disabled (see third_party/libyuv/BUILD.gn)
76 libyuv_use_gflags = false
Mirko Bonadei42369912018-06-25 15:52:42 +020077
Danil Chapovalov560e87a2020-03-17 15:56:20 +010078 enable_libaom = true
Danil Chapovalovc46385c2020-03-11 10:45:57 +010079
Mirko Bonadeidb7ea8c2018-08-13 08:52:42 +020080 gtest_enable_absl_printers = true
mbonadei96606272017-03-03 19:41:59 -080081}