2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-10-02 17:17:55 +00: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 05:20:20 +00:00
|
|
|
'!/ipc/ipdl/_ipdlheaders',
|
2013-10-02 17:17:55 +00:00
|
|
|
'/ipc/chromium/src',
|
|
|
|
'/ipc/glue',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
2014-08-05 22:25:05 +00:00
|
|
|
OS_LIBS += [
|
|
|
|
'shell32',
|
|
|
|
'dbghelp',
|
|
|
|
]
|
2013-10-02 17:17:55 +00: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 12:46:13 +00:00
|
|
|
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
2013-10-02 17:17:55 +00:00
|
|
|
DEFINES['COMPILER_MSVC'] = True
|
|
|
|
|
|
|
|
else:
|
|
|
|
DEFINES['OS_POSIX'] = 1
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'Darwin':
|
|
|
|
DEFINES['OS_MACOSX'] = 1
|
|
|
|
|
2017-04-11 07:01:32 +00:00
|
|
|
elif CONFIG['OS_ARCH'] == 'SunOS':
|
|
|
|
DEFINES['OS_SOLARIS'] = 1
|
|
|
|
|
2013-10-02 17:17:55 +00: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
|