Henrik Kjellander | 0be9df4 | 2016-02-23 07:18:43 +0100 | [diff] [blame] | 1 | # 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 | |
kjellander | 6820889 | 2016-06-16 23:29:30 -0700 | [diff] [blame] | 9 | # Some non-Chromium builds don't support building java targets. |
| 10 | enable_java_templates = true |
| 11 | |
ehmaldonado | 7027921 | 2016-08-31 01:59:54 -0700 | [diff] [blame] | 12 | # Some non-Chromium builds don't use Chromium's third_party/binutils. |
| 13 | linux_use_bundled_binutils_override = true |
| 14 | |
kjellander | e3897ad | 2016-04-28 02:51:02 -0700 | [diff] [blame] | 15 | # Variable that can be used to support multiple build scenarios, like having |
| 16 | # Chromium specific targets in a client project's GN file etc. |
| 17 | build_with_chromium = false |
ehmaldonado | 2df32a3 | 2016-08-24 07:46:11 -0700 | [diff] [blame] | 18 | |
| 19 | # Use our own suppressions files. |
| 20 | asan_suppressions_file = "//build/sanitizers/asan_suppressions.cc" |
Henrik Kjellander | 90fd7d8 | 2017-05-09 08:30:10 +0200 | [diff] [blame] | 21 | lsan_suppressions_file = "//tools_webrtc/sanitizers/lsan_suppressions_webrtc.cc" |
| 22 | tsan_suppressions_file = "//tools_webrtc/sanitizers/tsan_suppressions_webrtc.cc" |
Henrik Kjellander | 9547033 | 2016-12-20 08:04:25 +0100 | [diff] [blame] | 23 | msan_blacklist_path = |
Henrik Kjellander | 90fd7d8 | 2017-05-09 08:30:10 +0200 | [diff] [blame] | 24 | rebase_path("//tools_webrtc/msan/blacklist.txt", root_build_dir) |
Henrik Kjellander | 9547033 | 2016-12-20 08:04:25 +0100 | [diff] [blame] | 25 | ubsan_blacklist_path = |
Henrik Kjellander | 90fd7d8 | 2017-05-09 08:30:10 +0200 | [diff] [blame] | 26 | rebase_path("//tools_webrtc/ubsan/blacklist.txt", root_build_dir) |
Henrik Kjellander | 9547033 | 2016-12-20 08:04:25 +0100 | [diff] [blame] | 27 | ubsan_vptr_blacklist_path = |
Henrik Kjellander | 90fd7d8 | 2017-05-09 08:30:10 +0200 | [diff] [blame] | 28 | rebase_path("//tools_webrtc/ubsan/vptr_blacklist.txt", root_build_dir) |
ehmaldonado | 08c047e | 2016-08-31 01:55:04 -0700 | [diff] [blame] | 29 | |
| 30 | # Android lint suppressions file |
Henrik Kjellander | 90fd7d8 | 2017-05-09 08:30:10 +0200 | [diff] [blame] | 31 | lint_suppressions_file = "//tools_webrtc/android/suppressions.xml" |
kjellander | b112568 | 2016-10-26 13:38:03 -0700 | [diff] [blame] | 32 | |
| 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. |
| 36 | ignore_elf32_limitations = true |
kjellander | 218f436 | 2016-11-13 23:54:24 -0800 | [diff] [blame] | 37 | |
oprypin | 370c6d5 | 2017-09-11 11:38:48 -0700 | [diff] [blame] | 38 | # Use bundled hermetic Xcode installation maintainted by Chromium, |
| 39 | # except for local iOS builds where it's unsupported. |
| 40 | if (host_os == "mac") { |
| 41 | _result = exec_script("//build/mac/should_use_hermetic_xcode.py", |
| 42 | [ target_os ], |
| 43 | "value") |
| 44 | 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 |
| 48 | } |