2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-10-02 21:17:55 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2015-11-04 08:20:20 +03:00
|
|
|
'!/ipc/ipdl/_ipdlheaders',
|
2013-10-02 21:17:55 +04:00
|
|
|
'/ipc/chromium/src',
|
|
|
|
'/ipc/glue',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
2014-08-06 02:25:05 +04:00
|
|
|
OS_LIBS += [
|
|
|
|
'shell32',
|
|
|
|
'dbghelp',
|
|
|
|
]
|
2013-10-02 21:17:55 +04:00
|
|
|
|
|
|
|
DEFINES.update({
|
|
|
|
'UNICODE': True,
|
|
|
|
'_UNICODE': True,
|
|
|
|
'_CRT_RAND_S': True,
|
|
|
|
'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS': True,
|
|
|
|
'_SECURE_ATL': True,
|
|
|
|
'CHROMIUM_BUILD': True,
|
|
|
|
'U_STATIC_IMPLEMENTATION': True,
|
|
|
|
'OS_WIN': 1,
|
|
|
|
'WIN32': True,
|
|
|
|
'_WIN32': True,
|
|
|
|
'_WINDOWS': True,
|
|
|
|
'WIN32_LEAN_AND_MEAN': True,
|
|
|
|
})
|
|
|
|
|
2017-12-08 15:46:13 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
2013-10-02 21:17:55 +04:00
|
|
|
DEFINES['COMPILER_MSVC'] = True
|
|
|
|
|
|
|
|
else:
|
|
|
|
DEFINES['OS_POSIX'] = 1
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'Darwin':
|
|
|
|
DEFINES['OS_MACOSX'] = 1
|
|
|
|
|
2017-04-11 10:01:32 +03:00
|
|
|
elif CONFIG['OS_ARCH'] == 'SunOS':
|
|
|
|
DEFINES['OS_SOLARIS'] = 1
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
elif CONFIG['OS_ARCH'] == 'DragonFly':
|
|
|
|
DEFINES.update({
|
|
|
|
'OS_DRAGONFLY': 1,
|
|
|
|
'OS_BSD': 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
elif CONFIG['OS_ARCH'] == 'FreeBSD' or CONFIG['OS_ARCH'] == 'GNU_kFreeBSD':
|
|
|
|
DEFINES.update({
|
|
|
|
'OS_FREEBSD': 1,
|
|
|
|
'OS_BSD': 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
elif CONFIG['OS_ARCH'] == 'NetBSD':
|
|
|
|
DEFINES.update({
|
|
|
|
'OS_NETBSD': 1,
|
|
|
|
'OS_BSD': 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
elif CONFIG['OS_ARCH'] == 'OpenBSD':
|
|
|
|
DEFINES.update({
|
|
|
|
'OS_OPENBSD': 1,
|
|
|
|
'OS_BSD': 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
else:
|
|
|
|
DEFINES['OS_LINUX'] = 1
|
2018-04-05 22:48:11 +03:00
|
|
|
|
|
|
|
|
|
|
|
# Add libFuzzer configuration directives
|
|
|
|
include('/tools/fuzzing/libfuzzer-config.mozbuild')
|