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.
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 LIBRARY_NAME = 'xul'
9 SOURCES += [
10 'nsStaticXULComponents.cpp',
11 ]
13 if CONFIG['OS_ARCH'] == 'WINNT':
14 SOURCES += [
15 'nsDllMain.cpp',
16 ]
18 # component libraries
19 additional_defines = (
20 'MOZ_AUTH_EXTENSION',
21 'MOZ_GIO_COMPONENT',
22 'MOZ_JSDEBUGGER',
23 'MOZ_PERMISSIONS',
24 'MOZ_PREF_EXTENSIONS',
25 'MOZ_SPELLCHECK',
26 'MOZ_UNIVERSALCHARDET',
27 'MOZ_ZIPWRITER',
28 )
30 for var in additional_defines:
31 if CONFIG[var]:
32 DEFINES[var] = True
34 if CONFIG['MOZ_DEBUG'] and CONFIG['ENABLE_TESTS']:
35 DEFINES['ENABLE_LAYOUTDEBUG'] = True
37 if CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('android', 'gonk', 'qt',
38 'cocoa', 'windows') and \
39 CONFIG['MOZ_XUL']:
40 DEFINES['MOZ_FILEVIEW'] = True
42 # Platform-specific icon channel stuff - supported mostly-everywhere
43 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'mac', 'cocoa',
44 'gtk2', 'gtk3', 'qt', 'android'):
45 DEFINES['ICON_DECODER'] = True
47 LOCAL_INCLUDES += [
48 '/config',
49 # need widget/windows for resource.h (included from widget.rc)
50 '/widget/windows',
51 ]
53 if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
54 LOCAL_INCLUDES += [
55 '/xpcom/base',
56 ]
58 FAIL_ON_WARNINGS = True
60 DIRS += ['build', 'gtest']