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 | UNIFIED_SOURCES += [ |
michael@0 | 8 | 'apiwrapper.c', |
michael@0 | 9 | 'bitpack.c', |
michael@0 | 10 | 'decapiwrapper.c', |
michael@0 | 11 | 'decinfo.c', |
michael@0 | 12 | 'decode.c', |
michael@0 | 13 | 'dequant.c', |
michael@0 | 14 | 'fragment.c', |
michael@0 | 15 | 'huffdec.c', |
michael@0 | 16 | 'idct.c', |
michael@0 | 17 | 'info.c', |
michael@0 | 18 | 'internal.c', |
michael@0 | 19 | 'quant.c', |
michael@0 | 20 | 'state.c', |
michael@0 | 21 | ] |
michael@0 | 22 | |
michael@0 | 23 | if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['GNU_AS']: |
michael@0 | 24 | GENERATED_SOURCES += [ '%s.%s' % (f, CONFIG['ASM_SUFFIX']) for f in [ |
michael@0 | 25 | 'armbits-gnu', |
michael@0 | 26 | 'armfrag-gnu', |
michael@0 | 27 | 'armidct-gnu', |
michael@0 | 28 | 'armloop-gnu', |
michael@0 | 29 | ]] |
michael@0 | 30 | |
michael@0 | 31 | if '86' in CONFIG['OS_TEST']: |
michael@0 | 32 | if CONFIG['OS_ARCH'] != 'SunOS': |
michael@0 | 33 | if CONFIG['OS_ARCH'] != 'WINNT' or CONFIG['OS_TEST'] != 'x86_64': |
michael@0 | 34 | DEFINES['OC_X86_ASM'] = True |
michael@0 | 35 | if '64' in CONFIG['OS_TEST']: |
michael@0 | 36 | DEFINES['OC_X86_64_ASM'] = True |
michael@0 | 37 | if CONFIG['_MSC_VER']: |
michael@0 | 38 | if '64' not in CONFIG['OS_TEST']: |
michael@0 | 39 | SOURCES += [ |
michael@0 | 40 | 'x86_vc/mmxfrag.c', |
michael@0 | 41 | 'x86_vc/mmxidct.c', |
michael@0 | 42 | 'x86_vc/mmxstate.c', |
michael@0 | 43 | 'x86_vc/x86cpu.c', |
michael@0 | 44 | 'x86_vc/x86state.c', |
michael@0 | 45 | ] |
michael@0 | 46 | else: |
michael@0 | 47 | SOURCES += [ |
michael@0 | 48 | 'x86/mmxfrag.c', |
michael@0 | 49 | 'x86/mmxidct.c', |
michael@0 | 50 | 'x86/mmxstate.c', |
michael@0 | 51 | 'x86/sse2idct.c', |
michael@0 | 52 | 'x86/x86cpu.c', |
michael@0 | 53 | 'x86/x86state.c', |
michael@0 | 54 | ] |
michael@0 | 55 | |
michael@0 | 56 | if CONFIG['GNU_AS']: |
michael@0 | 57 | if 'arm' in CONFIG['OS_TEST']: |
michael@0 | 58 | SOURCES += [ |
michael@0 | 59 | 'arm/armcpu.c', |
michael@0 | 60 | 'arm/armstate.c', |
michael@0 | 61 | ] |
michael@0 | 62 | for var in ('OC_ARM_ASM', 'OC_ARM_ASM_EDSP', 'OC_ARM_ASM_MEDIA', |
michael@0 | 63 | 'OC_ARM_ASM_NEON'): |
michael@0 | 64 | DEFINES[var] = True |
michael@0 | 65 | # The Android NDK doesn't pre-define anything to indicate the OS it's |
michael@0 | 66 | # on, so do it for them. |
michael@0 | 67 | if CONFIG['OS_TARGET'] == 'Android': |
michael@0 | 68 | DEFINES['__linux__'] = True |
michael@0 | 69 | |
michael@0 | 70 | MSVC_ENABLE_PGO = True |
michael@0 | 71 | |
michael@0 | 72 | if CONFIG['GKMEDIAS_SHARED_LIBRARY']: |
michael@0 | 73 | NO_VISIBILITY_FLAGS = True |
michael@0 | 74 | |
michael@0 | 75 | FINAL_LIBRARY = 'gkmedias' |
michael@0 | 76 | |
michael@0 | 77 | # The encoder is currently not included. |
michael@0 | 78 | DEFINES['THEORA_DISABLE_ENCODE'] = True |
michael@0 | 79 | |
michael@0 | 80 | # Suppress warnings in third-party code. |
michael@0 | 81 | if CONFIG['GNU_CC']: |
michael@0 | 82 | CFLAGS += ['-Wno-type-limits'] |
michael@0 | 83 | if CONFIG['CLANG_CXX']: |
michael@0 | 84 | CFLAGS += ['-Wno-tautological-compare'] |