blob: dfa52f2cbdde71ec50fd67d43dee5c7e4ef9d7f8 [file] [log] [blame]
andrew@webrtc.org14b43be2012-10-22 18:19:23 +00001# Copyright (c) 2012 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
9# This file contains common settings for building WebRTC components.
10
11{
12 # Nesting is required in order to use variables for setting other variables.
13 'variables': {
14 'variables': {
15 'variables': {
16 'variables': {
henrike@webrtc.org7ef7df52014-01-21 15:54:56 +000017 # This will already be set to zero by supplement.gypi
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000018 'build_with_chromium%': 1,
19 },
20 'build_with_chromium%': '<(build_with_chromium)',
21
22 'conditions': [
henrike@webrtc.org42581542013-07-16 16:37:22 +000023 ['build_with_chromium==1', {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000024 'webrtc_root%': '<(DEPTH)/third_party/webrtc',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000025 'apk_tests_path%': '<(DEPTH)/third_party/webrtc/build/apk_tests_noop.gyp',
henrike@webrtc.orga2073af2013-07-08 18:14:58 +000026 'modules_java_gyp_path%': '<(DEPTH)/third_party/webrtc/modules/modules_java_chromium.gyp',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000027 }, {
28 'webrtc_root%': '<(DEPTH)/webrtc',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000029 'apk_tests_path%': '<(DEPTH)/webrtc/build/apk_tests.gyp',
henrike@webrtc.orga2073af2013-07-08 18:14:58 +000030 'modules_java_gyp_path%': '<(DEPTH)/webrtc/modules/modules_java.gyp',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000031 }],
32 ],
33 },
34 'build_with_chromium%': '<(build_with_chromium)',
35 'webrtc_root%': '<(webrtc_root)',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000036 'apk_tests_path%': '<(apk_tests_path)',
henrike@webrtc.orga2073af2013-07-08 18:14:58 +000037 'modules_java_gyp_path%': '<(modules_java_gyp_path)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000038 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8',
marpan@webrtc.org5b883172014-11-01 06:10:48 +000039 'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9',
leozwang@webrtc.org6f19b1b2012-10-27 17:46:55 +000040 'include_opus%': 1,
kjellander@webrtc.org2b69eab2015-02-09 10:01:17 +000041 'opus_dir%': '<(DEPTH)/third_party/opus',
kwiberg98ab3a42015-09-30 21:54:21 -070042
43 # Enable to use the Mozilla internal settings.
44 'build_with_mozilla%': 0,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000045 },
46 'build_with_chromium%': '<(build_with_chromium)',
kwiberg98ab3a42015-09-30 21:54:21 -070047 'build_with_mozilla%': '<(build_with_mozilla)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000048 'webrtc_root%': '<(webrtc_root)',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000049 'apk_tests_path%': '<(apk_tests_path)',
henrike@webrtc.orga2073af2013-07-08 18:14:58 +000050 'modules_java_gyp_path%': '<(modules_java_gyp_path)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000051 'webrtc_vp8_dir%': '<(webrtc_vp8_dir)',
marpan@webrtc.org5b883172014-11-01 06:10:48 +000052 'webrtc_vp9_dir%': '<(webrtc_vp9_dir)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000053 'include_opus%': '<(include_opus)',
henrike@webrtc.orgd72a7592014-09-02 15:41:12 +000054 'rtc_relative_path%': 1,
henrike@webrtc.org9f36c082014-06-16 21:35:20 +000055 'external_libraries%': '0',
56 'json_root%': '<(DEPTH)/third_party/jsoncpp/source/include/',
57 # openssl needs to be defined or gyp will complain. Is is only used when
58 # when providing external libraries so just use current directory as a
59 # placeholder.
60 'ssl_root%': '.',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000061
62 # The Chromium common.gypi we use treats all gyp files without
63 # chromium_code==1 as third party code. This disables many of the
64 # preferred warning settings.
65 #
66 # We can set this here to have WebRTC code treated as Chromium code. Our
67 # third party code will still have the reduced warning settings.
68 'chromium_code': 1,
69
kjellander@webrtc.org0aa04f92014-03-28 13:14:00 +000070 # Set to 1 to enable code coverage on Linux using the gcov library.
71 'coverage%': 0,
72
solenberg@webrtc.orgd6e46632013-10-30 16:06:26 +000073 # Remote bitrate estimator logging/plotting.
74 'enable_bwe_test_logging%': 0,
75
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000076 # Selects fixed-point code where possible.
77 'prefer_fixed_point%': 0,
78
79 # Enable data logging. Produces text files with data logged within engines
80 # which can be easily parsed for offline processing.
81 'enable_data_logging%': 0,
82
andrew@webrtc.orgf9825e52013-05-20 21:18:04 +000083 # Enables the use of protocol buffers for debug recordings.
84 'enable_protobuf%': 1,
85
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000086 # Disable these to not build components which can be externally provided.
Henrik Kjellandere6cefb62015-04-27 14:39:04 +020087 'build_expat%': 1,
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +000088 'build_json%': 1,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000089 'build_libjpeg%': 1,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000090 'build_libvpx%': 1,
Henrik Kjellandere6cefb62015-04-27 14:39:04 +020091 'build_libyuv%': 1,
andrew@webrtc.orgd2c09dd2015-03-11 22:06:55 +000092 'build_openmax_dl%': 1,
minyue@webrtc.org7c112f32015-03-17 14:04:56 +000093 'build_opus%': 1,
Henrik Kjellandere6cefb62015-04-27 14:39:04 +020094 'build_ssl%': 1,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000095
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000096 # Disable by default
97 'have_dbus_glib%': 0,
98
kjellander@webrtc.org2b69eab2015-02-09 10:01:17 +000099 # Make it possible to provide custom locations for some libraries.
kjellanderd6024e32015-09-28 21:16:48 -0700100 'libvpx_dir%': '<(DEPTH)/third_party/libvpx_new',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000101 'libyuv_dir%': '<(DEPTH)/third_party/libyuv',
kjellander@webrtc.org2b69eab2015-02-09 10:01:17 +0000102 'opus_dir%': '<(opus_dir)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000103
henrika@webrtc.org45db7ee2015-01-12 14:27:23 +0000104 # Use Java based audio layer as default for Android.
105 # Change this setting to 1 to use Open SL audio instead.
106 # TODO(henrika): add support for Open SL ES.
107 'enable_android_opensl%': 0,
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000108
andrew@webrtc.orgaf7fdfc2014-08-29 17:41:13 +0000109 # Link-Time Optimizations
110 # Executes code generation at link-time instead of compile-time
111 # https://gcc.gnu.org/wiki/LinkTimeOptimization
112 'use_lto%': 0,
113
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000114 # Defer ssl perference to that specified through sslconfig.h instead of
115 # choosing openssl or nss directly. In practice, this can be used to
116 # enable schannel on windows.
117 'use_legacy_ssl_defaults%': 0,
118
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700119 # Determines whether NEON code will be built.
120 'build_with_neon%': 0,
121
Zeke Chin71f6f442015-06-29 14:34:58 -0700122 # Enable this to use HW H.264 encoder/decoder on iOS/Mac PeerConnections.
123 # Enabling this may break interop with Android clients that support H264.
124 'use_objc_h264%': 0,
125
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000126 'conditions': [
127 ['build_with_chromium==1', {
128 # Exclude pulse audio on Chromium since its prerequisites don't require
129 # pulse audio.
130 'include_pulse_audio%': 0,
131
132 # Exclude internal ADM since Chromium uses its own IO handling.
133 'include_internal_audio_device%': 0,
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100134
135 # Remove tests for Chromium to avoid slowing down GYP generation.
136 'include_tests%': 0,
137 'restrict_webrtc_logging%': 1,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000138 }, { # Settings for the standalone (not-in-Chromium) build.
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000139 # TODO(andrew): For now, disable the Chrome plugins, which causes a
140 # flood of chromium-style warnings. Investigate enabling them:
141 # http://code.google.com/p/webrtc/issues/detail?id=163
142 'clang_use_chrome_plugins%': 0,
143
henrike@webrtc.org42581542013-07-16 16:37:22 +0000144 'include_pulse_audio%': 1,
145 'include_internal_audio_device%': 1,
henrike@webrtc.org42581542013-07-16 16:37:22 +0000146 'include_tests%': 1,
andrew@webrtc.orgf1a48172013-11-07 23:47:26 +0000147 'restrict_webrtc_logging%': 0,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000148 }],
149 ['OS=="ios"', {
fischman@webrtc.orgd0f4c212013-08-20 22:16:55 +0000150 'build_libjpeg%': 0,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000151 }],
andrew@webrtc.org1090a6e2014-12-18 21:36:18 +0000152 ['target_arch=="arm" or target_arch=="arm64"', {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000153 'prefer_fixed_point%': 1,
154 }],
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700155 ['(target_arch=="arm" and (arm_neon==1 or arm_neon_optional==1)) or target_arch=="arm64"', {
156 'build_with_neon%': 1,
157 }],
andrew@webrtc.org34ac9562014-12-30 18:19:56 +0000158 ['OS!="ios" and (target_arch!="arm" or arm_version>=7) and target_arch!="mips64el"', {
andrew@webrtc.org4165f7a2014-10-08 18:01:27 +0000159 'rtc_use_openmax_dl%': 1,
160 }, {
161 'rtc_use_openmax_dl%': 0,
162 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000163 ], # conditions
164 },
165 'target_defaults': {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000166 'conditions': [
andrew@webrtc.orgf1a48172013-11-07 23:47:26 +0000167 ['restrict_webrtc_logging==1', {
168 'defines': ['WEBRTC_RESTRICT_LOGGING',],
andrew@webrtc.orgc3e5d342012-11-23 19:30:59 +0000169 }],
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +0000170 ['build_with_mozilla==1', {
171 'defines': [
172 # Changes settings for Mozilla build.
173 'WEBRTC_MOZILLA_BUILD',
174 ],
175 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000176 ['have_dbus_glib==1', {
177 'defines': [
178 'HAVE_DBUS_GLIB',
179 ],
180 'cflags': [
181 '<!@(pkg-config --cflags dbus-glib-1)',
182 ],
183 }],
henrike@webrtc.orgd72a7592014-09-02 15:41:12 +0000184 ['rtc_relative_path==1', {
185 'defines': ['EXPAT_RELATIVE_PATH',],
186 }],
tommi@webrtc.orga32f0642015-03-08 07:38:31 +0000187 ['os_posix==1', {
188 'configurations': {
189 'Debug_Base': {
190 'defines': [
191 # Chromium's build/common.gypi defines _DEBUG for all posix
192 # _except_ for ios & mac. The size of data types such as
193 # pthread_mutex_t varies between release and debug builds
194 # and is controlled via this flag. Since we now share code
195 # between base/base.gyp and build/common.gypi (this file),
196 # both gyp(i) files, must consistently set this flag uniformly
197 # or else we'll run in to hard-to-figure-out problems where
198 # one compilation unit uses code from another but expects
199 # differently laid out types.
200 # For WebRTC, we want it there as well, because ASSERT and
201 # friends trigger off of it.
202 '_DEBUG',
203 ],
204 },
205 },
206 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000207 ['build_with_chromium==1', {
208 'defines': [
209 # Changes settings for Chromium build.
210 'WEBRTC_CHROMIUM_BUILD',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000211 'LOGGING_INSIDE_WEBRTC',
212 ],
213 'include_dirs': [
kjellander@webrtc.orgf2ec8142015-01-30 14:54:36 +0000214 # Include the top-level directory when building in Chrome, so we can
215 # use full paths (e.g. headers inside testing/ or third_party/).
216 '<(DEPTH)',
217 # The overrides must be included before the WebRTC root as that's the
218 # mechanism for selecting the override headers in Chromium.
henrikgee2bf412015-09-30 03:48:52 -0700219 '../../webrtc_overrides',
kjellander@webrtc.orgf2ec8142015-01-30 14:54:36 +0000220 # The WebRTC root is needed to allow includes in the WebRTC code base
221 # to be prefixed with webrtc/.
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000222 '../..',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000223 ],
224 }, {
kjellander@webrtc.orgf2ec8142015-01-30 14:54:36 +0000225 # Include the top-level dir so the WebRTC code can use full paths.
226 'include_dirs': [
227 '../..',
228 ],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000229 'conditions': [
230 ['os_posix==1', {
solenberg@webrtc.orgc6db88b2014-06-04 17:15:42 +0000231 'conditions': [
232 # -Wextra is currently disabled in Chromium's common.gypi. Enable
233 # for targets that can handle it. For Android/arm64 right now
234 # there will be an 'enumeral and non-enumeral type in conditional
235 # expression' warning in android_tools/ndk_experimental's version
236 # of stlport.
237 # See: https://code.google.com/p/chromium/issues/detail?id=379699
238 ['target_arch!="arm64" or OS!="android"', {
239 'cflags': [
240 '-Wextra',
241 # We need to repeat some flags from Chromium's common.gypi
242 # here that get overridden by -Wextra.
243 '-Wno-unused-parameter',
244 '-Wno-missing-field-initializers',
245 '-Wno-strict-overflow',
246 ],
247 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000248 ],
249 'cflags_cc': [
pbos@webrtc.orgb3cc78d2013-11-21 11:42:02 +0000250 '-Wnon-virtual-dtor',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000251 # This is enabled for clang; enable for gcc as well.
252 '-Woverloaded-virtual',
253 ],
254 }],
andresp@webrtc.org7fb75ec2013-12-20 20:20:50 +0000255 ['clang==1', {
256 'cflags': [
kjellander@webrtc.org7d2b6a92015-01-28 18:37:58 +0000257 '-Wimplicit-fallthrough',
andresp@webrtc.org7fb75ec2013-12-20 20:20:50 +0000258 '-Wthread-safety',
259 ],
260 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000261 ],
262 }],
tkchin@webrtc.org14146e42014-10-31 00:14:39 +0000263 ['target_arch=="arm64"', {
264 'defines': [
Andrew MacDonaldcb7f8ce2015-05-19 22:20:17 -0700265 'WEBRTC_ARCH_ARM64',
266 'WEBRTC_HAS_NEON',
tkchin@webrtc.org14146e42014-10-31 00:14:39 +0000267 ],
268 }],
andrew@webrtc.org1090a6e2014-12-18 21:36:18 +0000269 ['target_arch=="arm"', {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000270 'defines': [
271 'WEBRTC_ARCH_ARM',
272 ],
273 'conditions': [
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000274 ['arm_version>=7', {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000275 'defines': ['WEBRTC_ARCH_ARM_V7',],
276 'conditions': [
277 ['arm_neon==1', {
Andrew MacDonaldcb7f8ce2015-05-19 22:20:17 -0700278 'defines': ['WEBRTC_HAS_NEON',],
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000279 }],
Andrew MacDonaldcb7f8ce2015-05-19 22:20:17 -0700280 ['arm_neon==0 and arm_neon_optional==1', {
281 'defines': ['WEBRTC_DETECT_NEON',],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000282 }],
283 ],
284 }],
285 ],
286 }],
Richard Colesd417c932015-04-09 17:36:12 +0200287 ['target_arch=="mipsel" and mips_arch_variant!="r6"', {
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000288 'defines': [
289 'MIPS32_LE',
290 ],
291 'conditions': [
kjellander@webrtc.org6dab6d72015-03-04 09:50:31 +0000292 ['mips_float_abi=="hard"', {
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000293 'defines': [
294 'MIPS_FPU_LE',
295 ],
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000296 }],
andrew@webrtc.orgd05756f2014-09-30 15:53:24 +0000297 ['mips_arch_variant=="r2"', {
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000298 'defines': [
299 'MIPS32_R2_LE',
300 ],
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000301 }],
302 ['mips_dsp_rev==1', {
303 'defines': [
304 'MIPS_DSP_R1_LE',
305 ],
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000306 }],
307 ['mips_dsp_rev==2', {
308 'defines': [
309 'MIPS_DSP_R1_LE',
310 'MIPS_DSP_R2_LE',
311 ],
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000312 }],
313 ],
314 }],
kjellander@webrtc.org0aa04f92014-03-28 13:14:00 +0000315 ['coverage==1 and OS=="linux"', {
316 'cflags': [ '-ftest-coverage',
317 '-fprofile-arcs' ],
318 'link_settings': { 'libraries': [ '-lgcov' ] },
319 }],
henrike@webrtc.orgcc08e3f2014-03-07 15:30:21 +0000320 ['os_posix==1', {
321 # For access to standard POSIXish features, use WEBRTC_POSIX instead of
322 # a more specific macro.
323 'defines': [
324 'WEBRTC_POSIX',
325 ],
326 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000327 ['OS=="ios"', {
328 'defines': [
329 'WEBRTC_MAC',
330 'WEBRTC_IOS',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000331 ],
332 }],
Zeke Chin71f6f442015-06-29 14:34:58 -0700333 ['OS=="ios" and use_objc_h264==1', {
334 'defines': [
335 'WEBRTC_OBJC_H264',
336 ],
337 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000338 ['OS=="linux"', {
339 'defines': [
340 'WEBRTC_LINUX',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000341 ],
342 }],
343 ['OS=="mac"', {
344 'defines': [
345 'WEBRTC_MAC',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000346 ],
347 }],
348 ['OS=="win"', {
349 'defines': [
350 'WEBRTC_WIN',
351 ],
352 # TODO(andrew): enable all warnings when possible.
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000353 # TODO(phoglund): get rid of 4373 supression when
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000354 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved.
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000355 'msvs_disabled_warnings': [
356 4373, # legacy warning for ignoring const / volatile in signatures.
357 4389, # Signed/unsigned mismatch.
358 ],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000359 # Re-enable some warnings that Chromium disables.
360 'msvs_disabled_warnings!': [4189,],
361 }],
362 ['OS=="android"', {
363 'defines': [
364 'WEBRTC_LINUX',
365 'WEBRTC_ANDROID',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000366 ],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000367 'conditions': [
Henrik Kjellanderc0c7d2e2015-09-07 12:57:42 +0200368 ['clang==0', {
Henrik Kjellander5bfc6cb2015-09-21 16:50:45 +0200369 # The Android NDK doesn't provide optimized versions of these
370 # functions. Ensure they are disabled for all compilers.
wjia@webrtc.orgb1193692013-01-12 01:52:07 +0000371 'cflags': [
372 '-fno-builtin-cos',
373 '-fno-builtin-sin',
374 '-fno-builtin-cosf',
375 '-fno-builtin-sinf',
376 ],
377 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000378 ],
379 }],
Tommi931e6582015-05-20 09:44:38 +0200380 ['include_internal_audio_device==1', {
381 'defines': [
382 'WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE',
383 ],
384 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000385 ], # conditions
sergeyu@chromium.org6ebfd342013-05-22 18:22:21 +0000386 'direct_dependent_settings': {
sergeyu@chromium.org6ebfd342013-05-22 18:22:21 +0000387 'conditions': [
388 ['build_with_mozilla==1', {
389 'defines': [
390 # Changes settings for Mozilla build.
391 'WEBRTC_MOZILLA_BUILD',
392 ],
393 }],
394 ['build_with_chromium==1', {
395 'defines': [
396 # Changes settings for Chromium build.
397 'WEBRTC_CHROMIUM_BUILD',
398 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000399 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700400 # The overrides must be included first as that is the mechanism for
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000401 # selecting the override headers in Chromium.
henrikgee2bf412015-09-30 03:48:52 -0700402 '../../webrtc_overrides',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000403 '../..',
404 ],
405 }, {
406 'include_dirs': [
407 '../..',
408 ],
sergeyu@chromium.org6ebfd342013-05-22 18:22:21 +0000409 }],
410 ['OS=="mac"', {
411 'defines': [
412 'WEBRTC_MAC',
413 ],
414 }],
415 ['OS=="ios"', {
416 'defines': [
417 'WEBRTC_MAC',
418 'WEBRTC_IOS',
419 ],
420 }],
421 ['OS=="win"', {
422 'defines': [
423 'WEBRTC_WIN',
424 ],
425 }],
426 ['OS=="linux"', {
427 'defines': [
428 'WEBRTC_LINUX',
429 ],
430 }],
431 ['OS=="android"', {
432 'defines': [
433 'WEBRTC_LINUX',
434 'WEBRTC_ANDROID',
435 ],
sergeyu@chromium.org6ebfd342013-05-22 18:22:21 +0000436 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000437 ['os_posix==1', {
438 # For access to standard POSIXish features, use WEBRTC_POSIX instead
439 # of a more specific macro.
440 'defines': [
441 'WEBRTC_POSIX',
442 ],
443 }],
sergeyu@chromium.org6ebfd342013-05-22 18:22:21 +0000444 ],
445 },
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000446 }, # target_defaults
447}
448