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 | NO_DIST_INSTALL = True |
michael@0 | 8 | |
michael@0 | 9 | UNIFIED_SOURCES += [ '%s/%s' % (relative_path, p) for p in [ |
michael@0 | 10 | 'nptest.cpp', |
michael@0 | 11 | 'nptest_utils.cpp', |
michael@0 | 12 | ]] |
michael@0 | 13 | |
michael@0 | 14 | UNIFIED_SOURCES += [ |
michael@0 | 15 | 'nptest_name.cpp', |
michael@0 | 16 | ] |
michael@0 | 17 | |
michael@0 | 18 | toolkit = CONFIG['MOZ_WIDGET_TOOLKIT'] |
michael@0 | 19 | if toolkit == 'cocoa': |
michael@0 | 20 | UNIFIED_SOURCES += [ |
michael@0 | 21 | relative_path + '/nptest_macosx.mm' |
michael@0 | 22 | ] |
michael@0 | 23 | elif toolkit == 'gtk2': |
michael@0 | 24 | UNIFIED_SOURCES += [ |
michael@0 | 25 | relative_path + '/nptest_gtk2.cpp', |
michael@0 | 26 | ] |
michael@0 | 27 | elif toolkit == 'android': |
michael@0 | 28 | UNIFIED_SOURCES += [ |
michael@0 | 29 | relative_path + '/nptest_droid.cpp', |
michael@0 | 30 | ] |
michael@0 | 31 | elif toolkit == 'qt': |
michael@0 | 32 | UNIFIED_SOURCES += [ |
michael@0 | 33 | relative_path + '/nptest_qt.cpp', |
michael@0 | 34 | ] |
michael@0 | 35 | elif toolkit == 'windows': |
michael@0 | 36 | UNIFIED_SOURCES += [ |
michael@0 | 37 | relative_path + '/nptest_windows.cpp', |
michael@0 | 38 | ] |
michael@0 | 39 | |
michael@0 | 40 | FORCE_SHARED_LIB = True |
michael@0 | 41 | |
michael@0 | 42 | # must link statically with the CRT; nptest isn't Gecko code |
michael@0 | 43 | USE_STATIC_LIBS = True |
michael@0 | 44 | |
michael@0 | 45 | # Don't use STL wrappers; nptest isn't Gecko code |
michael@0 | 46 | DISABLE_STL_WRAPPING = True |
michael@0 | 47 | |
michael@0 | 48 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': |
michael@0 | 49 | RCFILE = 'nptest.rc' |
michael@0 | 50 | RESFILE = 'nptest.res' |
michael@0 | 51 | DEFFILE = SRCDIR + '/nptest.def' |
michael@0 | 52 | |
michael@0 | 53 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa' and '64' in CONFIG['OS_TEST']: |
michael@0 | 54 | EXTRA_DSO_LDOPTS += ['-framework Carbon'] |