blob: 307686d1d0c69d6d2259254d08ebd7d375837e86 [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',
michaelbai@google.com82ebb462014-02-11 04:48:27 +000028 'gen_core_neon_offsets_gyp%': '<(DEPTH)/third_party/webrtc/modules/audio_processing/gen_core_neon_offsets_chromium.gyp',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000029 }, {
henrike@webrtc.org42581542013-07-16 16:37:22 +000030 'build_with_libjingle%': 0,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000031 'webrtc_root%': '<(DEPTH)/webrtc',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000032 'apk_tests_path%': '<(DEPTH)/webrtc/build/apk_tests.gyp',
henrike@webrtc.orga2073af2013-07-08 18:14:58 +000033 'modules_java_gyp_path%': '<(DEPTH)/webrtc/modules/modules_java.gyp',
michaelbai@google.com82ebb462014-02-11 04:48:27 +000034 'gen_core_neon_offsets_gyp%':'<(DEPTH)/webrtc/modules/audio_processing/gen_core_neon_offsets.gyp',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000035 }],
36 ],
37 },
38 'build_with_chromium%': '<(build_with_chromium)',
fischman@webrtc.orgf61e02c2013-02-20 23:13:46 +000039 'build_with_libjingle%': '<(build_with_libjingle)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000040 'webrtc_root%': '<(webrtc_root)',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000041 'apk_tests_path%': '<(apk_tests_path)',
henrike@webrtc.orga2073af2013-07-08 18:14:58 +000042 'modules_java_gyp_path%': '<(modules_java_gyp_path)',
michaelbai@google.com82ebb462014-02-11 04:48:27 +000043 'gen_core_neon_offsets_gyp%': '<(gen_core_neon_offsets_gyp)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000044 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8',
marpan@webrtc.org5b883172014-11-01 06:10:48 +000045 'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9',
stefan@webrtc.orgf56d6122013-07-09 12:32:35 +000046 'rbe_components_path%': '<(webrtc_root)/modules/remote_bitrate_estimator',
leozwang@webrtc.org6f19b1b2012-10-27 17:46:55 +000047 'include_opus%': 1,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000048 },
49 'build_with_chromium%': '<(build_with_chromium)',
fischman@webrtc.orgf61e02c2013-02-20 23:13:46 +000050 'build_with_libjingle%': '<(build_with_libjingle)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000051 'webrtc_root%': '<(webrtc_root)',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000052 'apk_tests_path%': '<(apk_tests_path)',
henrike@webrtc.orga2073af2013-07-08 18:14:58 +000053 'modules_java_gyp_path%': '<(modules_java_gyp_path)',
michaelbai@google.com82ebb462014-02-11 04:48:27 +000054 'gen_core_neon_offsets_gyp%': '<(gen_core_neon_offsets_gyp)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000055 'webrtc_vp8_dir%': '<(webrtc_vp8_dir)',
marpan@webrtc.org5b883172014-11-01 06:10:48 +000056 'webrtc_vp9_dir%': '<(webrtc_vp9_dir)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000057 'include_opus%': '<(include_opus)',
henrike@webrtc.orgd72a7592014-09-02 15:41:12 +000058 'rtc_relative_path%': 1,
stefan@webrtc.orgf56d6122013-07-09 12:32:35 +000059 'rbe_components_path%': '<(rbe_components_path)',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +000060 'external_libraries%': '0',
61 'json_root%': '<(DEPTH)/third_party/jsoncpp/source/include/',
62 # openssl needs to be defined or gyp will complain. Is is only used when
63 # when providing external libraries so just use current directory as a
64 # placeholder.
65 'ssl_root%': '.',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000066
67 # The Chromium common.gypi we use treats all gyp files without
68 # chromium_code==1 as third party code. This disables many of the
69 # preferred warning settings.
70 #
71 # We can set this here to have WebRTC code treated as Chromium code. Our
72 # third party code will still have the reduced warning settings.
73 'chromium_code': 1,
74
kjellander@webrtc.org0aa04f92014-03-28 13:14:00 +000075 # Set to 1 to enable code coverage on Linux using the gcov library.
76 'coverage%': 0,
77
solenberg@webrtc.orgd6e46632013-10-30 16:06:26 +000078 # Remote bitrate estimator logging/plotting.
79 'enable_bwe_test_logging%': 0,
80
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000081 # Adds video support to dependencies shared by voice and video engine.
82 # This should normally be enabled; the intended use is to disable only
83 # when building voice engine exclusively.
84 'enable_video%': 1,
85
86 # Selects fixed-point code where possible.
87 'prefer_fixed_point%': 0,
88
89 # Enable data logging. Produces text files with data logged within engines
90 # which can be easily parsed for offline processing.
91 'enable_data_logging%': 0,
92
andrew@webrtc.orgf9825e52013-05-20 21:18:04 +000093 # Enables the use of protocol buffers for debug recordings.
94 'enable_protobuf%': 1,
95
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000096 # Disable these to not build components which can be externally provided.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +000097 'build_json%': 1,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +000098 'build_libjpeg%': 1,
99 'build_libyuv%': 1,
100 'build_libvpx%': 1,
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000101 'build_ssl%': 1,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000102
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000103 # Disable by default
104 'have_dbus_glib%': 0,
105
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +0000106 # Enable to use the Mozilla internal settings.
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000107 'build_with_mozilla%': 0,
108
109 'libyuv_dir%': '<(DEPTH)/third_party/libyuv',
110
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000111 # Define MIPS architecture variant, MIPS DSP variant and MIPS FPU
112 # This may be subject to change in accordance to Chromium's MIPS flags
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000113 'mips_dsp_rev%': 0,
114 'mips_fpu%' : 1,
henrike@webrtc.org34c50c12013-09-27 22:34:35 +0000115 'enable_android_opensl%': 1,
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000116
andrew@webrtc.orgaf7fdfc2014-08-29 17:41:13 +0000117 # Link-Time Optimizations
118 # Executes code generation at link-time instead of compile-time
119 # https://gcc.gnu.org/wiki/LinkTimeOptimization
120 'use_lto%': 0,
121
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000122 # Defer ssl perference to that specified through sslconfig.h instead of
123 # choosing openssl or nss directly. In practice, this can be used to
124 # enable schannel on windows.
125 'use_legacy_ssl_defaults%': 0,
126
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000127 'conditions': [
128 ['build_with_chromium==1', {
129 # Exclude pulse audio on Chromium since its prerequisites don't require
130 # pulse audio.
131 'include_pulse_audio%': 0,
132
133 # Exclude internal ADM since Chromium uses its own IO handling.
134 'include_internal_audio_device%': 0,
135
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000136 }, { # Settings for the standalone (not-in-Chromium) build.
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000137 # TODO(andrew): For now, disable the Chrome plugins, which causes a
138 # flood of chromium-style warnings. Investigate enabling them:
139 # http://code.google.com/p/webrtc/issues/detail?id=163
140 'clang_use_chrome_plugins%': 0,
141
henrike@webrtc.org42581542013-07-16 16:37:22 +0000142 'include_pulse_audio%': 1,
143 'include_internal_audio_device%': 1,
henrike@webrtc.org42581542013-07-16 16:37:22 +0000144 }],
145 ['build_with_libjingle==1', {
146 'include_tests%': 0,
andrew@webrtc.orgf1a48172013-11-07 23:47:26 +0000147 'restrict_webrtc_logging%': 1,
henrike@webrtc.org42581542013-07-16 16:37:22 +0000148 }, {
149 'include_tests%': 1,
andrew@webrtc.orgf1a48172013-11-07 23:47:26 +0000150 'restrict_webrtc_logging%': 0,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000151 }],
152 ['OS=="ios"', {
fischman@webrtc.orgd0f4c212013-08-20 22:16:55 +0000153 'build_libjpeg%': 0,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000154 'enable_protobuf%': 0,
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000155 }],
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000156 ['target_arch=="arm" or target_arch=="armv7" or target_arch=="arm64"', {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000157 'prefer_fixed_point%': 1,
158 }],
andrew@webrtc.org0001adc2014-10-09 04:13:02 +0000159 ['OS!="ios" and (target_arch!="arm" or arm_version>=7)', {
andrew@webrtc.org4165f7a2014-10-08 18:01:27 +0000160 'rtc_use_openmax_dl%': 1,
161 }, {
162 'rtc_use_openmax_dl%': 0,
163 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000164 ], # conditions
165 },
166 'target_defaults': {
167 'include_dirs': [
kjellander@webrtc.orge1888af2013-01-28 20:00:03 +0000168 # To include the top-level directory when building in Chrome, so we can
169 # use full paths (e.g. headers inside testing/ or third_party/).
170 '<(DEPTH)',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000171 ],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000172 'conditions': [
andrew@webrtc.orgf1a48172013-11-07 23:47:26 +0000173 ['restrict_webrtc_logging==1', {
174 'defines': ['WEBRTC_RESTRICT_LOGGING',],
andrew@webrtc.orgc3e5d342012-11-23 19:30:59 +0000175 }],
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +0000176 ['build_with_mozilla==1', {
177 'defines': [
178 # Changes settings for Mozilla build.
179 'WEBRTC_MOZILLA_BUILD',
180 ],
181 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000182 ['have_dbus_glib==1', {
183 'defines': [
184 'HAVE_DBUS_GLIB',
185 ],
186 'cflags': [
187 '<!@(pkg-config --cflags dbus-glib-1)',
188 ],
189 }],
henrike@webrtc.orgd72a7592014-09-02 15:41:12 +0000190 ['rtc_relative_path==1', {
191 'defines': ['EXPAT_RELATIVE_PATH',],
192 }],
andrew@webrtc.orgde7c9e82013-12-09 16:23:00 +0000193 ['enable_video==1', {
194 'defines': ['WEBRTC_MODULE_UTILITY_VIDEO',],
195 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000196 ['build_with_chromium==1', {
197 'defines': [
198 # Changes settings for Chromium build.
199 'WEBRTC_CHROMIUM_BUILD',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000200 'LOGGING_INSIDE_WEBRTC',
201 ],
202 'include_dirs': [
203 # overrides must be included first as that is the mechanism for
204 # selecting the override headers in Chromium.
205 '../overrides',
206 # Allow includes to be prefixed with webrtc/ in case it is not an
207 # immediate subdirectory of <(DEPTH).
208 '../..',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000209 ],
210 }, {
211 'conditions': [
212 ['os_posix==1', {
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000213 'configurations': {
henrike@webrtc.org2fe58932014-10-06 22:04:11 +0000214 'Debug_Base': {
215 'defines': [
216 # Chromium's build/common.gypi defines this for all posix
217 # _except_ for ios & mac. We want it there as well, e.g.
218 # because ASSERT and friends trigger off of it.
219 '_DEBUG',
220 ],
221 },
222 },
solenberg@webrtc.orgc6db88b2014-06-04 17:15:42 +0000223 'conditions': [
224 # -Wextra is currently disabled in Chromium's common.gypi. Enable
225 # for targets that can handle it. For Android/arm64 right now
226 # there will be an 'enumeral and non-enumeral type in conditional
227 # expression' warning in android_tools/ndk_experimental's version
228 # of stlport.
229 # See: https://code.google.com/p/chromium/issues/detail?id=379699
230 ['target_arch!="arm64" or OS!="android"', {
231 'cflags': [
232 '-Wextra',
233 # We need to repeat some flags from Chromium's common.gypi
234 # here that get overridden by -Wextra.
235 '-Wno-unused-parameter',
236 '-Wno-missing-field-initializers',
237 '-Wno-strict-overflow',
238 ],
239 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000240 ],
241 'cflags_cc': [
pbos@webrtc.orgb3cc78d2013-11-21 11:42:02 +0000242 '-Wnon-virtual-dtor',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000243 # This is enabled for clang; enable for gcc as well.
244 '-Woverloaded-virtual',
245 ],
246 }],
andresp@webrtc.org7fb75ec2013-12-20 20:20:50 +0000247 ['clang==1', {
248 'cflags': [
249 '-Wthread-safety',
250 ],
251 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000252 ],
253 }],
tkchin@webrtc.org14146e42014-10-31 00:14:39 +0000254 ['target_arch=="arm64"', {
255 'defines': [
256 'WEBRTC_ARCH_ARM',
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000257 # TODO(zhongwei) Defining an unique WEBRTC_NEON and
258 # distinguishing ARMv7 NEON and ARM64 NEON by
259 # WEBRTC_ARCH_ARM_V7 and WEBRTC_ARCH_ARM64 should be better.
260
261 # This macro is used to distinguish ARMv7 NEON and ARM64 NEON
262 'WEBRTC_ARCH_ARM64_NEON',
tkchin@webrtc.org14146e42014-10-31 00:14:39 +0000263 ],
264 }],
fischman@webrtc.org31b4a5a2013-09-05 16:46:36 +0000265 ['target_arch=="arm" or target_arch=="armv7"', {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000266 'defines': [
267 'WEBRTC_ARCH_ARM',
268 ],
269 'conditions': [
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000270 ['arm_version>=7', {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000271 'defines': ['WEBRTC_ARCH_ARM_V7',],
272 'conditions': [
273 ['arm_neon==1', {
274 'defines': ['WEBRTC_ARCH_ARM_NEON',],
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000275 }],
276 ['arm_neon==0 and OS=="android"', {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000277 'defines': ['WEBRTC_DETECT_ARM_NEON',],
278 }],
279 ],
280 }],
281 ],
282 }],
andrew@webrtc.org11533222014-11-21 16:28:32 +0000283 ['target_arch=="mipsel" and mips_arch_variant!="r6" and android_webview_build==0', {
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000284 'defines': [
285 'MIPS32_LE',
286 ],
287 'conditions': [
288 ['mips_fpu==1', {
289 'defines': [
290 'MIPS_FPU_LE',
291 ],
292 'cflags': [
293 '-mhard-float',
294 ],
295 }, {
296 'cflags': [
297 '-msoft-float',
298 ],
299 }],
andrew@webrtc.orgd05756f2014-09-30 15:53:24 +0000300 ['mips_arch_variant=="r2"', {
andrew@webrtc.org5140e242013-02-21 20:12:21 +0000301 'defines': [
302 'MIPS32_R2_LE',
303 ],
304 'cflags': [
305 '-mips32r2',
306 ],
307 'cflags_cc': [
308 '-mips32r2',
309 ],
310 }],
311 ['mips_dsp_rev==1', {
312 'defines': [
313 'MIPS_DSP_R1_LE',
314 ],
315 'cflags': [
316 '-mdsp',
317 ],
318 'cflags_cc': [
319 '-mdsp',
320 ],
321 }],
322 ['mips_dsp_rev==2', {
323 'defines': [
324 'MIPS_DSP_R1_LE',
325 'MIPS_DSP_R2_LE',
326 ],
327 'cflags': [
328 '-mdspr2',
329 ],
330 'cflags_cc': [
331 '-mdspr2',
332 ],
333 }],
334 ],
335 }],
kjellander@webrtc.org0aa04f92014-03-28 13:14:00 +0000336 ['coverage==1 and OS=="linux"', {
337 'cflags': [ '-ftest-coverage',
338 '-fprofile-arcs' ],
339 'link_settings': { 'libraries': [ '-lgcov' ] },
340 }],
henrike@webrtc.orgcc08e3f2014-03-07 15:30:21 +0000341 ['os_posix==1', {
342 # For access to standard POSIXish features, use WEBRTC_POSIX instead of
343 # a more specific macro.
344 'defines': [
345 'WEBRTC_POSIX',
346 ],
347 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000348 ['OS=="ios"', {
349 'defines': [
350 'WEBRTC_MAC',
351 'WEBRTC_IOS',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000352 ],
353 }],
354 ['OS=="linux"', {
355 'defines': [
356 'WEBRTC_LINUX',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000357 ],
358 }],
359 ['OS=="mac"', {
360 'defines': [
361 'WEBRTC_MAC',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000362 ],
363 }],
364 ['OS=="win"', {
365 'defines': [
366 'WEBRTC_WIN',
367 ],
368 # TODO(andrew): enable all warnings when possible.
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000369 # TODO(phoglund): get rid of 4373 supression when
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000370 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved.
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000371 'msvs_disabled_warnings': [
372 4373, # legacy warning for ignoring const / volatile in signatures.
373 4389, # Signed/unsigned mismatch.
374 ],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000375 # Re-enable some warnings that Chromium disables.
376 'msvs_disabled_warnings!': [4189,],
377 }],
378 ['OS=="android"', {
379 'defines': [
380 'WEBRTC_LINUX',
381 'WEBRTC_ANDROID',
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000382 ],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000383 'conditions': [
384 ['enable_android_opensl==1', {
385 'defines': [
386 'WEBRTC_ANDROID_OPENSLES',
387 ],
388 }],
wjia@webrtc.orgb1193692013-01-12 01:52:07 +0000389 ['clang!=1', {
390 # The Android NDK doesn't provide optimized versions of these
391 # functions. Ensure they are disabled for all compilers.
392 'cflags': [
393 '-fno-builtin-cos',
394 '-fno-builtin-sin',
395 '-fno-builtin-cosf',
396 '-fno-builtin-sinf',
397 ],
398 }],
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000399 ],
400 }],
401 ], # conditions
sergeyu@chromium.org6ebfd342013-05-22 18:22:21 +0000402 'direct_dependent_settings': {
sergeyu@chromium.org6ebfd342013-05-22 18:22:21 +0000403 'conditions': [
404 ['build_with_mozilla==1', {
405 'defines': [
406 # Changes settings for Mozilla build.
407 'WEBRTC_MOZILLA_BUILD',
408 ],
409 }],
410 ['build_with_chromium==1', {
411 'defines': [
412 # Changes settings for Chromium build.
413 'WEBRTC_CHROMIUM_BUILD',
414 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000415 'include_dirs': [
416 # overrides must be included first as that is the mechanism for
417 # selecting the override headers in Chromium.
418 '../overrides',
419 '../..',
420 ],
421 }, {
422 'include_dirs': [
423 '../..',
424 ],
sergeyu@chromium.org6ebfd342013-05-22 18:22:21 +0000425 }],
426 ['OS=="mac"', {
427 'defines': [
428 'WEBRTC_MAC',
429 ],
430 }],
431 ['OS=="ios"', {
432 'defines': [
433 'WEBRTC_MAC',
434 'WEBRTC_IOS',
435 ],
436 }],
437 ['OS=="win"', {
438 'defines': [
439 'WEBRTC_WIN',
440 ],
441 }],
442 ['OS=="linux"', {
443 'defines': [
444 'WEBRTC_LINUX',
445 ],
446 }],
447 ['OS=="android"', {
448 'defines': [
449 'WEBRTC_LINUX',
450 'WEBRTC_ANDROID',
451 ],
452 'conditions': [
453 ['enable_android_opensl==1', {
454 'defines': [
455 'WEBRTC_ANDROID_OPENSLES',
456 ],
457 }]
458 ],
459 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000460 ['os_posix==1', {
461 # For access to standard POSIXish features, use WEBRTC_POSIX instead
462 # of a more specific macro.
463 'defines': [
464 'WEBRTC_POSIX',
465 ],
466 }],
sergeyu@chromium.org6ebfd342013-05-22 18:22:21 +0000467 ],
468 },
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000469 }, # target_defaults
470}
471