michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: DIRS += ['standalone', 'nomozalloc'] michael@0: michael@0: # On win we build two glue libs - glue linked to crt dlls here and in staticruntime we build michael@0: # a statically linked glue lib. michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: DIRS += ['staticruntime'] michael@0: michael@0: EXPORTS += [ michael@0: 'MainThreadUtils.h', michael@0: 'nsArrayEnumerator.h', michael@0: 'nsArrayUtils.h', michael@0: 'nsBaseHashtable.h', michael@0: 'nsCategoryCache.h', michael@0: 'nsClassHashtable.h', michael@0: 'nsCOMArray.h', michael@0: 'nsComponentManagerUtils.h', michael@0: 'nsCOMPtr.h', michael@0: 'nsCRTGlue.h', michael@0: 'nsCycleCollectionNoteChild.h', michael@0: 'nsCycleCollectionNoteRootCallback.h', michael@0: 'nsCycleCollectionParticipant.h', michael@0: 'nsCycleCollectionTraversalCallback.h', michael@0: 'nsDataHashtable.h', michael@0: 'nsDebug.h', michael@0: 'nsDeque.h', michael@0: 'nsEnumeratorUtils.h', michael@0: 'nsHashKeys.h', michael@0: 'nsIClassInfoImpl.h', michael@0: 'nsID.h', michael@0: 'nsIInterfaceRequestorUtils.h', michael@0: 'nsINIParser.h', michael@0: 'nsInterfaceHashtable.h', michael@0: 'nsISupportsImpl.h', michael@0: 'nsISupportsUtils.h', michael@0: 'nsIWeakReferenceUtils.h', michael@0: 'nsJSThingHashtable.h', michael@0: 'nsMemory.h', michael@0: 'nsProxyRelease.h', michael@0: 'nsQuickSort.h', michael@0: 'nsRefPtrHashtable.h', michael@0: 'nsServiceManagerUtils.h', michael@0: 'nsStringAPI.h', michael@0: 'nsStringGlue.h', michael@0: 'nsTArray-inl.h', michael@0: 'nsTArray.h', michael@0: 'nsTArrayForwardDeclare.h', michael@0: 'nsTextFormatter.h', michael@0: 'nsTHashtable.h', michael@0: 'nsThreadUtils.h', michael@0: 'nsTObserverArray.h', michael@0: 'nsTPriorityQueue.h', michael@0: 'nsTWeakRef.h', michael@0: 'nsVersionComparator.h', michael@0: 'nsVoidArray.h', michael@0: 'nsWeakReference.h', michael@0: 'nsXPTCUtils.h', michael@0: 'pldhash.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla += [ michael@0: 'AppData.h', michael@0: 'AutoRestore.h', michael@0: 'BlockingResourceBase.h', michael@0: 'CondVar.h', michael@0: 'DeadlockDetector.h', michael@0: 'EnumeratedArrayCycleCollection.h', michael@0: 'FileUtils.h', michael@0: 'GenericFactory.h', michael@0: 'HoldDropJSObjects.h', michael@0: 'IntentionalCrash.h', michael@0: 'Monitor.h', michael@0: 'Mutex.h', michael@0: 'Observer.h', michael@0: 'ReentrantMonitor.h', michael@0: 'unused.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.threads += [ michael@0: 'nsThreadIDs.h', michael@0: ] michael@0: michael@0: include('objs.mozbuild') michael@0: michael@0: UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs michael@0: UNIFIED_SOURCES += xpcom_glue_src_cppsrcs michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'GenericModule.cpp', michael@0: 'nsStringAPI.cpp', michael@0: ] michael@0: michael@0: LIBRARY_NAME = 'xpcomglue_s' michael@0: michael@0: SDK_LIBRARY = [ michael@0: "%s%s.%s" % (CONFIG['LIB_PREFIX'], 'xpcomglue_s', CONFIG['LIB_SUFFIX']), michael@0: ] michael@0: michael@0: FORCE_STATIC_LIB = True michael@0: michael@0: if CONFIG['_MSC_VER']: michael@0: DEFINES['_USE_ANSI_CPP'] = True michael@0: michael@0: if CONFIG['TARGET_XPCOM_ABI']: michael@0: DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI'] michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../build', michael@0: ] michael@0: michael@0: if CONFIG['ENABLE_TESTS']: michael@0: DIRS += ['tests/gtest']