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