Bug 1490435 [wpt PR 12951] - Mark more Windows failures as xfail, a=testonly
[gecko.git] / media / webrtc / webrtc.mozbuild
blobace183728a2a0890d0a2dc6dc4a0d4be6bda17e6
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 if CONFIG['MOZ_WEBRTC']:
7     DEFINES['HAVE_UINT64_T'] = True
9     if CONFIG['OS_TARGET'] != 'WINNT':
10         DEFINES['WEBRTC_POSIX'] = True
11         DEFINES['WEBRTC_BUILD_LIBEVENT'] = True
13     if CONFIG['OS_TARGET'] == 'Linux':
14         DEFINES['WEBRTC_LINUX'] = True
15     elif CONFIG['OS_TARGET'] == 'Darwin':
16         DEFINES['WEBRTC_MAC'] = True
17     elif CONFIG['OS_TARGET'] == 'WINNT':
18         DEFINES['WEBRTC_WIN'] = True
19         DEFINES['HAVE_WINSOCK2_H'] = True
20     elif CONFIG['OS_TARGET'] in ('DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD'):
21         DEFINES['WEBRTC_BSD'] = True
22     elif CONFIG['OS_TARGET'] == 'Android':
23         DEFINES['WEBRTC_ANDROID'] = True
25     if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
26         DEFINES['__PRETTY_FUNCTION__'] = '__FUNCSIG__'
28     if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
29         CXXFLAGS += ['-Wno-error=shadow']