xpcom/glue/standalone/moz.build

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:3a838482433a
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 # On win we build two glue libs - glue linked to crt dlls here and in staticruntime we build
8 # a statically linked glue lib.
9 if CONFIG['OS_ARCH'] == 'WINNT':
10 DIRS += ['staticruntime']
11
12 include('../objs.mozbuild')
13
14 SOURCES += xpcom_glue_src_cppsrcs
15
16 SOURCES += [
17 '../nsStringAPI.cpp',
18 'nsXPCOMGlue.cpp',
19 ]
20
21 LIBRARY_NAME = 'xpcomglue'
22
23 EXPORTS += [
24 'nsXPCOMGlue.h',
25 ]
26
27 SDK_LIBRARY = [
28 "%s%s.%s" % (CONFIG['LIB_PREFIX'], 'xpcomglue', CONFIG['LIB_SUFFIX']),
29 ]
30
31 FORCE_STATIC_LIB = True
32
33 if CONFIG['_MSC_VER']:
34 DEFINES['_USE_ANSI_CPP'] = True
35
36 DEFINES['XPCOM_GLUE'] = True
37
38 if CONFIG['TARGET_XPCOM_ABI']:
39 DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI']
40
41 LOCAL_INCLUDES += [
42 '../../build',
43 ]
44
45 # Don't use STL wrappers here (i.e. wrapped <new>); they require mozalloc
46 DISABLE_STL_WRAPPING = True

mercurial