xpcom/glue/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/glue/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,117 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +DIRS += ['standalone', 'nomozalloc']
    1.11 +
    1.12 +# On win we build two glue libs - glue linked to crt dlls here and in staticruntime we build
    1.13 +# a statically linked glue lib.
    1.14 +if CONFIG['OS_ARCH'] == 'WINNT':
    1.15 +    DIRS += ['staticruntime']
    1.16 +
    1.17 +EXPORTS += [
    1.18 +    'MainThreadUtils.h',
    1.19 +    'nsArrayEnumerator.h',
    1.20 +    'nsArrayUtils.h',
    1.21 +    'nsBaseHashtable.h',
    1.22 +    'nsCategoryCache.h',
    1.23 +    'nsClassHashtable.h',
    1.24 +    'nsCOMArray.h',
    1.25 +    'nsComponentManagerUtils.h',
    1.26 +    'nsCOMPtr.h',
    1.27 +    'nsCRTGlue.h',
    1.28 +    'nsCycleCollectionNoteChild.h',
    1.29 +    'nsCycleCollectionNoteRootCallback.h',
    1.30 +    'nsCycleCollectionParticipant.h',
    1.31 +    'nsCycleCollectionTraversalCallback.h',
    1.32 +    'nsDataHashtable.h',
    1.33 +    'nsDebug.h',
    1.34 +    'nsDeque.h',
    1.35 +    'nsEnumeratorUtils.h',
    1.36 +    'nsHashKeys.h',
    1.37 +    'nsIClassInfoImpl.h',
    1.38 +    'nsID.h',
    1.39 +    'nsIInterfaceRequestorUtils.h',
    1.40 +    'nsINIParser.h',
    1.41 +    'nsInterfaceHashtable.h',
    1.42 +    'nsISupportsImpl.h',
    1.43 +    'nsISupportsUtils.h',
    1.44 +    'nsIWeakReferenceUtils.h',
    1.45 +    'nsJSThingHashtable.h',
    1.46 +    'nsMemory.h',
    1.47 +    'nsProxyRelease.h',
    1.48 +    'nsQuickSort.h',
    1.49 +    'nsRefPtrHashtable.h',
    1.50 +    'nsServiceManagerUtils.h',
    1.51 +    'nsStringAPI.h',
    1.52 +    'nsStringGlue.h',
    1.53 +    'nsTArray-inl.h',
    1.54 +    'nsTArray.h',
    1.55 +    'nsTArrayForwardDeclare.h',
    1.56 +    'nsTextFormatter.h',
    1.57 +    'nsTHashtable.h',
    1.58 +    'nsThreadUtils.h',
    1.59 +    'nsTObserverArray.h',
    1.60 +    'nsTPriorityQueue.h',
    1.61 +    'nsTWeakRef.h',
    1.62 +    'nsVersionComparator.h',
    1.63 +    'nsVoidArray.h',
    1.64 +    'nsWeakReference.h',
    1.65 +    'nsXPTCUtils.h',
    1.66 +    'pldhash.h',
    1.67 +]
    1.68 +
    1.69 +EXPORTS.mozilla += [
    1.70 +    'AppData.h',
    1.71 +    'AutoRestore.h',
    1.72 +    'BlockingResourceBase.h',
    1.73 +    'CondVar.h',
    1.74 +    'DeadlockDetector.h',
    1.75 +    'EnumeratedArrayCycleCollection.h',
    1.76 +    'FileUtils.h',
    1.77 +    'GenericFactory.h',
    1.78 +    'HoldDropJSObjects.h',
    1.79 +    'IntentionalCrash.h',
    1.80 +    'Monitor.h',
    1.81 +    'Mutex.h',
    1.82 +    'Observer.h',
    1.83 +    'ReentrantMonitor.h',
    1.84 +    'unused.h',
    1.85 +]
    1.86 +
    1.87 +EXPORTS.mozilla.threads += [
    1.88 +    'nsThreadIDs.h',
    1.89 +]
    1.90 +
    1.91 +include('objs.mozbuild')
    1.92 +
    1.93 +UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs
    1.94 +UNIFIED_SOURCES += xpcom_glue_src_cppsrcs
    1.95 +
    1.96 +UNIFIED_SOURCES += [
    1.97 +    'GenericModule.cpp',
    1.98 +    'nsStringAPI.cpp',
    1.99 +]
   1.100 +
   1.101 +LIBRARY_NAME = 'xpcomglue_s'
   1.102 +
   1.103 +SDK_LIBRARY = [
   1.104 +    "%s%s.%s" % (CONFIG['LIB_PREFIX'], 'xpcomglue_s', CONFIG['LIB_SUFFIX']),
   1.105 +]
   1.106 +
   1.107 +FORCE_STATIC_LIB = True
   1.108 +
   1.109 +if CONFIG['_MSC_VER']:
   1.110 +    DEFINES['_USE_ANSI_CPP'] = True
   1.111 +
   1.112 +if CONFIG['TARGET_XPCOM_ABI']:
   1.113 +    DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI']
   1.114 +
   1.115 +LOCAL_INCLUDES += [
   1.116 +    '../build',
   1.117 +]
   1.118 +
   1.119 +if CONFIG['ENABLE_TESTS']:
   1.120 +    DIRS += ['tests/gtest']

mercurial