blob: 075e2adb06c676d71b9b45c0e018549a6426fd6a [file] [log] [blame]
henrike@webrtc.org7ef7df52014-01-21 15:54:56 +00001{
2 'variables': {
kjellander@webrtc.org27ab19d2014-06-21 19:30:29 +00003 'variables': {
4 'webrtc_root%': '<(DEPTH)/webrtc',
5 },
6 'webrtc_root%': '<(webrtc_root)',
henrike@webrtc.org7ef7df52014-01-21 15:54:56 +00007 'build_with_chromium': 0,
Zeke Chin7d89f802015-04-15 12:09:19 -07008 'conditions': [
9 ['OS=="ios"', {
10 # Default to using BoringSSL on iOS.
11 'use_openssl%': 1,
Henrik Kjellander382c58d2015-04-16 09:24:30 +020012
13 # Set target_subarch for if not already set. This is needed because the
14 # Chromium iOS toolchain relies on target_subarch being set.
15 'conditions': [
16 ['target_arch=="arm" or target_arch=="ia32"', {
17 'target_subarch%': 'arm32',
18 }],
19 ['target_arch=="arm64" or target_arch=="x64"', {
20 'target_subarch%': 'arm64',
21 }],
22 ],
Zeke Chin7d89f802015-04-15 12:09:19 -070023 }],
24 ],
kjellander@webrtc.org27ab19d2014-06-21 19:30:29 +000025 },
26 'target_defaults': {
kjellander@webrtc.orgc2392342014-08-25 14:16:32 +000027 'target_conditions': [
28 ['_target_name=="sanitizer_options"', {
29 'conditions': [
kjellander@webrtc.orgcc483b72015-02-18 10:37:51 +000030 ['lsan==1', {
31 # Replace Chromium's LSan suppressions with our own for WebRTC.
32 'sources/': [
33 ['exclude', 'lsan_suppressions.cc'],
34 ],
35 'sources': [
36 '<(webrtc_root)/build/sanitizers/lsan_suppressions_webrtc.cc',
37 ],
38 }],
kjellander@webrtc.orgc2392342014-08-25 14:16:32 +000039 ['tsan==1', {
40 # Replace Chromium's TSan v2 suppressions with our own for WebRTC.
41 'sources/': [
42 ['exclude', 'tsan_suppressions.cc'],
43 ],
44 'sources': [
kjellander@webrtc.orgcc483b72015-02-18 10:37:51 +000045 '<(webrtc_root)/build/sanitizers/tsan_suppressions_webrtc.cc',
kjellander@webrtc.orgc2392342014-08-25 14:16:32 +000046 ],
47 }],
kjellander@webrtc.org27ab19d2014-06-21 19:30:29 +000048 ],
49 }],
50 ],
51 },
henrike@webrtc.org7ef7df52014-01-21 15:54:56 +000052}