blob: e680ba0dcefc4f49b45985b2d521db45a36f7ae9 [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', {
24 'build_with_libjingle': 1,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000025 'webrtc_root%': '<(DEPTH)/third_party/webrtc',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000026 'apk_tests_path%': '<(DEPTH)/third_party/webrtc/build/apk_tests_noop.gyp',
henrike@webrtc.orga2073af2013-07-08 18:14:58 +000027 'modules_java_gyp_path%': '<(DEPTH)/third_party/webrtc/modules/modules_java_chromium.gyp',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000028 }, {
henrike@webrtc.org42581542013-07-16 16:37:22 +000029 'build_with_libjingle%': 0,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000030 'webrtc_root%': '<(DEPTH)/webrtc',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000031 'apk_tests_path%': '<(DEPTH)/webrtc/build/apk_tests.gyp',
henrike@webrtc.orga2073af2013-07-08 18:14:58 +000032 'modules_java_gyp_path%': '<(DEPTH)/webrtc/modules/modules_java.gyp',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000033 }],
34 ],
35 },
36 'build_with_chromium%': '<(build_with_chromium)',
fischman@webrtc.orgf61e02c2013-02-20 23:13:46 +000037 'build_with_libjingle%': '<(build_with_libjingle)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000038 'webrtc_root%': '<(webrtc_root)',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000039 'apk_tests_path%': '<(apk_tests_path)',
henrike@webrtc.orga2073af2013-07-08 18:14:58 +000040 'modules_java_gyp_path%': '<(modules_java_gyp_path)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000041 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8',
marpan@webrtc.org5b883172014-11-01 06:10:48 +000042 'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9',
leozwang@webrtc.org6f19b1b2012-10-27 17:46:55 +000043 'include_opus%': 1,
kjellander@webrtc.org2b69eab2015-02-09 10:01:17 +000044 'opus_dir%': '<(DEPTH)/third_party/opus',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000045 },
46 'build_with_chromium%': '<(build_with_chromium)',
fischman@webrtc.orgf61e02c2013-02-20 23:13:46 +000047 'build_with_libjingle%': '<(build_with_libjingle)',
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 # Adds video support to dependencies shared by voice and video engine.
77 # This should normally be enabled; the intended use is to disable only
78 # when building voice engine exclusively.
79 'enable_video%': 1,
80
81 # Selects fixed-point code where possible.
82 'prefer_fixed_point%': 0,
83
84 # Enable data logging. Produces text files with data logged within engines
85 # which can be easily parsed for offline processing.
86 'enable_data_logging%': 0,
87
andrew@webrtc.orgf9825e52013-05-20 21:18:04 +000088 # Enables the use of protocol buffers for debug recordings.
89 'enable_protobuf%': 1,
90
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000091 # Disable these to not build components which can be externally provided.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +000092 'build_json%': 1,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000093 'build_libjpeg%': 1,
94 'build_libyuv%': 1,
95 'build_libvpx%': 1,
kjellander@webrtc.org2b69eab2015-02-09 10:01:17 +000096 'build_vp9%': 1,
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +000097 'build_ssl%': 1,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000098
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000099 # Disable by default
100 'have_dbus_glib%': 0,
101
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +0000102 # Enable to use the Mozilla internal settings.
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000103 'build_with_mozilla%': 0,
104
kjellander@webrtc.org2b69eab2015-02-09 10:01:17 +0000105 # Make it possible to provide custom locations for some libraries.
106 'libvpx_dir%': '<(DEPTH)/third_party/libvpx',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000107 'libyuv_dir%': '<(DEPTH)/third_party/libyuv',
kjellander@webrtc.org2b69eab2015-02-09 10:01:17 +0000108 'opus_dir%': '<(opus_dir)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000109
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000110 # Define MIPS architecture variant, MIPS DSP variant and MIPS FPU
111 # This may be subject to change in accordance to Chromium's MIPS flags
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000112 'mips_dsp_rev%': 0,
113 'mips_fpu%' : 1,
henrika@webrtc.org45db7ee2015-01-12 14:27:23 +0000114
115 # Use Java based audio layer as default for Android.
116 # Change this setting to 1 to use Open SL audio instead.
117 # TODO(henrika): add support for Open SL ES.
118 'enable_android_opensl%': 0,
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000119
andrew@webrtc.orgaf7fdfc2014-08-29 17:41:13 +0000120 # Link-Time Optimizations
121 # Executes code generation at link-time instead of compile-time
122 # https://gcc.gnu.org/wiki/LinkTimeOptimization
123 'use_lto%': 0,
124
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000125 # Defer ssl perference to that specified through sslconfig.h instead of
126 # choosing openssl or nss directly. In practice, this can be used to
127 # enable schannel on windows.
128 'use_legacy_ssl_defaults%': 0,
129
kjellander@webrtc.org2b69eab2015-02-09 10:01:17 +0000130 # Directly call the trace callback instead of passing it to a logging
131 # thread. Used for components that provide their own threaded logging.
132 'rtc_use_direct_trace%': 0,
133
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000134 'conditions': [
135 ['build_with_chromium==1', {
136 # Exclude pulse audio on Chromium since its prerequisites don't require
137 # pulse audio.
138 'include_pulse_audio%': 0,
139
140 # Exclude internal ADM since Chromium uses its own IO handling.
141 'include_internal_audio_device%': 0,
142
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000143 }, { # Settings for the standalone (not-in-Chromium) build.
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000144 # TODO(andrew): For now, disable the Chrome plugins, which causes a
145 # flood of chromium-style warnings. Investigate enabling them:
146 # http://code.google.com/p/webrtc/issues/detail?id=163
147 'clang_use_chrome_plugins%': 0,
148
henrike@webrtc.org42581542013-07-16 16:37:22 +0000149 'include_pulse_audio%': 1,
150 'include_internal_audio_device%': 1,
henrike@webrtc.org42581542013-07-16 16:37:22 +0000151 }],
152 ['build_with_libjingle==1', {
153 'include_tests%': 0,
andrew@webrtc.orgf1a48172013-11-07 23:47:26 +0000154 'restrict_webrtc_logging%': 1,
henrike@webrtc.org42581542013-07-16 16:37:22 +0000155 }, {
156 'include_tests%': 1,
andrew@webrtc.orgf1a48172013-11-07 23:47:26 +0000157 'restrict_webrtc_logging%': 0,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000158 }],
159 ['OS=="ios"', {
fischman@webrtc.orgd0f4c212013-08-20 22:16:55 +0000160 'build_libjpeg%': 0,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000161 'enable_protobuf%': 0,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000162 }],
andrew@webrtc.org1090a6e2014-12-18 21:36:18 +0000163 ['target_arch=="arm" or target_arch=="arm64"', {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000164 'prefer_fixed_point%': 1,
165 }],
andrew@webrtc.org34ac9562014-12-30 18:19:56 +0000166 ['OS!="ios" and (target_arch!="arm" or arm_version>=7) and target_arch!="mips64el"', {
andrew@webrtc.org4165f7a2014-10-08 18:01:27 +0000167 'rtc_use_openmax_dl%': 1,
168 }, {
169 'rtc_use_openmax_dl%': 0,
170 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000171 ], # conditions
172 },
173 'target_defaults': {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000174 'conditions': [
andrew@webrtc.orgf1a48172013-11-07 23:47:26 +0000175 ['restrict_webrtc_logging==1', {
176 'defines': ['WEBRTC_RESTRICT_LOGGING',],
andrew@webrtc.orgc3e5d342012-11-23 19:30:59 +0000177 }],
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +0000178 ['build_with_mozilla==1', {
179 'defines': [
180 # Changes settings for Mozilla build.
181 'WEBRTC_MOZILLA_BUILD',
182 ],
183 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000184 ['have_dbus_glib==1', {
185 'defines': [
186 'HAVE_DBUS_GLIB',
187 ],
188 'cflags': [
189 '<!@(pkg-config --cflags dbus-glib-1)',
190 ],
191 }],
henrike@webrtc.orgd72a7592014-09-02 15:41:12 +0000192 ['rtc_relative_path==1', {
193 'defines': ['EXPAT_RELATIVE_PATH',],
194 }],
andrew@webrtc.orgde7c9e82013-12-09 16:23:00 +0000195 ['enable_video==1', {
196 'defines': ['WEBRTC_MODULE_UTILITY_VIDEO',],
197 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000198 ['build_with_chromium==1', {
199 'defines': [
200 # Changes settings for Chromium build.
201 'WEBRTC_CHROMIUM_BUILD',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000202 'LOGGING_INSIDE_WEBRTC',
203 ],
204 'include_dirs': [
kjellander@webrtc.orgf2ec8142015-01-30 14:54:36 +0000205 # Include the top-level directory when building in Chrome, so we can
206 # use full paths (e.g. headers inside testing/ or third_party/).
207 '<(DEPTH)',
208 # The overrides must be included before the WebRTC root as that's the
209 # mechanism for selecting the override headers in Chromium.
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000210 '../overrides',
kjellander@webrtc.orgf2ec8142015-01-30 14:54:36 +0000211 # The WebRTC root is needed to allow includes in the WebRTC code base
212 # to be prefixed with webrtc/.
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000213 '../..',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000214 ],
215 }, {
kjellander@webrtc.orgf2ec8142015-01-30 14:54:36 +0000216 # Include the top-level dir so the WebRTC code can use full paths.
217 'include_dirs': [
218 '../..',
219 ],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000220 'conditions': [
221 ['os_posix==1', {
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000222 'configurations': {
henrike@webrtc.org2fe58932014-10-06 22:04:11 +0000223 'Debug_Base': {
224 'defines': [
225 # Chromium's build/common.gypi defines this for all posix
226 # _except_ for ios & mac. We want it there as well, e.g.
227 # because ASSERT and friends trigger off of it.
228 '_DEBUG',
229 ],
230 },
231 },
solenberg@webrtc.orgc6db88b2014-06-04 17:15:42 +0000232 'conditions': [
233 # -Wextra is currently disabled in Chromium's common.gypi. Enable
234 # for targets that can handle it. For Android/arm64 right now
235 # there will be an 'enumeral and non-enumeral type in conditional
236 # expression' warning in android_tools/ndk_experimental's version
237 # of stlport.
238 # See: https://code.google.com/p/chromium/issues/detail?id=379699
239 ['target_arch!="arm64" or OS!="android"', {
240 'cflags': [
241 '-Wextra',
242 # We need to repeat some flags from Chromium's common.gypi
243 # here that get overridden by -Wextra.
244 '-Wno-unused-parameter',
245 '-Wno-missing-field-initializers',
246 '-Wno-strict-overflow',
247 ],
248 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000249 ],
250 'cflags_cc': [
pbos@webrtc.orgb3cc78d2013-11-21 11:42:02 +0000251 '-Wnon-virtual-dtor',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000252 # This is enabled for clang; enable for gcc as well.
253 '-Woverloaded-virtual',
254 ],
255 }],
andresp@webrtc.org7fb75ec2013-12-20 20:20:50 +0000256 ['clang==1', {
257 'cflags': [
kjellander@webrtc.org7d2b6a92015-01-28 18:37:58 +0000258 '-Wimplicit-fallthrough',
andresp@webrtc.org7fb75ec2013-12-20 20:20:50 +0000259 '-Wthread-safety',
260 ],
261 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000262 ],
263 }],
tkchin@webrtc.org14146e42014-10-31 00:14:39 +0000264 ['target_arch=="arm64"', {
265 'defines': [
266 'WEBRTC_ARCH_ARM',
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000267 # TODO(zhongwei) Defining an unique WEBRTC_NEON and
268 # distinguishing ARMv7 NEON and ARM64 NEON by
269 # WEBRTC_ARCH_ARM_V7 and WEBRTC_ARCH_ARM64 should be better.
270
271 # This macro is used to distinguish ARMv7 NEON and ARM64 NEON
272 'WEBRTC_ARCH_ARM64_NEON',
tkchin@webrtc.org14146e42014-10-31 00:14:39 +0000273 ],
274 }],
andrew@webrtc.org1090a6e2014-12-18 21:36:18 +0000275 ['target_arch=="arm"', {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000276 'defines': [
277 'WEBRTC_ARCH_ARM',
278 ],
279 'conditions': [
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000280 ['arm_version>=7', {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000281 'defines': ['WEBRTC_ARCH_ARM_V7',],
282 'conditions': [
283 ['arm_neon==1', {
284 'defines': ['WEBRTC_ARCH_ARM_NEON',],
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000285 }],
286 ['arm_neon==0 and OS=="android"', {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000287 'defines': ['WEBRTC_DETECT_ARM_NEON',],
288 }],
289 ],
290 }],
291 ],
292 }],
andrew@webrtc.org11533222014-11-21 16:28:32 +0000293 ['target_arch=="mipsel" and mips_arch_variant!="r6" and android_webview_build==0', {
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000294 'defines': [
295 'MIPS32_LE',
296 ],
297 'conditions': [
298 ['mips_fpu==1', {
299 'defines': [
300 'MIPS_FPU_LE',
301 ],
302 'cflags': [
303 '-mhard-float',
304 ],
305 }, {
306 'cflags': [
307 '-msoft-float',
308 ],
309 }],
andrew@webrtc.orgd05756f2014-09-30 15:53:24 +0000310 ['mips_arch_variant=="r2"', {
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000311 'defines': [
312 'MIPS32_R2_LE',
313 ],
314 'cflags': [
315 '-mips32r2',
316 ],
317 'cflags_cc': [
318 '-mips32r2',
319 ],
320 }],
321 ['mips_dsp_rev==1', {
322 'defines': [
323 'MIPS_DSP_R1_LE',
324 ],
325 'cflags': [
326 '-mdsp',
327 ],
328 'cflags_cc': [
329 '-mdsp',
330 ],
331 }],
332 ['mips_dsp_rev==2', {
333 'defines': [
334 'MIPS_DSP_R1_LE',
335 'MIPS_DSP_R2_LE',
336 ],
337 'cflags': [
338 '-mdspr2',
339 ],
340 'cflags_cc': [
341 '-mdspr2',
342 ],
343 }],
344 ],
345 }],
kjellander@webrtc.org0aa04f92014-03-28 13:14:00 +0000346 ['coverage==1 and OS=="linux"', {
347 'cflags': [ '-ftest-coverage',
348 '-fprofile-arcs' ],
349 'link_settings': { 'libraries': [ '-lgcov' ] },
350 }],
henrike@webrtc.orgcc08e3f2014-03-07 15:30:21 +0000351 ['os_posix==1', {
352 # For access to standard POSIXish features, use WEBRTC_POSIX instead of
353 # a more specific macro.
354 'defines': [
355 'WEBRTC_POSIX',
356 ],
357 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000358 ['OS=="ios"', {
359 'defines': [
360 'WEBRTC_MAC',
361 'WEBRTC_IOS',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000362 ],
363 }],
364 ['OS=="linux"', {
365 'defines': [
366 'WEBRTC_LINUX',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000367 ],
368 }],
369 ['OS=="mac"', {
370 'defines': [
371 'WEBRTC_MAC',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000372 ],
373 }],
374 ['OS=="win"', {
375 'defines': [
376 'WEBRTC_WIN',
377 ],
378 # TODO(andrew): enable all warnings when possible.
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000379 # TODO(phoglund): get rid of 4373 supression when
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000380 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved.
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000381 'msvs_disabled_warnings': [
382 4373, # legacy warning for ignoring const / volatile in signatures.
383 4389, # Signed/unsigned mismatch.
384 ],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000385 # Re-enable some warnings that Chromium disables.
386 'msvs_disabled_warnings!': [4189,],
387 }],
388 ['OS=="android"', {
389 'defines': [
390 'WEBRTC_LINUX',
391 'WEBRTC_ANDROID',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000392 ],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000393 'conditions': [
394 ['enable_android_opensl==1', {
395 'defines': [
396 'WEBRTC_ANDROID_OPENSLES',
397 ],
398 }],
wjia@webrtc.orgb1193692013-01-12 01:52:07 +0000399 ['clang!=1', {
400 # The Android NDK doesn't provide optimized versions of these
401 # functions. Ensure they are disabled for all compilers.
402 'cflags': [
403 '-fno-builtin-cos',
404 '-fno-builtin-sin',
405 '-fno-builtin-cosf',
406 '-fno-builtin-sinf',
407 ],
408 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000409 ],
410 }],
411 ], # conditions
sergeyu@chromium.org6ebfd342013-05-22 18:22:21 +0000412 'direct_dependent_settings': {
sergeyu@chromium.org6ebfd342013-05-22 18:22:21 +0000413 'conditions': [
414 ['build_with_mozilla==1', {
415 'defines': [
416 # Changes settings for Mozilla build.
417 'WEBRTC_MOZILLA_BUILD',
418 ],
419 }],
420 ['build_with_chromium==1', {
421 'defines': [
422 # Changes settings for Chromium build.
423 'WEBRTC_CHROMIUM_BUILD',
424 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000425 'include_dirs': [
426 # overrides must be included first as that is the mechanism for
427 # selecting the override headers in Chromium.
428 '../overrides',
429 '../..',
430 ],
431 }, {
432 'include_dirs': [
433 '../..',
434 ],
sergeyu@chromium.org6ebfd342013-05-22 18:22:21 +0000435 }],
436 ['OS=="mac"', {
437 'defines': [
438 'WEBRTC_MAC',
439 ],
440 }],
441 ['OS=="ios"', {
442 'defines': [
443 'WEBRTC_MAC',
444 'WEBRTC_IOS',
445 ],
446 }],
447 ['OS=="win"', {
448 'defines': [
449 'WEBRTC_WIN',
450 ],
451 }],
452 ['OS=="linux"', {
453 'defines': [
454 'WEBRTC_LINUX',
455 ],
456 }],
457 ['OS=="android"', {
458 'defines': [
459 'WEBRTC_LINUX',
460 'WEBRTC_ANDROID',
461 ],
462 'conditions': [
463 ['enable_android_opensl==1', {
464 'defines': [
465 'WEBRTC_ANDROID_OPENSLES',
466 ],
467 }]
468 ],
469 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000470 ['os_posix==1', {
471 # For access to standard POSIXish features, use WEBRTC_POSIX instead
472 # of a more specific macro.
473 'defines': [
474 'WEBRTC_POSIX',
475 ],
476 }],
sergeyu@chromium.org6ebfd342013-05-22 18:22:21 +0000477 ],
478 },
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000479 }, # target_defaults
480}
481