2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 13:20:02 -08:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-08-30 06:09:06 -07:00
|
|
|
include('../objs.mozbuild')
|
|
|
|
|
2013-12-01 07:47:52 -08:00
|
|
|
UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs
|
|
|
|
UNIFIED_SOURCES += xpcom_glue_src_cppsrcs
|
2013-08-30 06:09:06 -07:00
|
|
|
|
2013-12-01 07:47:52 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-08-30 06:09:06 -07:00
|
|
|
'../GenericModule.cpp',
|
|
|
|
'../nsStringAPI.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
2013-06-17 12:21:01 -07:00
|
|
|
LIBRARY_NAME = 'xpcomglue_s_nomozalloc'
|
|
|
|
|
2013-09-20 15:00:48 -07:00
|
|
|
SDK_LIBRARY = [
|
|
|
|
"%s%s.%s" % (CONFIG['LIB_PREFIX'], 'xpcomglue_s_nomozalloc', CONFIG['LIB_SUFFIX']),
|
|
|
|
]
|
2013-10-24 10:51:00 -07:00
|
|
|
|
|
|
|
# we don't want the shared lib, but we want to force the creation of a static lib.
|
|
|
|
FORCE_STATIC_LIB = True
|
2013-11-27 05:55:07 -08:00
|
|
|
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
DEFINES['_USE_ANSI_CPP'] = True
|
|
|
|
|
|
|
|
if CONFIG['TARGET_XPCOM_ABI']:
|
|
|
|
DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI']
|
|
|
|
|
|
|
|
DEFINES['MOZ_NO_MOZALLOC'] = True
|
2013-12-31 01:06:11 -08:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../../build',
|
|
|
|
]
|
|
|
|
|
2014-02-11 06:12:33 -08:00
|
|
|
# Pretend we're statically linking the CRT, even though we might not be: this
|
|
|
|
# avoids "msvcrp" and assembly dependencies from creeping into the directives
|
|
|
|
# for this library on Windows.
|
|
|
|
USE_STATIC_LIBS = True
|
2014-03-04 16:39:06 -08:00
|
|
|
|
|
|
|
# Don't use STL wrappers here (i.e. wrapped <new>); they require mozalloc
|
|
|
|
DISABLE_STL_WRAPPING = True
|