blob: c9824916adbd7706907fa258320765e67d32a605 [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
Byoungchan Lee8ed1e932021-05-20 18:30:10 +090023# These are the targets to skip header checking by default. The files in targets
24# matching these patterns (see "gn help label_pattern" for format) will not have
Henrik Kjellander41177752015-04-09 15:36:28 +020025# their includes checked for proper dependencies when you run either
26# "gn check" or "gn gen --check".
Christoffer Jansson5ab41022022-03-24 14:14:53 +010027no_check_targets = [
28 "//third_party/icu/*",
29
30 # TODO(crbug.com/1151236) Remove once fixed.
31 "//base/allocator/partition_allocator:partition_alloc",
32]
Henrik Kjellander41177752015-04-09 15:36:28 +020033
34# These are the list of GN files that run exec_script. This whitelist exists
35# to force additional review for new uses of exec_script, which is strongly
36# discouraged except for gypi_to_gn calls.
oprypin370c6d52017-09-11 11:38:48 -070037exec_script_whitelist = build_dotfile_settings.exec_script_whitelist +
38 [ "//build_overrides/build.gni" ]
mbonadei96606272017-03-03 19:41:59 -080039
40default_args = {
41 # Webrtc does not support component builds because we are not using the
42 # template "component" but we rely directly on "rtc_static_library" and
43 # "rtc_shared_library". This means that we cannot use the chromium default
44 # value for this argument.
45 # This also means that the user can override this value using --args or
46 # the args.gn file but this setting will be ignored because we don't support
47 # component builds.
48 is_component_build = false
erikchen0ff78002017-07-13 09:03:13 -070049
kjellanderec2c93e2017-09-08 10:52:17 -070050 mac_sdk_min = "10.12"
oprypin28104eb2017-08-02 01:26:18 -070051
Björn Terelius02768ae2021-07-02 16:19:32 +020052 ios_deployment_target = "12.0"
Oleh Prypinceec4d02017-11-28 18:47:21 +010053
Mirko Bonadei81ed7e52018-01-18 17:24:43 +010054 # The SDK API level, in contrast, is set by build/android/AndroidManifest.xml.
55 android32_ndk_api_level = 16
56 android64_ndk_api_level = 21
57
oprypinfbbba3f2017-09-25 08:34:41 -070058 # WebRTC does not provide the gflags dependency. Because libyuv uses it only
59 # for unittests, it can be disabled (see third_party/libyuv/BUILD.gn)
60 libyuv_use_gflags = false
Mirko Bonadei42369912018-06-25 15:52:42 +020061
Danil Chapovalov560e87a2020-03-17 15:56:20 +010062 enable_libaom = true
Danil Chapovalovc46385c2020-03-11 10:45:57 +010063
Mirko Bonadeidb7ea8c2018-08-13 08:52:42 +020064 gtest_enable_absl_printers = true
Mirko Bonadeif5ea3b92021-11-15 15:41:28 +010065
66 # Differently from Chromium, WebRTC still support SDK 21.
67 default_min_sdk_version = 21
Florent Castelli2aaf71b2022-04-06 03:46:13 +020068
69 # Prevent jsoncpp to pass -Wno-deprecated-declarations to users
70 jsoncpp_no_deprecated_declarations = false
Christoffer Janssona0adeb72022-09-14 09:55:50 +020071
72 # Fixes the abi-revision issue.
73 # TODO(https://bugs.webrtc.org/14437): Remove this section if general
74 # Chromium fix resolves the problem.
75 fuchsia_sdk_readelf_exec =
76 "//third_party/llvm-build/Release+Asserts/bin/llvm-readelf"
77 fuchsia_target_api_level = 9
mbonadei96606272017-03-03 19:41:59 -080078}