Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | DIRS += ['standalone', 'nomozalloc'] |
michael@0 | 8 | |
michael@0 | 9 | # On win we build two glue libs - glue linked to crt dlls here and in staticruntime we build |
michael@0 | 10 | # a statically linked glue lib. |
michael@0 | 11 | if CONFIG['OS_ARCH'] == 'WINNT': |
michael@0 | 12 | DIRS += ['staticruntime'] |
michael@0 | 13 | |
michael@0 | 14 | EXPORTS += [ |
michael@0 | 15 | 'MainThreadUtils.h', |
michael@0 | 16 | 'nsArrayEnumerator.h', |
michael@0 | 17 | 'nsArrayUtils.h', |
michael@0 | 18 | 'nsBaseHashtable.h', |
michael@0 | 19 | 'nsCategoryCache.h', |
michael@0 | 20 | 'nsClassHashtable.h', |
michael@0 | 21 | 'nsCOMArray.h', |
michael@0 | 22 | 'nsComponentManagerUtils.h', |
michael@0 | 23 | 'nsCOMPtr.h', |
michael@0 | 24 | 'nsCRTGlue.h', |
michael@0 | 25 | 'nsCycleCollectionNoteChild.h', |
michael@0 | 26 | 'nsCycleCollectionNoteRootCallback.h', |
michael@0 | 27 | 'nsCycleCollectionParticipant.h', |
michael@0 | 28 | 'nsCycleCollectionTraversalCallback.h', |
michael@0 | 29 | 'nsDataHashtable.h', |
michael@0 | 30 | 'nsDebug.h', |
michael@0 | 31 | 'nsDeque.h', |
michael@0 | 32 | 'nsEnumeratorUtils.h', |
michael@0 | 33 | 'nsHashKeys.h', |
michael@0 | 34 | 'nsIClassInfoImpl.h', |
michael@0 | 35 | 'nsID.h', |
michael@0 | 36 | 'nsIInterfaceRequestorUtils.h', |
michael@0 | 37 | 'nsINIParser.h', |
michael@0 | 38 | 'nsInterfaceHashtable.h', |
michael@0 | 39 | 'nsISupportsImpl.h', |
michael@0 | 40 | 'nsISupportsUtils.h', |
michael@0 | 41 | 'nsIWeakReferenceUtils.h', |
michael@0 | 42 | 'nsJSThingHashtable.h', |
michael@0 | 43 | 'nsMemory.h', |
michael@0 | 44 | 'nsProxyRelease.h', |
michael@0 | 45 | 'nsQuickSort.h', |
michael@0 | 46 | 'nsRefPtrHashtable.h', |
michael@0 | 47 | 'nsServiceManagerUtils.h', |
michael@0 | 48 | 'nsStringAPI.h', |
michael@0 | 49 | 'nsStringGlue.h', |
michael@0 | 50 | 'nsTArray-inl.h', |
michael@0 | 51 | 'nsTArray.h', |
michael@0 | 52 | 'nsTArrayForwardDeclare.h', |
michael@0 | 53 | 'nsTextFormatter.h', |
michael@0 | 54 | 'nsTHashtable.h', |
michael@0 | 55 | 'nsThreadUtils.h', |
michael@0 | 56 | 'nsTObserverArray.h', |
michael@0 | 57 | 'nsTPriorityQueue.h', |
michael@0 | 58 | 'nsTWeakRef.h', |
michael@0 | 59 | 'nsVersionComparator.h', |
michael@0 | 60 | 'nsVoidArray.h', |
michael@0 | 61 | 'nsWeakReference.h', |
michael@0 | 62 | 'nsXPTCUtils.h', |
michael@0 | 63 | 'pldhash.h', |
michael@0 | 64 | ] |
michael@0 | 65 | |
michael@0 | 66 | EXPORTS.mozilla += [ |
michael@0 | 67 | 'AppData.h', |
michael@0 | 68 | 'AutoRestore.h', |
michael@0 | 69 | 'BlockingResourceBase.h', |
michael@0 | 70 | 'CondVar.h', |
michael@0 | 71 | 'DeadlockDetector.h', |
michael@0 | 72 | 'EnumeratedArrayCycleCollection.h', |
michael@0 | 73 | 'FileUtils.h', |
michael@0 | 74 | 'GenericFactory.h', |
michael@0 | 75 | 'HoldDropJSObjects.h', |
michael@0 | 76 | 'IntentionalCrash.h', |
michael@0 | 77 | 'Monitor.h', |
michael@0 | 78 | 'Mutex.h', |
michael@0 | 79 | 'Observer.h', |
michael@0 | 80 | 'ReentrantMonitor.h', |
michael@0 | 81 | 'unused.h', |
michael@0 | 82 | ] |
michael@0 | 83 | |
michael@0 | 84 | EXPORTS.mozilla.threads += [ |
michael@0 | 85 | 'nsThreadIDs.h', |
michael@0 | 86 | ] |
michael@0 | 87 | |
michael@0 | 88 | include('objs.mozbuild') |
michael@0 | 89 | |
michael@0 | 90 | UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs |
michael@0 | 91 | UNIFIED_SOURCES += xpcom_glue_src_cppsrcs |
michael@0 | 92 | |
michael@0 | 93 | UNIFIED_SOURCES += [ |
michael@0 | 94 | 'GenericModule.cpp', |
michael@0 | 95 | 'nsStringAPI.cpp', |
michael@0 | 96 | ] |
michael@0 | 97 | |
michael@0 | 98 | LIBRARY_NAME = 'xpcomglue_s' |
michael@0 | 99 | |
michael@0 | 100 | SDK_LIBRARY = [ |
michael@0 | 101 | "%s%s.%s" % (CONFIG['LIB_PREFIX'], 'xpcomglue_s', CONFIG['LIB_SUFFIX']), |
michael@0 | 102 | ] |
michael@0 | 103 | |
michael@0 | 104 | FORCE_STATIC_LIB = True |
michael@0 | 105 | |
michael@0 | 106 | if CONFIG['_MSC_VER']: |
michael@0 | 107 | DEFINES['_USE_ANSI_CPP'] = True |
michael@0 | 108 | |
michael@0 | 109 | if CONFIG['TARGET_XPCOM_ABI']: |
michael@0 | 110 | DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI'] |
michael@0 | 111 | |
michael@0 | 112 | LOCAL_INCLUDES += [ |
michael@0 | 113 | '../build', |
michael@0 | 114 | ] |
michael@0 | 115 | |
michael@0 | 116 | if CONFIG['ENABLE_TESTS']: |
michael@0 | 117 | DIRS += ['tests/gtest'] |