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/.
|
|
|
|
|
|
|
|
DIRS += ['standalone', 'nomozalloc']
|
|
|
|
|
|
|
|
# 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 11:47:00 -07:00
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
2013-09-19 06:54:41 -07:00
|
|
|
'MainThreadUtils.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsArrayEnumerator.h',
|
|
|
|
'nsArrayUtils.h',
|
|
|
|
'nsBaseHashtable.h',
|
|
|
|
'nsCategoryCache.h',
|
|
|
|
'nsClassHashtable.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsCOMArray.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsComponentManagerUtils.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsCOMPtr.h',
|
|
|
|
'nsCRTGlue.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsCycleCollectionNoteChild.h',
|
2013-05-20 13:08:11 -07:00
|
|
|
'nsCycleCollectionNoteRootCallback.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsCycleCollectionParticipant.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsCycleCollectionTraversalCallback.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsDataHashtable.h',
|
|
|
|
'nsDebug.h',
|
|
|
|
'nsDeque.h',
|
|
|
|
'nsEnumeratorUtils.h',
|
|
|
|
'nsHashKeys.h',
|
|
|
|
'nsIClassInfoImpl.h',
|
|
|
|
'nsID.h',
|
|
|
|
'nsIInterfaceRequestorUtils.h',
|
|
|
|
'nsINIParser.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsInterfaceHashtable.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsISupportsImpl.h',
|
|
|
|
'nsISupportsUtils.h',
|
|
|
|
'nsIWeakReferenceUtils.h',
|
|
|
|
'nsJSThingHashtable.h',
|
|
|
|
'nsMemory.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsProxyRelease.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsQuickSort.h',
|
|
|
|
'nsRefPtrHashtable.h',
|
|
|
|
'nsServiceManagerUtils.h',
|
|
|
|
'nsStringAPI.h',
|
|
|
|
'nsStringGlue.h',
|
|
|
|
'nsTArray-inl.h',
|
|
|
|
'nsTArray.h',
|
|
|
|
'nsTArrayForwardDeclare.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsTextFormatter.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsTHashtable.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsThreadUtils.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsTObserverArray.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsTPriorityQueue.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsTWeakRef.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsVersionComparator.h',
|
|
|
|
'nsVoidArray.h',
|
|
|
|
'nsWeakReference.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsXPTCUtils.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'pldhash.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'AppData.h',
|
|
|
|
'AutoRestore.h',
|
|
|
|
'BlockingResourceBase.h',
|
|
|
|
'CondVar.h',
|
|
|
|
'DeadlockDetector.h',
|
2014-04-25 19:34:03 -07:00
|
|
|
'EnumeratedArrayCycleCollection.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'FileUtils.h',
|
|
|
|
'GenericFactory.h',
|
2013-09-10 08:29:43 -07:00
|
|
|
'HoldDropJSObjects.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'IntentionalCrash.h',
|
|
|
|
'Monitor.h',
|
|
|
|
'Mutex.h',
|
|
|
|
'Observer.h',
|
|
|
|
'ReentrantMonitor.h',
|
|
|
|
'unused.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.threads += [
|
|
|
|
'nsThreadIDs.h',
|
|
|
|
]
|
|
|
|
|
2013-08-30 06:09:06 -07:00
|
|
|
include('objs.mozbuild')
|
|
|
|
|
2013-11-18 18:34:00 -08:00
|
|
|
UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs
|
|
|
|
UNIFIED_SOURCES += xpcom_glue_src_cppsrcs
|
2013-08-30 06:09:06 -07:00
|
|
|
|
2013-11-18 18:34:00 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'GenericModule.cpp',
|
|
|
|
'nsStringAPI.cpp',
|
|
|
|
]
|
|
|
|
|
2013-06-17 12:21:01 -07:00
|
|
|
LIBRARY_NAME = 'xpcomglue_s'
|
2013-09-20 15:00:48 -07:00
|
|
|
|
|
|
|
SDK_LIBRARY = [
|
|
|
|
"%s%s.%s" % (CONFIG['LIB_PREFIX'], 'xpcomglue_s', CONFIG['LIB_SUFFIX']),
|
|
|
|
]
|
2013-10-24 10:51:00 -07:00
|
|
|
|
|
|
|
FORCE_STATIC_LIB = True
|
2013-11-27 05:55:07 -08:00
|
|
|
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
DEFINES['_USE_ANSI_CPP'] = True
|
|
|
|
|
2013-12-31 01:06:11 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../build',
|
|
|
|
]
|
|
|
|
|
2013-12-05 08:48:48 -08:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
DIRS += ['tests/gtest']
|