blob: 669044db81cb2185be374b0b10027093c5683c35 [file] [log] [blame]
Henrik Kjellander0be9df42016-02-23 07:18:43 +01001# 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-16 23:29:30 -07009# Some non-Chromium builds don't support building java targets.
10enable_java_templates = true
11
ehmaldonado70279212016-08-31 01:59:54 -070012# Some non-Chromium builds don't use Chromium's third_party/binutils.
13linux_use_bundled_binutils_override = true
14
Mirko Bonadei6ef89e72018-11-14 09:52:53 +010015# Don't set this variable to true when building stadalone WebRTC, it is
16# only needed to support both WebRTC standalone and Chromium builds.
kjellandere3897ad2016-04-28 02:51:02 -070017build_with_chromium = false
ehmaldonado2df32a32016-08-24 07:46:11 -070018
19# Use our own suppressions files.
20asan_suppressions_file = "//build/sanitizers/asan_suppressions.cc"
Henrik Kjellander90fd7d82017-05-09 08:30:10 +020021lsan_suppressions_file = "//tools_webrtc/sanitizers/lsan_suppressions_webrtc.cc"
22tsan_suppressions_file = "//tools_webrtc/sanitizers/tsan_suppressions_webrtc.cc"
Henrik Kjellander95470332016-12-20 08:04:25 +010023msan_blacklist_path =
Henrik Kjellander90fd7d82017-05-09 08:30:10 +020024 rebase_path("//tools_webrtc/msan/blacklist.txt", root_build_dir)
Henrik Kjellander95470332016-12-20 08:04:25 +010025ubsan_blacklist_path =
Henrik Kjellander90fd7d82017-05-09 08:30:10 +020026 rebase_path("//tools_webrtc/ubsan/blacklist.txt", root_build_dir)
Henrik Kjellander95470332016-12-20 08:04:25 +010027ubsan_vptr_blacklist_path =
Henrik Kjellander90fd7d82017-05-09 08:30:10 +020028 rebase_path("//tools_webrtc/ubsan/vptr_blacklist.txt", root_build_dir)
ehmaldonado08c047e2016-08-31 01:55:04 -070029
30# Android lint suppressions file
Henrik Kjellander90fd7d82017-05-09 08:30:10 +020031lint_suppressions_file = "//tools_webrtc/android/suppressions.xml"
kjellanderb1125682016-10-26 13:38:03 -070032
33# For Chromium, Android 32-bit non-component, non-clang builds hit a 4GiB size
34# limit, making them requiring symbol_level=2. WebRTC doesn't hit that problem
35# so we just ignore that assert. See https://crbug.com/648948 for more info.
36ignore_elf32_limitations = true
kjellander218f4362016-11-13 23:54:24 -080037
oprypin370c6d52017-09-11 11:38:48 -070038# Use bundled hermetic Xcode installation maintainted by Chromium,
39# except for local iOS builds where it's unsupported.
40if (host_os == "mac") {
41 _result = exec_script("//build/mac/should_use_hermetic_xcode.py",
42 [ target_os ],
43 "value")
Mirko Bonadeie07d3b42019-03-14 16:37:19 +010044 assert(_result != 2,
45 "Do not allow building targets with the default " +
46 "hermetic toolchain if the minimum OS version is not met.")
47 use_system_xcode = _result == 0
oprypin370c6d52017-09-11 11:38:48 -070048}