1{
2  'variables': {
3    'variables': {
4      'webrtc_root%': '<(DEPTH)/webrtc',
5      # Override the default (10.6) in Chromium's build/common.gypi.
6      # Needed for ARC and libc++.
7      'mac_deployment_target%': '10.7',
8      # Disable use of sysroot for Linux. It's enabled by default in Chromium,
9      # but it currently lacks the libudev-dev package.
10      # TODO(kjellander): Remove when crbug.com/561584 is fixed.
11      'use_sysroot': 0,
12    },
13    'webrtc_root%': '<(webrtc_root)',
14    'mac_deployment_target%': '<(mac_deployment_target)',
15    'use_sysroot%': '<(use_sysroot)',
16    'build_with_chromium': 0,
17    'conditions': [
18      ['OS=="ios"', {
19        # Default to using BoringSSL on iOS.
20        'use_openssl%': 1,
21
22        # Set target_subarch for if not already set. This is needed because the
23        # Chromium iOS toolchain relies on target_subarch being set.
24        'conditions': [
25          ['target_arch=="arm" or target_arch=="ia32"', {
26            'target_subarch%': 'arm32',
27          }],
28          ['target_arch=="arm64" or target_arch=="x64"', {
29            'target_subarch%': 'arm64',
30          }],
31        ],
32      }],
33    ],
34  },
35  'target_defaults': {
36    'target_conditions': [
37      ['_target_name=="sanitizer_options"', {
38        'conditions': [
39          ['lsan==1', {
40            # Replace Chromium's LSan suppressions with our own for WebRTC.
41            'sources/': [
42              ['exclude', 'lsan_suppressions.cc'],
43            ],
44            'sources': [
45              '<(webrtc_root)/build/sanitizers/lsan_suppressions_webrtc.cc',
46            ],
47          }],
48          ['tsan==1', {
49            # Replace Chromium's TSan v2 suppressions with our own for WebRTC.
50            'sources/': [
51              ['exclude', 'tsan_suppressions.cc'],
52            ],
53            'sources': [
54              '<(webrtc_root)/build/sanitizers/tsan_suppressions_webrtc.cc',
55            ],
56          }],
57        ],
58      }],
59    ],
60  },
61}
62