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 | LIBRARY_NAME = 'xul' |
michael@0 | 8 | |
michael@0 | 9 | SOURCES += [ |
michael@0 | 10 | 'nsStaticXULComponents.cpp', |
michael@0 | 11 | ] |
michael@0 | 12 | |
michael@0 | 13 | if CONFIG['OS_ARCH'] == 'WINNT': |
michael@0 | 14 | SOURCES += [ |
michael@0 | 15 | 'nsDllMain.cpp', |
michael@0 | 16 | ] |
michael@0 | 17 | |
michael@0 | 18 | # component libraries |
michael@0 | 19 | additional_defines = ( |
michael@0 | 20 | 'MOZ_AUTH_EXTENSION', |
michael@0 | 21 | 'MOZ_GIO_COMPONENT', |
michael@0 | 22 | 'MOZ_JSDEBUGGER', |
michael@0 | 23 | 'MOZ_PERMISSIONS', |
michael@0 | 24 | 'MOZ_PREF_EXTENSIONS', |
michael@0 | 25 | 'MOZ_SPELLCHECK', |
michael@0 | 26 | 'MOZ_UNIVERSALCHARDET', |
michael@0 | 27 | 'MOZ_ZIPWRITER', |
michael@0 | 28 | ) |
michael@0 | 29 | |
michael@0 | 30 | for var in additional_defines: |
michael@0 | 31 | if CONFIG[var]: |
michael@0 | 32 | DEFINES[var] = True |
michael@0 | 33 | |
michael@0 | 34 | if CONFIG['MOZ_DEBUG'] and CONFIG['ENABLE_TESTS']: |
michael@0 | 35 | DEFINES['ENABLE_LAYOUTDEBUG'] = True |
michael@0 | 36 | |
michael@0 | 37 | if CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('android', 'gonk', 'qt', |
michael@0 | 38 | 'cocoa', 'windows') and \ |
michael@0 | 39 | CONFIG['MOZ_XUL']: |
michael@0 | 40 | DEFINES['MOZ_FILEVIEW'] = True |
michael@0 | 41 | |
michael@0 | 42 | # Platform-specific icon channel stuff - supported mostly-everywhere |
michael@0 | 43 | if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'mac', 'cocoa', |
michael@0 | 44 | 'gtk2', 'gtk3', 'qt', 'android'): |
michael@0 | 45 | DEFINES['ICON_DECODER'] = True |
michael@0 | 46 | |
michael@0 | 47 | LOCAL_INCLUDES += [ |
michael@0 | 48 | '/config', |
michael@0 | 49 | # need widget/windows for resource.h (included from widget.rc) |
michael@0 | 50 | '/widget/windows', |
michael@0 | 51 | ] |
michael@0 | 52 | |
michael@0 | 53 | if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']: |
michael@0 | 54 | LOCAL_INCLUDES += [ |
michael@0 | 55 | '/xpcom/base', |
michael@0 | 56 | ] |
michael@0 | 57 | |
michael@0 | 58 | FAIL_ON_WARNINGS = True |
michael@0 | 59 | |
michael@0 | 60 | DIRS += ['build', 'gtest'] |