michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/ipc/chromium/src', michael@0: '/ipc/glue', michael@0: ] michael@0: michael@0: GENERATED_INCLUDES += [ michael@0: '/ipc/ipdl/_ipdlheaders', michael@0: ] michael@0: michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: OS_LIBS += [ '$(call EXPAND_LIBNAME,psapi shell32 dbghelp)' ] michael@0: michael@0: DEFINES.update({ michael@0: 'UNICODE': True, michael@0: '_UNICODE': True, michael@0: 'NOMINMAX': True, michael@0: '_CRT_RAND_S': True, michael@0: 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS': True, michael@0: '_SECURE_ATL': True, michael@0: 'CHROMIUM_BUILD': True, michael@0: 'U_STATIC_IMPLEMENTATION': True, michael@0: 'OS_WIN': 1, michael@0: 'WIN32': True, michael@0: '_WIN32': True, michael@0: '_WINDOWS': True, michael@0: 'WIN32_LEAN_AND_MEAN': True, michael@0: }) michael@0: michael@0: if CONFIG['_MSC_VER']: michael@0: DEFINES['COMPILER_MSVC'] = True michael@0: michael@0: else: michael@0: DEFINES['OS_POSIX'] = 1 michael@0: michael@0: if CONFIG['OS_ARCH'] == 'Darwin': michael@0: DEFINES['OS_MACOSX'] = 1 michael@0: michael@0: elif CONFIG['OS_ARCH'] == 'DragonFly': michael@0: OS_LIBS += [ '$(call EXPAND_LIBNAME,kvm)' ] michael@0: DEFINES.update({ michael@0: 'OS_DRAGONFLY': 1, michael@0: 'OS_BSD': 1, michael@0: }) michael@0: michael@0: elif CONFIG['OS_ARCH'] == 'FreeBSD' or CONFIG['OS_ARCH'] == 'GNU_kFreeBSD': michael@0: if CONFIG['OS_ARCH'] != 'GNU_kFreeBSD': michael@0: OS_LIBS += [ '$(call EXPAND_LIBNAME,kvm)' ] michael@0: michael@0: DEFINES.update({ michael@0: 'OS_FREEBSD': 1, michael@0: 'OS_BSD': 1, michael@0: }) michael@0: michael@0: elif CONFIG['OS_ARCH'] == 'NetBSD': michael@0: OS_LIBS += [ '$(call EXPAND_LIBNAME,kvm)' ] michael@0: DEFINES.update({ michael@0: 'OS_NETBSD': 1, michael@0: 'OS_BSD': 1, michael@0: }) michael@0: michael@0: elif CONFIG['OS_ARCH'] == 'OpenBSD': michael@0: OS_LIBS += [ '$(call EXPAND_LIBNAME,kvm)' ] michael@0: DEFINES.update({ michael@0: 'OS_OPENBSD': 1, michael@0: 'OS_BSD': 1, michael@0: }) michael@0: michael@0: else: michael@0: DEFINES['OS_LINUX'] = 1