Henrik Kjellander | 4117775 | 2015-04-09 13:36:28 | [diff] [blame] | 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 | |
kjellander | ad6f646 | 2016-11-29 14:35:14 | [diff] [blame] | 9 | import("//build/dotfile_settings.gni") |
| 10 | |
Henrik Kjellander | 4117775 | 2015-04-09 13:36:28 | [diff] [blame] | 11 | # The location of the build configuration file. |
| 12 | buildconfig = "//build/config/BUILDCONFIG.gn" |
| 13 | |
Mirko Bonadei | d28434b | 2021-04-14 15:52:26 | [diff] [blame] | 14 | # The python interpreter to use by default. On Windows, this will look |
Jeremy Leconte | 09bb4f0 | 2024-04-09 12:54:10 | [diff] [blame] | 15 | # for vpython3.exe and vpython3.bat. |
| 16 | script_executable = "vpython3" |
Mirko Bonadei | d28434b | 2021-04-14 15:52:26 | [diff] [blame] | 17 | |
Henrik Kjellander | 4117775 | 2015-04-09 13:36:28 | [diff] [blame] | 18 | # 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. |
| 21 | secondary_source = "//build/secondary/" |
| 22 | |
Byoungchan Lee | 8ed1e93 | 2021-05-20 09:30:10 | [diff] [blame] | 23 | # 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 Kjellander | 4117775 | 2015-04-09 13:36:28 | [diff] [blame] | 25 | # their includes checked for proper dependencies when you run either |
| 26 | # "gn check" or "gn gen --check". |
Christoffer Jansson | 5ab4102 | 2022-03-24 13:14:53 | [diff] [blame] | 27 | no_check_targets = [ |
| 28 | "//third_party/icu/*", |
| 29 | |
Christoffer Dewerin | 7a00882 | 2024-02-27 10:22:56 | [diff] [blame] | 30 | # TODO: crbug/326607005 - GTEST_HAS_ABSL is broken |
| 31 | "//third_party/googletest:gmock", |
| 32 | "//third_party/googletest:gtest", |
Christoffer Jansson | 5ab4102 | 2022-03-24 13:14:53 | [diff] [blame] | 33 | ] |
Henrik Kjellander | 4117775 | 2015-04-09 13:36:28 | [diff] [blame] | 34 | |
| 35 | # These are the list of GN files that run exec_script. This whitelist exists |
| 36 | # to force additional review for new uses of exec_script, which is strongly |
| 37 | # discouraged except for gypi_to_gn calls. |
oprypin | 370c6d5 | 2017-09-11 18:38:48 | [diff] [blame] | 38 | exec_script_whitelist = build_dotfile_settings.exec_script_whitelist + |
| 39 | [ "//build_overrides/build.gni" ] |
mbonadei | 9660627 | 2017-03-04 03:41:59 | [diff] [blame] | 40 | |
Emil Lundmark | 2360208 | 2024-06-28 07:39:35 | [diff] [blame] | 41 | export_compile_commands = [ "*" ] |
| 42 | |
mbonadei | 9660627 | 2017-03-04 03:41:59 | [diff] [blame] | 43 | default_args = { |
| 44 | # Webrtc does not support component builds because we are not using the |
| 45 | # template "component" but we rely directly on "rtc_static_library" and |
| 46 | # "rtc_shared_library". This means that we cannot use the chromium default |
| 47 | # value for this argument. |
| 48 | # This also means that the user can override this value using --args or |
| 49 | # the args.gn file but this setting will be ignored because we don't support |
| 50 | # component builds. |
| 51 | is_component_build = false |
erikchen | 0ff7800 | 2017-07-13 16:03:13 | [diff] [blame] | 52 | |
kjellander | ec2c93e | 2017-09-08 17:52:17 | [diff] [blame] | 53 | mac_sdk_min = "10.12" |
oprypin | 28104eb | 2017-08-02 08:26:18 | [diff] [blame] | 54 | |
Jeremy Leconte | 9b81d2c | 2024-07-23 13:07:35 | [diff] [blame] | 55 | ios_deployment_target = "14.0" |
Oleh Prypin | ceec4d0 | 2017-11-28 17:47:21 | [diff] [blame] | 56 | |
Mirko Bonadei | 81ed7e5 | 2018-01-18 16:24:43 | [diff] [blame] | 57 | # The SDK API level, in contrast, is set by build/android/AndroidManifest.xml. |
Mirko Bonadei | 7e2c89c | 2023-03-13 10:17:28 | [diff] [blame] | 58 | android32_ndk_api_level = 21 |
Mirko Bonadei | 81ed7e5 | 2018-01-18 16:24:43 | [diff] [blame] | 59 | android64_ndk_api_level = 21 |
| 60 | |
oprypin | fbbba3f | 2017-09-25 15:34:41 | [diff] [blame] | 61 | # WebRTC does not provide the gflags dependency. Because libyuv uses it only |
| 62 | # for unittests, it can be disabled (see third_party/libyuv/BUILD.gn) |
| 63 | libyuv_use_gflags = false |
Mirko Bonadei | 4236991 | 2018-06-25 13:52:42 | [diff] [blame] | 64 | |
Danil Chapovalov | 560e87a | 2020-03-17 14:56:20 | [diff] [blame] | 65 | enable_libaom = true |
Danil Chapovalov | c46385c | 2020-03-11 09:45:57 | [diff] [blame] | 66 | |
Mirko Bonadei | db7ea8c | 2018-08-13 06:52:42 | [diff] [blame] | 67 | gtest_enable_absl_printers = true |
Mirko Bonadei | f5ea3b9 | 2021-11-15 14:41:28 | [diff] [blame] | 68 | |
| 69 | # Differently from Chromium, WebRTC still support SDK 21. |
| 70 | default_min_sdk_version = 21 |
Florent Castelli | 2aaf71b | 2022-04-06 01:46:13 | [diff] [blame] | 71 | |
| 72 | # Prevent jsoncpp to pass -Wno-deprecated-declarations to users |
| 73 | jsoncpp_no_deprecated_declarations = false |
Christoffer Jansson | a0adeb7 | 2022-09-14 07:55:50 | [diff] [blame] | 74 | |
| 75 | # Fixes the abi-revision issue. |
| 76 | # TODO(https://bugs.webrtc.org/14437): Remove this section if general |
| 77 | # Chromium fix resolves the problem. |
| 78 | fuchsia_sdk_readelf_exec = |
| 79 | "//third_party/llvm-build/Release+Asserts/bin/llvm-readelf" |
Mirko Bonadei | 07e83f2 | 2024-08-08 07:58:19 | [diff] [blame] | 80 | |
| 81 | # WebRTC doesn't use jni_zero's multiplexing. Since this causes an error |
| 82 | # let's temporarily disable it. |
| 83 | enable_jni_multiplexing = false |
Jeremy Leconte | 2cc99f1 | 2024-11-06 09:26:33 | [diff] [blame] | 84 | |
Jeremy Leconte | 849549d | 2024-11-08 20:02:24 | [diff] [blame] | 85 | # TODO(b/42223878): use_fuzztest_wrapper adds a dependency to //base so |
| 86 | # let's temporarly disable it. |
Jeremy Leconte | 2cc99f1 | 2024-11-06 09:26:33 | [diff] [blame] | 87 | use_fuzztest_wrapper = false |
mbonadei | 9660627 | 2017-03-04 03:41:59 | [diff] [blame] | 88 | } |