dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 1 | # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | # See https://bugs.chromium.org/p/webrtc/issues/detail?id=5453. |
jbudorick | 7f3a15f | 2016-06-10 06:28:40 -0700 | [diff] [blame] | 6 | # Some WebRTC targets require the 10.7 deployment version of the Mac SDK |
| 7 | # and a 10.11 min SDK, but those targets are only used in non-Chromium |
| 8 | # builds. We can remove this when Chromium drops 10.6 support and also |
| 9 | # requires 10.7. |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 10 | mac_sdk_min_build_override = "10.10" |
jbudorick | 7f3a15f | 2016-06-10 06:28:40 -0700 | [diff] [blame] | 11 | mac_deployment_target_build_override = "10.7" |
| 12 | |
| 13 | # Variable that can be used to support multiple build scenarios, like having |
| 14 | # Chromium specific targets in a client project's GN file etc. |
Nicolas Pena | e818bcb | 2017-02-09 14:37:49 -0500 | [diff] [blame] | 15 | build_with_chromium = false |
jbudorick | 7f3a15f | 2016-06-10 06:28:40 -0700 | [diff] [blame] | 16 | |
| 17 | # Support different NDK locations in non-Chromium builds. |
| 18 | default_android_ndk_root = "//third_party/android_ndk" |
Henrique Nakashima | bb04c59 | 2018-01-31 21:38:34 +0000 | [diff] [blame] | 19 | default_android_ndk_version = "r16" |
| 20 | default_android_ndk_major_version = 16 |
jbudorick | 7f3a15f | 2016-06-10 06:28:40 -0700 | [diff] [blame] | 21 | |
thestig | c65e11e | 2016-08-30 21:56:33 -0700 | [diff] [blame] | 22 | # PDFium builds don't support building java targets. |
jbudorick | 7f3a15f | 2016-06-10 06:28:40 -0700 | [diff] [blame] | 23 | enable_java_templates = false |
thestig | 6d5c56b | 2016-08-03 16:29:18 -0700 | [diff] [blame] | 24 | |
| 25 | # Whether to use the neon FPU instruction set or not. |
thestig | c65e11e | 2016-08-30 21:56:33 -0700 | [diff] [blame] | 26 | if (current_cpu == "arm") { |
thestig | 6d5c56b | 2016-08-03 16:29:18 -0700 | [diff] [blame] | 27 | arm_use_neon = true |
| 28 | } |
thestig | c65e11e | 2016-08-30 21:56:33 -0700 | [diff] [blame] | 29 | |
| 30 | # PDFium builds don't use Chromium's third_party/binutils. |
| 31 | linux_use_bundled_binutils_override = false |
thestig | 2fdacfb | 2016-08-30 22:49:02 -0700 | [diff] [blame] | 32 | |
| 33 | # PDFium just uses the Chromium suppression files for now. |
| 34 | asan_suppressions_file = "//build/sanitizers/asan_suppressions.cc" |
| 35 | lsan_suppressions_file = "//build/sanitizers/lsan_suppressions.cc" |
| 36 | tsan_suppressions_file = "//build/sanitizers/tsan_suppressions.cc" |
thestig | 50feafc | 2016-11-09 23:45:50 -0800 | [diff] [blame] | 37 | |
| 38 | declare_args() { |
| 39 | # Android 32-bit non-component, non-clang builds cannot have symbol_level=2 |
| 40 | # due to 4GiB file size limit, see https://crbug.com/648948. |
| 41 | # Set this flag to true to skip the assertion. |
| 42 | ignore_elf32_limitations = false |
jbudorick | 841a85b | 2016-11-23 13:33:28 -0800 | [diff] [blame] | 43 | |
| 44 | # Use the system install of Xcode for tools like ibtool, libtool, etc. |
| 45 | # This does not affect the compiler. When this variable is false, targets will |
| 46 | # instead use a hermetic install of Xcode. [The hermetic install can be |
| 47 | # obtained with gclient sync after setting the environment variable |
| 48 | # FORCE_MAC_TOOLCHAIN]. |
| 49 | use_system_xcode = "" |
| 50 | } |
| 51 | |
| 52 | if (use_system_xcode == "") { |
| 53 | if (target_os == "mac") { |
Nicolas Pena | e818bcb | 2017-02-09 14:37:49 -0500 | [diff] [blame] | 54 | _result = exec_script("//build/mac/should_use_hermetic_xcode.py", |
| 55 | [ target_os ], |
| 56 | "value") |
jbudorick | 841a85b | 2016-11-23 13:33:28 -0800 | [diff] [blame] | 57 | use_system_xcode = _result == 0 |
| 58 | } |
| 59 | if (target_os == "ios") { |
| 60 | use_system_xcode = true |
| 61 | } |
thestig | 50feafc | 2016-11-09 23:45:50 -0800 | [diff] [blame] | 62 | } |