blob: 137b6a40b2d239b081191e8ce2592a4dab7f9ad5 [file] [log] [blame]
Henrik Kjellander0be9df42016-02-23 06:18:431# Copyright (c) 2016 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
kjellander68208892016-06-17 06:29:309# Some non-Chromium builds don't support building java targets.
10enable_java_templates = true
11
Mirko Bonadei6ef89e72018-11-14 08:52:5312# Don't set this variable to true when building stadalone WebRTC, it is
13# only needed to support both WebRTC standalone and Chromium builds.
kjellandere3897ad2016-04-28 09:51:0214build_with_chromium = false
ehmaldonado2df32a32016-08-24 14:46:1115
Markus Handellf70fbc82020-06-03 22:41:2016# WebRTC checks out google_benchmark by default since it is always used.
17checkout_google_benchmark = true
18
ehmaldonado2df32a32016-08-24 14:46:1119# Use our own suppressions files.
20asan_suppressions_file = "//build/sanitizers/asan_suppressions.cc"
Henrik Kjellander90fd7d82017-05-09 06:30:1021lsan_suppressions_file = "//tools_webrtc/sanitizers/lsan_suppressions_webrtc.cc"
22tsan_suppressions_file = "//tools_webrtc/sanitizers/tsan_suppressions_webrtc.cc"
Artem Titovc39080c2021-05-27 15:08:4923msan_ignorelist_path =
Mirko Bonadei2a893202020-06-29 14:16:4924 rebase_path("//tools_webrtc/msan/suppressions.txt", root_build_dir)
Artem Titovc39080c2021-05-27 15:08:4925ubsan_ignorelist_path =
Mirko Bonadei2a893202020-06-29 14:16:4926 rebase_path("//tools_webrtc/ubsan/suppressions.txt", root_build_dir)
Artem Titovc39080c2021-05-27 15:08:4927ubsan_vptr_ignorelist_path =
Mirko Bonadei2a893202020-06-29 14:16:4928 rebase_path("//tools_webrtc/ubsan/vptr_suppressions.txt", root_build_dir)
ehmaldonado08c047e2016-08-31 08:55:0429
kjellanderb1125682016-10-26 20:38:0330# For Chromium, Android 32-bit non-component, non-clang builds hit a 4GiB size
31# limit, making them requiring symbol_level=2. WebRTC doesn't hit that problem
32# so we just ignore that assert. See https://crbug.com/648948 for more info.
33ignore_elf32_limitations = true
kjellander218f4362016-11-14 07:54:2434
oprypin370c6d52017-09-11 18:38:4835# Use bundled hermetic Xcode installation maintainted by Chromium,
36# except for local iOS builds where it's unsupported.
Andrey Logvinbccfd262021-03-08 19:12:2037# Allow for mac cross compile on linux machines.
38if (host_os == "mac" || host_os == "linux") {
oprypin370c6d52017-09-11 18:38:4839 _result = exec_script("//build/mac/should_use_hermetic_xcode.py",
40 [ target_os ],
41 "value")
Mirko Bonadeie07d3b42019-03-14 15:37:1942 assert(_result != 2,
43 "Do not allow building targets with the default " +
44 "hermetic toolchain if the minimum OS version is not met.")
45 use_system_xcode = _result == 0
oprypin370c6d52017-09-11 18:38:4846}
Jeremy Leconteb19cfee2020-06-25 20:57:4947
48declare_args() {
49 # WebRTC doesn't depend on //base from production code but only for testing
50 # purposes. In any case, it doesn't depend on //third_party/perfetto which
51 # is used for base tracing, so this feature is disabled.
52 enable_base_tracing = false
Courtney Edwardse3f70cd2020-07-22 09:03:4553 use_perfetto_client_library = false
Jeremy Lecontef4b956c2020-06-29 07:58:1754
Mirko Bonadei80939352021-04-12 17:03:3755 # Limits the defined //third_party/android_deps targets to only "buildCompile"
56 # and "buildCompileNoDeps" targets. This is useful for third-party
57 # repositories which do not use JUnit tests. For instance,
58 # limit_android_deps == true removes "gn gen" requirement for
59 # //third_party/robolectric .
60 limit_android_deps = false
61
Jeremy Lecontef4b956c2020-06-29 07:58:1762 # If true, it assumes that //third_party/abseil-cpp is an available
63 # dependency for googletest.
64 gtest_enable_absl_printers = true
Jeremy Leconteb19cfee2020-06-25 20:57:4965}