-
Notifications
You must be signed in to change notification settings - Fork 2
/
supplement.gypi
57 lines (56 loc) · 1.7 KB
/
supplement.gypi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
'variables': {
'variables': {
'webrtc_root%': '<(DEPTH)/webrtc',
# Override the default (10.6) in Chromium's build/common.gypi.
# Needed for ARC and libc++.
'mac_deployment_target%': '10.7',
},
'webrtc_root%': '<(webrtc_root)',
'mac_deployment_target%': '<(mac_deployment_target)',
'use_sysroot%': '<(use_sysroot)',
'build_with_chromium': 0,
'conditions': [
['OS=="ios"', {
# Default to using BoringSSL on iOS.
'use_openssl%': 1,
# Set target_subarch for if not already set. This is needed because the
# Chromium iOS toolchain relies on target_subarch being set.
'conditions': [
['target_arch=="arm" or target_arch=="ia32"', {
'target_subarch%': 'arm32',
}],
['target_arch=="arm64" or target_arch=="x64"', {
'target_subarch%': 'arm64',
}],
],
}],
],
},
'target_defaults': {
'target_conditions': [
['_target_name=="sanitizer_options"', {
'conditions': [
['lsan==1', {
# Replace Chromium's LSan suppressions with our own for WebRTC.
'sources/': [
['exclude', 'lsan_suppressions.cc'],
],
'sources': [
'<(webrtc_root)/build/sanitizers/lsan_suppressions_webrtc.cc',
],
}],
['tsan==1', {
# Replace Chromium's TSan v2 suppressions with our own for WebRTC.
'sources/': [
['exclude', 'tsan_suppressions.cc'],
],
'sources': [
'<(webrtc_root)/build/sanitizers/tsan_suppressions_webrtc.cc',
],
}],
],
}],
],
},
}