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