Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
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 | LIBRARY_NAME = 'cubeb' |
michael@0 | 8 | |
michael@0 | 9 | SOURCES += [ |
michael@0 | 10 | 'cubeb.c', |
michael@0 | 11 | ] |
michael@0 | 12 | |
michael@0 | 13 | if CONFIG['MOZ_ALSA']: |
michael@0 | 14 | SOURCES += [ |
michael@0 | 15 | 'cubeb_alsa.c', |
michael@0 | 16 | ] |
michael@0 | 17 | DEFINES['USE_ALSA'] = True |
michael@0 | 18 | |
michael@0 | 19 | if CONFIG['MOZ_PULSEAUDIO']: |
michael@0 | 20 | SOURCES += [ |
michael@0 | 21 | 'cubeb_pulse.c', |
michael@0 | 22 | ] |
michael@0 | 23 | DEFINES['USE_PULSE'] = True |
michael@0 | 24 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': |
michael@0 | 25 | DEFINES['DISABLE_LIBPULSE_DLOPEN'] = True |
michael@0 | 26 | |
michael@0 | 27 | if CONFIG['OS_ARCH'] == 'OpenBSD': |
michael@0 | 28 | SOURCES += [ |
michael@0 | 29 | 'cubeb_sndio.c', |
michael@0 | 30 | ] |
michael@0 | 31 | DEFINES['USE_SNDIO'] = True |
michael@0 | 32 | |
michael@0 | 33 | if CONFIG['OS_TARGET'] == 'Darwin': |
michael@0 | 34 | SOURCES += [ |
michael@0 | 35 | 'cubeb_audiounit.c', |
michael@0 | 36 | ] |
michael@0 | 37 | DEFINES['USE_AUDIOUNIT'] = True |
michael@0 | 38 | |
michael@0 | 39 | if CONFIG['OS_TARGET'] == 'WINNT': |
michael@0 | 40 | SOURCES += [ |
michael@0 | 41 | 'cubeb_wasapi.cpp', |
michael@0 | 42 | 'cubeb_winmm.c', |
michael@0 | 43 | ] |
michael@0 | 44 | DEFINES['USE_WINMM'] = True |
michael@0 | 45 | DEFINES['USE_WASAPI'] = True |
michael@0 | 46 | |
michael@0 | 47 | if CONFIG['OS_TARGET'] == 'Android': |
michael@0 | 48 | SOURCES += ['cubeb_opensl.c'] |
michael@0 | 49 | SOURCES['cubeb_opensl.c'].flags += ['-Wno-declaration-after-statement'] |
michael@0 | 50 | DEFINES['USE_OPENSL'] = True |
michael@0 | 51 | if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk': |
michael@0 | 52 | SOURCES += [ |
michael@0 | 53 | 'cubeb_audiotrack.c', |
michael@0 | 54 | ] |
michael@0 | 55 | DEFINES['USE_AUDIOTRACK'] = True |
michael@0 | 56 | |
michael@0 | 57 | MSVC_ENABLE_PGO = True |
michael@0 | 58 | |
michael@0 | 59 | if CONFIG['GKMEDIAS_SHARED_LIBRARY']: |
michael@0 | 60 | NO_VISIBILITY_FLAGS = True |
michael@0 | 61 | |
michael@0 | 62 | FINAL_LIBRARY = 'gkmedias' |
michael@0 | 63 | |
michael@0 | 64 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': |
michael@0 | 65 | CFLAGS += [ |
michael@0 | 66 | '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [ |
michael@0 | 67 | 'frameworks/wilhelm/include', |
michael@0 | 68 | 'system/media/wilhelm/include', |
michael@0 | 69 | ] |
michael@0 | 70 | ] |