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 include('../../objs.mozbuild')
9 SOURCES += xpcom_glue_src_cppsrcs
11 SOURCES += [
12 '../../nsStringAPI.cpp',
13 '../nsXPCOMGlue.cpp',
14 ]
16 LIBRARY_NAME = 'xpcomglue_staticruntime'
18 SDK_LIBRARY = [
19 "%s%s.%s" % (CONFIG['LIB_PREFIX'], 'xpcomglue_staticruntime', CONFIG['LIB_SUFFIX']),
20 ]
22 # create a static lib
23 FORCE_STATIC_LIB = True
25 if CONFIG['_MSC_VER']:
26 DEFINES['_USE_ANSI_CPP'] = True
28 DEFINES['XPCOM_GLUE'] = True
30 if CONFIG['TARGET_XPCOM_ABI']:
31 DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI']
33 LOCAL_INCLUDES += [
34 '../../../build',
35 ]
37 # Statically link to the CRT on Windows
38 USE_STATIC_LIBS = True
40 # Don't use STL wrappers here (i.e. wrapped <new>); they require mozalloc
41 DISABLE_STL_WRAPPING = True