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/.
|
|
|
|
|
2015-03-10 23:41:38 +00:00
|
|
|
with Files('nsString*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'String')
|
|
|
|
|
2015-02-27 05:00:15 +00:00
|
|
|
DIRS += ['standalone']
|
2013-02-25 21:20:02 +00:00
|
|
|
|
|
|
|
# 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-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
2013-09-19 13:54:41 +00:00
|
|
|
'MainThreadUtils.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsArrayEnumerator.h',
|
|
|
|
'nsArrayUtils.h',
|
|
|
|
'nsBaseHashtable.h',
|
|
|
|
'nsCategoryCache.h',
|
|
|
|
'nsClassHashtable.h',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsCOMArray.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsComponentManagerUtils.h',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsCOMPtr.h',
|
|
|
|
'nsCRTGlue.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsCycleCollectionNoteChild.h',
|
2013-05-20 20:08:11 +00:00
|
|
|
'nsCycleCollectionNoteRootCallback.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsCycleCollectionParticipant.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsCycleCollectionTraversalCallback.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsDataHashtable.h',
|
|
|
|
'nsDebug.h',
|
|
|
|
'nsDeque.h',
|
|
|
|
'nsEnumeratorUtils.h',
|
|
|
|
'nsHashKeys.h',
|
|
|
|
'nsIClassInfoImpl.h',
|
|
|
|
'nsID.h',
|
|
|
|
'nsIInterfaceRequestorUtils.h',
|
|
|
|
'nsINIParser.h',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsInterfaceHashtable.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsISupportsImpl.h',
|
|
|
|
'nsISupportsUtils.h',
|
|
|
|
'nsIWeakReferenceUtils.h',
|
|
|
|
'nsJSThingHashtable.h',
|
|
|
|
'nsMemory.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsProxyRelease.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsQuickSort.h',
|
|
|
|
'nsRefPtrHashtable.h',
|
|
|
|
'nsServiceManagerUtils.h',
|
|
|
|
'nsStringAPI.h',
|
|
|
|
'nsStringGlue.h',
|
|
|
|
'nsTArray-inl.h',
|
|
|
|
'nsTArray.h',
|
|
|
|
'nsTArrayForwardDeclare.h',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsTextFormatter.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsTHashtable.h',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsThreadUtils.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsTObserverArray.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsTPriorityQueue.h',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsTWeakRef.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsVersionComparator.h',
|
|
|
|
'nsWeakReference.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsXPTCUtils.h',
|
2015-09-16 03:49:53 +00:00
|
|
|
'PLDHashTable.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'AppData.h',
|
|
|
|
'AutoRestore.h',
|
|
|
|
'BlockingResourceBase.h',
|
|
|
|
'CondVar.h',
|
|
|
|
'DeadlockDetector.h',
|
2014-04-26 02:34:03 +00:00
|
|
|
'EnumeratedArrayCycleCollection.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'FileUtils.h',
|
|
|
|
'GenericFactory.h',
|
|
|
|
'IntentionalCrash.h',
|
|
|
|
'Monitor.h',
|
|
|
|
'Mutex.h',
|
|
|
|
'Observer.h',
|
|
|
|
'ReentrantMonitor.h',
|
|
|
|
]
|
|
|
|
|
2013-08-30 13:09:06 +00:00
|
|
|
include('objs.mozbuild')
|
|
|
|
|
2013-11-19 02:34:00 +00:00
|
|
|
UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs
|
|
|
|
UNIFIED_SOURCES += xpcom_glue_src_cppsrcs
|
2013-08-30 13:09:06 +00:00
|
|
|
|
2013-11-19 02:34:00 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'GenericModule.cpp',
|
|
|
|
'nsStringAPI.cpp',
|
|
|
|
]
|
|
|
|
|
2014-09-03 05:10:54 +00:00
|
|
|
Library('xpcomglue_s')
|
2013-09-20 22:00:48 +00:00
|
|
|
|
2014-07-23 04:29:09 +00:00
|
|
|
SDK_LIBRARY = True
|
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
|
2014-06-27 14:32:05 +00:00
|
|
|
# Don't include directives about which CRT to use
|
|
|
|
CFLAGS += ['-Zl']
|
|
|
|
CXXFLAGS += ['-Zl']
|
2013-11-27 13:55:07 +00:00
|
|
|
|
2013-12-31 09:06:11 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../build',
|
2015-10-06 02:00:59 +00:00
|
|
|
'../threads',
|
2013-12-31 09:06:11 +00:00
|
|
|
]
|
|
|
|
|
2013-12-05 16:48:48 +00:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
DIRS += ['tests/gtest']
|
2015-01-25 08:25:13 +00:00
|
|
|
|
2015-01-28 09:00:40 +00:00
|
|
|
# Include fallible for third party code using the xpcom glue
|
|
|
|
USE_LIBS += [
|
|
|
|
'fallible',
|
|
|
|
]
|
2015-05-07 07:25:18 +00:00
|
|
|
|
|
|
|
# Force to build a static library only
|
|
|
|
NO_EXPAND_LIBS = True
|
2015-05-08 23:37:22 +00:00
|
|
|
|
|
|
|
DIST_INSTALL = True
|
2015-09-08 06:56:16 +00:00
|
|
|
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wshadow']
|