Henrik Kjellander | 4117775 | 2015-04-09 15:36:28 +0200 | [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 06:35:14 -0800 | [diff] [blame] | 9 | import("//build/dotfile_settings.gni") |
| 10 | |
Henrik Kjellander | 4117775 | 2015-04-09 15:36:28 +0200 | [diff] [blame] | 11 | # The location of the build configuration file. |
| 12 | buildconfig = "//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. |
| 17 | secondary_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". |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 23 | check_targets = [ |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 24 | ":webrtc_common", |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 25 | "//api/*", |
| 26 | "//audio/*", |
| 27 | "//backup/*", |
| 28 | "//call/*", |
| 29 | "//common_audio/*", |
| 30 | "//common_video/*", |
Mirko Bonadei | cbaaaed | 2018-02-19 15:14:04 +0100 | [diff] [blame] | 31 | "//examples/*", |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 32 | "//logging/*", |
| 33 | "//media/*", |
| 34 | "//modules/*", |
| 35 | "//ortc/*", |
| 36 | "//p2p/*", |
| 37 | "//pc/*", |
| 38 | "//rtc_base/*", |
| 39 | "//rtc_tools/*", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 10:49:22 +0100 | [diff] [blame] | 40 | "//sdk/*", |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 41 | "//stats/*", |
| 42 | "//system_wrappers/*", |
| 43 | "//test/*", |
| 44 | "//video/*", |
Mirko Bonadei | 1bc1ec4 | 2018-02-09 07:47:30 +0100 | [diff] [blame] | 45 | "//third_party/libyuv/*", |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 46 | ] |
Henrik Kjellander | 4117775 | 2015-04-09 15:36:28 +0200 | [diff] [blame] | 47 | |
| 48 | # These are the list of GN files that run exec_script. This whitelist exists |
| 49 | # to force additional review for new uses of exec_script, which is strongly |
| 50 | # discouraged except for gypi_to_gn calls. |
oprypin | 370c6d5 | 2017-09-11 11:38:48 -0700 | [diff] [blame] | 51 | exec_script_whitelist = build_dotfile_settings.exec_script_whitelist + |
| 52 | [ "//build_overrides/build.gni" ] |
mbonadei | 9660627 | 2017-03-03 19:41:59 -0800 | [diff] [blame] | 53 | |
| 54 | default_args = { |
| 55 | # Webrtc does not support component builds because we are not using the |
| 56 | # template "component" but we rely directly on "rtc_static_library" and |
| 57 | # "rtc_shared_library". This means that we cannot use the chromium default |
| 58 | # value for this argument. |
| 59 | # This also means that the user can override this value using --args or |
| 60 | # the args.gn file but this setting will be ignored because we don't support |
| 61 | # component builds. |
| 62 | is_component_build = false |
erikchen | 0ff7800 | 2017-07-13 09:03:13 -0700 | [diff] [blame] | 63 | |
kjellander | ec2c93e | 2017-09-08 10:52:17 -0700 | [diff] [blame] | 64 | mac_sdk_min = "10.12" |
oprypin | 28104eb | 2017-08-02 01:26:18 -0700 | [diff] [blame] | 65 | |
Oleh Prypin | ceec4d0 | 2017-11-28 18:47:21 +0100 | [diff] [blame] | 66 | # http://bugs.webrtc.org/8570 |
| 67 | ios_deployment_target = "9.0" |
| 68 | |
Mirko Bonadei | 81ed7e5 | 2018-01-18 17:24:43 +0100 | [diff] [blame] | 69 | # The SDK API level, in contrast, is set by build/android/AndroidManifest.xml. |
| 70 | android32_ndk_api_level = 16 |
| 71 | android64_ndk_api_level = 21 |
| 72 | |
oprypin | 28104eb | 2017-08-02 01:26:18 -0700 | [diff] [blame] | 73 | # WebRTC does not want to switch to C++14 yet. |
| 74 | use_cxx11 = true |
charujain | 474acce | 2017-08-25 06:21:52 -0700 | [diff] [blame] | 75 | |
| 76 | # WebRTC relies on Chromium's Android test infrastructure. |
| 77 | use_cxx11_on_android = false |
oprypin | fbbba3f | 2017-09-25 08:34:41 -0700 | [diff] [blame] | 78 | |
| 79 | # WebRTC does not provide the gflags dependency. Because libyuv uses it only |
| 80 | # for unittests, it can be disabled (see third_party/libyuv/BUILD.gn) |
| 81 | libyuv_use_gflags = false |
Mirko Bonadei | 4236991 | 2018-06-25 15:52:42 +0200 | [diff] [blame] | 82 | |
Mirko Bonadei | db7ea8c | 2018-08-13 08:52:42 +0200 | [diff] [blame] | 83 | gtest_enable_absl_printers = true |
mbonadei | 9660627 | 2017-03-03 19:41:59 -0800 | [diff] [blame] | 84 | } |