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-10-24 16:23:05 -07:00
|
|
|
SOURCES += xpcom_glue_src_cppsrcs
|
2013-08-30 06:09:06 -07:00
|
|
|
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-08-30 06:09:06 -07:00
|
|
|
'../../nsStringAPI.cpp',
|
|
|
|
'../nsXPCOMGlue.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
2013-06-17 12:21:01 -07:00
|
|
|
LIBRARY_NAME = 'xpcomglue_staticruntime'
|
|
|
|
|
2014-07-22 21:29:09 -07:00
|
|
|
SDK_LIBRARY = True
|
2013-10-24 10:51:00 -07:00
|
|
|
|
|
|
|
# create a static lib
|
|
|
|
FORCE_STATIC_LIB = True
|
2013-11-27 05:55:07 -08:00
|
|
|
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
DEFINES['_USE_ANSI_CPP'] = True
|
2014-06-27 07:32:05 -07:00
|
|
|
# Don't include directives about which CRT to use
|
|
|
|
CFLAGS += ['-Zl']
|
|
|
|
CXXFLAGS += ['-Zl']
|
2013-11-27 05:55:07 -08:00
|
|
|
|
|
|
|
DEFINES['XPCOM_GLUE'] = True
|
|
|
|
|
2013-12-31 01:06:11 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../../../build',
|
|
|
|
]
|
|
|
|
|
2014-02-11 06:12:33 -08:00
|
|
|
# Statically link to the CRT 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
|