Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | LOCAL_INCLUDES += [ |
michael@0 | 8 | '/ipc/chromium/src', |
michael@0 | 9 | '/ipc/glue', |
michael@0 | 10 | ] |
michael@0 | 11 | |
michael@0 | 12 | GENERATED_INCLUDES += [ |
michael@0 | 13 | '/ipc/ipdl/_ipdlheaders', |
michael@0 | 14 | ] |
michael@0 | 15 | |
michael@0 | 16 | if CONFIG['OS_ARCH'] == 'WINNT': |
michael@0 | 17 | OS_LIBS += [ '$(call EXPAND_LIBNAME,psapi shell32 dbghelp)' ] |
michael@0 | 18 | |
michael@0 | 19 | DEFINES.update({ |
michael@0 | 20 | 'UNICODE': True, |
michael@0 | 21 | '_UNICODE': True, |
michael@0 | 22 | 'NOMINMAX': True, |
michael@0 | 23 | '_CRT_RAND_S': True, |
michael@0 | 24 | 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS': True, |
michael@0 | 25 | '_SECURE_ATL': True, |
michael@0 | 26 | 'CHROMIUM_BUILD': True, |
michael@0 | 27 | 'U_STATIC_IMPLEMENTATION': True, |
michael@0 | 28 | 'OS_WIN': 1, |
michael@0 | 29 | 'WIN32': True, |
michael@0 | 30 | '_WIN32': True, |
michael@0 | 31 | '_WINDOWS': True, |
michael@0 | 32 | 'WIN32_LEAN_AND_MEAN': True, |
michael@0 | 33 | }) |
michael@0 | 34 | |
michael@0 | 35 | if CONFIG['_MSC_VER']: |
michael@0 | 36 | DEFINES['COMPILER_MSVC'] = True |
michael@0 | 37 | |
michael@0 | 38 | else: |
michael@0 | 39 | DEFINES['OS_POSIX'] = 1 |
michael@0 | 40 | |
michael@0 | 41 | if CONFIG['OS_ARCH'] == 'Darwin': |
michael@0 | 42 | DEFINES['OS_MACOSX'] = 1 |
michael@0 | 43 | |
michael@0 | 44 | elif CONFIG['OS_ARCH'] == 'DragonFly': |
michael@0 | 45 | OS_LIBS += [ '$(call EXPAND_LIBNAME,kvm)' ] |
michael@0 | 46 | DEFINES.update({ |
michael@0 | 47 | 'OS_DRAGONFLY': 1, |
michael@0 | 48 | 'OS_BSD': 1, |
michael@0 | 49 | }) |
michael@0 | 50 | |
michael@0 | 51 | elif CONFIG['OS_ARCH'] == 'FreeBSD' or CONFIG['OS_ARCH'] == 'GNU_kFreeBSD': |
michael@0 | 52 | if CONFIG['OS_ARCH'] != 'GNU_kFreeBSD': |
michael@0 | 53 | OS_LIBS += [ '$(call EXPAND_LIBNAME,kvm)' ] |
michael@0 | 54 | |
michael@0 | 55 | DEFINES.update({ |
michael@0 | 56 | 'OS_FREEBSD': 1, |
michael@0 | 57 | 'OS_BSD': 1, |
michael@0 | 58 | }) |
michael@0 | 59 | |
michael@0 | 60 | elif CONFIG['OS_ARCH'] == 'NetBSD': |
michael@0 | 61 | OS_LIBS += [ '$(call EXPAND_LIBNAME,kvm)' ] |
michael@0 | 62 | DEFINES.update({ |
michael@0 | 63 | 'OS_NETBSD': 1, |
michael@0 | 64 | 'OS_BSD': 1, |
michael@0 | 65 | }) |
michael@0 | 66 | |
michael@0 | 67 | elif CONFIG['OS_ARCH'] == 'OpenBSD': |
michael@0 | 68 | OS_LIBS += [ '$(call EXPAND_LIBNAME,kvm)' ] |
michael@0 | 69 | DEFINES.update({ |
michael@0 | 70 | 'OS_OPENBSD': 1, |
michael@0 | 71 | 'OS_BSD': 1, |
michael@0 | 72 | }) |
michael@0 | 73 | |
michael@0 | 74 | else: |
michael@0 | 75 | DEFINES['OS_LINUX'] = 1 |