2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:20:02 +00: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/.
|
|
|
|
|
|
|
|
# On win we build two glue libs - glue linked to crt dlls here and in staticruntime we build
|
|
|
|
# a statically linked glue lib.
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
DIRS += ['staticruntime']
|
2013-03-19 18:47:00 +00:00
|
|
|
|
2013-08-30 13:09:06 +00:00
|
|
|
include('../objs.mozbuild')
|
|
|
|
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += xpcom_glue_src_cppsrcs
|
2013-08-30 13:09:06 +00:00
|
|
|
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-08-30 13:09:06 +00:00
|
|
|
'../nsStringAPI.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsXPCOMGlue.cpp',
|
|
|
|
]
|
|
|
|
|
2013-06-17 19:21:01 +00:00
|
|
|
LIBRARY_NAME = 'xpcomglue'
|
|
|
|
|
2013-07-01 21:24:53 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'nsXPCOMGlue.h',
|
|
|
|
]
|
2013-09-20 22:00:48 +00:00
|
|
|
|
|
|
|
SDK_LIBRARY = [
|
|
|
|
"%s%s.%s" % (CONFIG['LIB_PREFIX'], 'xpcomglue', CONFIG['LIB_SUFFIX']),
|
|
|
|
]
|
2013-10-24 17:51:00 +00:00
|
|
|
|
|
|
|
FORCE_STATIC_LIB = True
|
2013-11-27 13:55:07 +00:00
|
|
|
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
DEFINES['_USE_ANSI_CPP'] = True
|
|
|
|
|
|
|
|
DEFINES['XPCOM_GLUE'] = True
|
|
|
|
|
|
|
|
if CONFIG['TARGET_XPCOM_ABI']:
|
|
|
|
DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI']
|
2013-12-31 09:06:11 +00:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../../build',
|
|
|
|
]
|
|
|
|
|
2014-03-05 00:39:06 +00:00
|
|
|
# Don't use STL wrappers here (i.e. wrapped <new>); they require mozalloc
|
|
|
|
DISABLE_STL_WRAPPING = True
|