1 | # $Id: Makefile.kmk 46043 2013-05-13 19:59:49Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for XPCOM.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2012 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | SUB_DEPTH = ../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | # Make sure our Config.kmk is included.
|
---|
22 | ifndef VBOX_PATH_XPCOM_SRC
|
---|
23 | include $(PATH_SUB_CURRENT)/Config.kmk
|
---|
24 | endif
|
---|
25 |
|
---|
26 | #
|
---|
27 | # Globals
|
---|
28 | #
|
---|
29 |
|
---|
30 | # File for filtering out C symbols from the XPCOM library. Used to avoid
|
---|
31 | # symbol namespace pollution, causing trouble with system libraries.
|
---|
32 | XPCOM_C_NAMESPACE_MAP = $(VBOX_PATH_XPCOM_SRC)/xpcom-namespace-cleanup.map
|
---|
33 | ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
|
---|
34 | VBOX_NM = nm$(HOSTSUFF_EXE)
|
---|
35 | # At the moment, only Solaris uses the generated map file. GNU ld is smart
|
---|
36 | # enough to handle symbol wildcards itself.
|
---|
37 | if1of ($(KBUILD_TARGET), solaris)
|
---|
38 | XPCOM_C_NAMESPACE_MAP = $(PATH_TARGET)/xpcom-namespace-cleanup.map
|
---|
39 | OTHER_CLEAN += $(XPCOM_C_NAMESPACE_MAP)
|
---|
40 | endif
|
---|
41 | endif
|
---|
42 |
|
---|
43 | # @todo check whether VBoxXPCOMIPCC.so or VBoxXPCOMIPCD contain undefined
|
---|
44 | # symbols starting with NS_, PL_, PR_ or XPT. Would move the test time failure
|
---|
45 | # when missing a symbol renaming to a build time failure. Likewise, there
|
---|
46 | # should be a check whether VBoxXPCOM.so contains global C symbols (at least
|
---|
47 | # where the whitelisting of symbols via the map file is not used).
|
---|
48 |
|
---|
49 | #
|
---|
50 | # Header installs.
|
---|
51 | #
|
---|
52 | INSTALLS += \
|
---|
53 | NSPRPUB-HEADERS \
|
---|
54 | NSPRPUB-MD-HEADERS \
|
---|
55 | NSPRPUB-OBS-HEADERS \
|
---|
56 | NSPRPUB-PRIV-HEADERS \
|
---|
57 | STRING-HEADERS \
|
---|
58 | XPCOM-HEADERS \
|
---|
59 | IPCD-HEADERS
|
---|
60 |
|
---|
61 | #
|
---|
62 | # The IDL compiler, typelib linker and xpt files.
|
---|
63 | #
|
---|
64 | BLDPROGS += \
|
---|
65 | xpidl \
|
---|
66 | xpt_link
|
---|
67 |
|
---|
68 | BLDDIRS += \
|
---|
69 | $(PATH_TARGET)/VBox-xpcom-xpt-files/
|
---|
70 |
|
---|
71 | #
|
---|
72 | # We build several libraries so that any linker command line
|
---|
73 | # length restrictions limit will be avoided. (Solaris, Mac?)
|
---|
74 | #
|
---|
75 | ifndef VBOX_ONLY_SDK
|
---|
76 |
|
---|
77 | LIBRARIES += \
|
---|
78 | VBox-xpcom-nspr \
|
---|
79 | VBox-xpcom-typelib \
|
---|
80 | VBox-xpcom-string \
|
---|
81 | VBox-xpcom-base \
|
---|
82 | VBox-xpcom-ds \
|
---|
83 | VBox-xpcom-io \
|
---|
84 | VBox-xpcom-components \
|
---|
85 | VBox-xpcom-threads \
|
---|
86 | VBox-xpcom-xptinfo \
|
---|
87 | VBox-xpcom-xptcall \
|
---|
88 | VBox-xpcom-proxy \
|
---|
89 | VBoxXPCOMGlue_s \
|
---|
90 | VBoxXPCOMGlue \
|
---|
91 | VBox-xpcom-ipcutils \
|
---|
92 | VBox-xpcom-ipcshared \
|
---|
93 | VBox-xpcom-ipcdlock \
|
---|
94 | VBox-xpcom-ipctransmgr \
|
---|
95 | VBox-xpcom-ipctmgrcom
|
---|
96 |
|
---|
97 | DLLS += \
|
---|
98 | VBoxXPCOM \
|
---|
99 | VBoxXPCOMIPCC
|
---|
100 |
|
---|
101 | ifdef VBOX_WITH_TESTCASES
|
---|
102 | PROGRAMS += \
|
---|
103 | tstnsIFileEnumerator \
|
---|
104 | tstnsIFileTest \
|
---|
105 | tstTestArray \
|
---|
106 | tstTestAtoms \
|
---|
107 | tstTestAutoLock \
|
---|
108 | tstTestCallTemplates \
|
---|
109 | tstTestCOMPtr \
|
---|
110 | tstTestCOMPtrEq \
|
---|
111 | tstTestCRT \
|
---|
112 | tstTestFactory \
|
---|
113 | tstTestHashtables \
|
---|
114 | tstTestID \
|
---|
115 | tstTestObserverService \
|
---|
116 | tstTestPipes \
|
---|
117 | tstTestServMgr \
|
---|
118 | tstTestThreads \
|
---|
119 | tstTestXPIDLString \
|
---|
120 | tstTestDeque \
|
---|
121 | tstTestAutoPtr \
|
---|
122 | tstTestMinStringAPI \
|
---|
123 | tstTestStrings \
|
---|
124 | tstPrimitiveTest \
|
---|
125 | tstSimpleTypeLib \
|
---|
126 | tstXptDump \
|
---|
127 | tstXptLink
|
---|
128 | # tstTestPermanentAtoms
|
---|
129 | endif # VBOX_WITH_TESTCASES
|
---|
130 | PROGRAMS += VBoxXPCOMIPCD
|
---|
131 |
|
---|
132 | endif # !VBOX_ONLY_SDK
|
---|
133 |
|
---|
134 |
|
---|
135 |
|
---|
136 |
|
---|
137 | #
|
---|
138 | # SDK headers - lot's of files to install...
|
---|
139 | #
|
---|
140 | # Tip: If you are going to remove files here, you might
|
---|
141 | # wish to do a `kmk uninstall' first to avoid have
|
---|
142 | # obsoleted files in the $(INST_SDK) directory.
|
---|
143 | #
|
---|
144 | NSPRPUB-HEADERS_INST = $(INST_SDK)bindings/xpcom/include/nsprpub/
|
---|
145 | NSPRPUB-HEADERS_IFFLAGS = -m 644
|
---|
146 | NSPRPUB-HEADERS_SOURCES = \
|
---|
147 | nsprpub/pr/include/nspr.h \
|
---|
148 | nsprpub/lib/ds/plarena.h \
|
---|
149 | nsprpub/lib/ds/plarenas.h \
|
---|
150 | nsprpub/lib/libc/include/plbase64.h \
|
---|
151 | nsprpub/lib/libc/include/plerror.h \
|
---|
152 | nsprpub/lib/libc/include/plgetopt.h \
|
---|
153 | nsprpub/lib/ds/plhash.h \
|
---|
154 | nsprpub/lib/libc/include/plresolv.h \
|
---|
155 | nsprpub/lib/libc/include/plstr.h \
|
---|
156 | nsprpub/pr/include/pratom.h \
|
---|
157 | nsprpub/pr/include/prbit.h \
|
---|
158 | nsprpub/pr/include/prclist.h \
|
---|
159 | nsprpub/pr/include/prcmon.h \
|
---|
160 | nsprpub/pr/include/prcountr.h \
|
---|
161 | nsprpub/pr/include/prcvar.h \
|
---|
162 | nsprpub/pr/include/prdtoa.h \
|
---|
163 | nsprpub/pr/include/prenv.h \
|
---|
164 | nsprpub/pr/include/prerr.h \
|
---|
165 | nsprpub/pr/include/prerror.h \
|
---|
166 | nsprpub/pr/include/prinet.h \
|
---|
167 | nsprpub/pr/include/prinit.h \
|
---|
168 | nsprpub/pr/include/prinrval.h \
|
---|
169 | nsprpub/pr/include/prio.h \
|
---|
170 | nsprpub/pr/include/pripcsem.h \
|
---|
171 | nsprpub/pr/include/prlink.h \
|
---|
172 | nsprpub/pr/include/prlock.h \
|
---|
173 | nsprpub/pr/include/prlog.h \
|
---|
174 | nsprpub/pr/include/prlong.h \
|
---|
175 | nsprpub/pr/include/prmem.h \
|
---|
176 | nsprpub/pr/include/prmon.h \
|
---|
177 | nsprpub/pr/include/prmwait.h \
|
---|
178 | nsprpub/pr/include/prnetdb.h \
|
---|
179 | nsprpub/pr/include/prolock.h \
|
---|
180 | nsprpub/pr/include/prpdce.h \
|
---|
181 | nsprpub/pr/include/prprf.h \
|
---|
182 | nsprpub/pr/include/prproces.h \
|
---|
183 | nsprpub/pr/include/prrng.h \
|
---|
184 | nsprpub/pr/include/prrwlock.h \
|
---|
185 | nsprpub/pr/include/prshm.h \
|
---|
186 | nsprpub/pr/include/prshma.h \
|
---|
187 | nsprpub/pr/include/prsystem.h \
|
---|
188 | nsprpub/pr/include/prthread.h \
|
---|
189 | nsprpub/pr/include/prtime.h \
|
---|
190 | nsprpub/pr/include/prtpool.h \
|
---|
191 | nsprpub/pr/include/prtrace.h \
|
---|
192 | nsprpub/pr/include/prtypes.h \
|
---|
193 | nsprpub/pr/include/prvrsion.h \
|
---|
194 | nsprpub/pr/include/prwin16.h \
|
---|
195 | nsprpub/pr/include/md/_vbox.cfg=>prcpucfg.h \
|
---|
196 |
|
---|
197 | NSPRPUB-MD-HEADERS_INST = $(INST_SDK)bindings/xpcom/include/nsprpub/md/
|
---|
198 | NSPRPUB-MD-HEADERS_IFFLAGS = -m 644
|
---|
199 | NSPRPUB-MD-HEADERS_SOURCES = \
|
---|
200 | nsprpub/pr/include/md/_iprt_atomic.h \
|
---|
201 | nsprpub/pr/include/md/_darwin.h \
|
---|
202 | nsprpub/pr/include/md/_freebsd.h \
|
---|
203 | nsprpub/pr/include/md/_linux.h \
|
---|
204 | nsprpub/pr/include/md/_macos.h \
|
---|
205 | nsprpub/pr/include/md/_netbsd.h \
|
---|
206 | nsprpub/pr/include/md/_openbsd.h \
|
---|
207 | nsprpub/pr/include/md/_os2_errors.h \
|
---|
208 | nsprpub/pr/include/md/_os2.h \
|
---|
209 | nsprpub/pr/include/md/_pcos.h \
|
---|
210 | nsprpub/pr/include/md/_solaris.h \
|
---|
211 | nsprpub/pr/include/md/_unix_errors.h \
|
---|
212 | nsprpub/pr/include/md/_unixos.h \
|
---|
213 | nsprpub/pr/include/md/_pth.h \
|
---|
214 | nsprpub/pr/include/md/prosdep.h \
|
---|
215 | \
|
---|
216 | nsprpub/pr/include/md/_freebsd.cfg \
|
---|
217 | nsprpub/pr/include/md/_linux.cfg \
|
---|
218 | nsprpub/pr/include/md/_darwin.cfg \
|
---|
219 | nsprpub/pr/include/md/_netbsd.cfg \
|
---|
220 | nsprpub/pr/include/md/_openbsd.cfg \
|
---|
221 | nsprpub/pr/include/md/_os2.cfg \
|
---|
222 | nsprpub/pr/include/md/_solaris32.cfg \
|
---|
223 | nsprpub/pr/include/md/_solaris64.cfg \
|
---|
224 |
|
---|
225 | NSPRPUB-OBS-HEADERS_INST = $(INST_SDK)bindings/xpcom/include/nsprpub/obsolete/
|
---|
226 | NSPRPUB-OBS-HEADERS_IFFLAGS = -m 644
|
---|
227 | NSPRPUB-OBS-HEADERS_SOURCES = \
|
---|
228 | nsprpub/pr/include/obsolete/pralarm.h \
|
---|
229 | nsprpub/pr/include/obsolete/probslet.h \
|
---|
230 | nsprpub/pr/include/obsolete/protypes.h \
|
---|
231 | nsprpub/pr/include/obsolete/prsem.h
|
---|
232 |
|
---|
233 | NSPRPUB-PRIV-HEADERS_INST = $(INST_SDK)bindings/xpcom/include/nsprpub/private/
|
---|
234 | NSPRPUB-PRIV-HEADERS_IFFLAGS = -m 644
|
---|
235 | NSPRPUB-PRIV-HEADERS_SOURCES = \
|
---|
236 | nsprpub/pr/include/private/pprio.h \
|
---|
237 | nsprpub/pr/include/private/pprthred.h \
|
---|
238 | nsprpub/pr/include/private/prpriv.h
|
---|
239 |
|
---|
240 | STRING-HEADERS_INST = $(INST_SDK)bindings/xpcom/include/string/
|
---|
241 | STRING-HEADERS_IFFLAGS = -m 644
|
---|
242 | STRING-HEADERS_SOURCES = \
|
---|
243 | xpcom/string/public/nsAString.h \
|
---|
244 | xpcom/string/public/nsAlgorithm.h \
|
---|
245 | xpcom/string/public/nsCharTraits.h \
|
---|
246 | xpcom/string/public/nsDependentString.h \
|
---|
247 | xpcom/string/public/nsDependentSubstring.h \
|
---|
248 | xpcom/string/public/nsEmbedString.h \
|
---|
249 | xpcom/string/public/nsLiteralString.h \
|
---|
250 | xpcom/string/public/nsObsoleteAString.h \
|
---|
251 | xpcom/string/public/nsPrintfCString.h \
|
---|
252 | xpcom/string/public/nsPromiseFlatString.h \
|
---|
253 | xpcom/string/public/nsReadableUtils.h \
|
---|
254 | xpcom/string/public/nsString.h \
|
---|
255 | xpcom/string/public/nsStringAPI.h \
|
---|
256 | xpcom/string/public/nsStringFwd.h \
|
---|
257 | xpcom/string/public/nsStringIterator.h \
|
---|
258 | xpcom/string/public/nsSubstring.h \
|
---|
259 | xpcom/string/public/nsSubstringTuple.h \
|
---|
260 | xpcom/string/public/nsTAString.h \
|
---|
261 | xpcom/string/public/nsTDependentString.h \
|
---|
262 | xpcom/string/public/nsTDependentSubstring.h \
|
---|
263 | xpcom/string/public/nsTObsoleteAString.h \
|
---|
264 | xpcom/string/public/nsTPromiseFlatString.h \
|
---|
265 | xpcom/string/public/nsTString.h \
|
---|
266 | xpcom/string/public/nsTSubstring.h \
|
---|
267 | xpcom/string/public/nsTSubstringTuple.h \
|
---|
268 | xpcom/string/public/nsUTF8Utils.h \
|
---|
269 | xpcom/string/public/nsXPIDLString.h \
|
---|
270 | xpcom/string/public/string-template-def-char.h \
|
---|
271 | xpcom/string/public/string-template-def-unichar.h \
|
---|
272 | xpcom/string/public/string-template-undef.h
|
---|
273 |
|
---|
274 | XPCOM-HEADERS_INST = $(INST_SDK)bindings/xpcom/include/xpcom/
|
---|
275 | XPCOM-HEADERS_IFFLAGS = -m 644
|
---|
276 | XPCOM-HEADERS_SOURCES = \
|
---|
277 | xpcom/base/nsAgg.h \
|
---|
278 | xpcom/io/nsAppDirectoryServiceDefs.h \
|
---|
279 | xpcom/ds/nsArray.h \
|
---|
280 | xpcom/ds/nsArrayEnumerator.h \
|
---|
281 | xpcom/ds/nsAtomService.h \
|
---|
282 | xpcom/ds/nsAutoBuffer.h \
|
---|
283 | xpcom/threads/nsAutoLock.h \
|
---|
284 | xpcom/base/nsAutoPtr.h \
|
---|
285 | xpcom/ds/nsBaseHashtable.h \
|
---|
286 | xpcom/ds/nsCOMArray.h \
|
---|
287 | xpcom/ds/nsCRT.h \
|
---|
288 | xpcom/components/nsCategoryManagerUtils.h \
|
---|
289 | xpcom/ds/nsCheapSets.h \
|
---|
290 | xpcom/ds/nsClassHashtable.h \
|
---|
291 | xpcom/base/nsCom.h \
|
---|
292 | xpcom/components/nsComponentManagerObsolete.h \
|
---|
293 | xpcom/components/nsComponentManagerUtils.h \
|
---|
294 | xpcom/ds/nsCppSharedAllocator.h \
|
---|
295 | xpcom/ds/nsDataHashtable.h \
|
---|
296 | xpcom/base/nsDebugImpl.h \
|
---|
297 | xpcom/ds/nsDeque.h \
|
---|
298 | xpcom/io/nsDirectoryService.h \
|
---|
299 | xpcom/io/nsDirectoryServiceDefs.h \
|
---|
300 | xpcom/io/nsDirectoryServiceUtils.h \
|
---|
301 | xpcom/ds/nsDoubleHashtable.h \
|
---|
302 | xpcom/ds/nsEnumeratorUtils.h \
|
---|
303 | xpcom/base/nsError.h \
|
---|
304 | xpcom/io/nsEscape.h \
|
---|
305 | xpcom/threads/nsEventQueueUtils.h \
|
---|
306 | xpcom/io/nsFastLoadPtr.h \
|
---|
307 | xpcom/io/nsFastLoadService.h \
|
---|
308 | xpcom/ds/nsFixedSizeAllocator.h \
|
---|
309 | xpcom/ds/nsHashKeys.h \
|
---|
310 | xpcom/ds/nsHashSets.h \
|
---|
311 | xpcom/ds/nsHashtable.h \
|
---|
312 | xpcom/base/nsIAllocator.h \
|
---|
313 | xpcom/ds/nsIByteBuffer.h \
|
---|
314 | xpcom/base/nsID.h \
|
---|
315 | xpcom/base/nsIID.h \
|
---|
316 | xpcom/components/nsIServiceManagerObsolete.h \
|
---|
317 | xpcom/components/nsIServiceManagerUtils.h \
|
---|
318 | xpcom/base/nsISupportsBase.h \
|
---|
319 | xpcom/base/nsISupportsObsolete.h \
|
---|
320 | xpcom/ds/nsIUnicharBuffer.h \
|
---|
321 | xpcom/io/nsIUnicharInputStream.h \
|
---|
322 | xpcom/ds/nsInt64.h \
|
---|
323 | xpcom/ds/nsInterfaceHashtable.h \
|
---|
324 | xpcom/io/nsLinebreakConverter.h \
|
---|
325 | xpcom/io/nsLocalFile.h \
|
---|
326 | xpcom/io/nsLocalFileUnix.h \
|
---|
327 | xpcom/io/nsLocalFileOS2.h \
|
---|
328 | xpcom/io/nsLocalFileOSX.h \
|
---|
329 | xpcom/components/nsModule.h \
|
---|
330 | xpcom/io/nsMultiplexInputStream.h \
|
---|
331 | xpcom/io/nsNativeCharsetUtils.h \
|
---|
332 | xpcom/components/nsNativeComponentLoader.h \
|
---|
333 | xpcom/ds/nsObserverService.h \
|
---|
334 | xpcom/components/nsObsoleteModuleLoading.h \
|
---|
335 | xpcom/threads/nsProcess.h \
|
---|
336 | xpcom/proxy/public/nsProxiedService.h \
|
---|
337 | xpcom/proxy/public/nsProxyEvent.h \
|
---|
338 | xpcom/proxy/public/nsProxyRelease.h \
|
---|
339 | xpcom/ds/nsQuickSort.h \
|
---|
340 | xpcom/ds/nsRecyclingAllocator.h \
|
---|
341 | xpcom/ds/nsRefPtrHashtable.h \
|
---|
342 | xpcom/io/nsScriptableInputStream.h \
|
---|
343 | xpcom/ds/nsStaticAtom.h \
|
---|
344 | xpcom/components/nsStaticComponent.h \
|
---|
345 | xpcom/ds/nsStaticNameTable.h \
|
---|
346 | xpcom/io/nsStorageStream.h \
|
---|
347 | xpcom/io/nsStreamUtils.h \
|
---|
348 | xpcom/ds/nsStringEnumerator.h \
|
---|
349 | xpcom/io/nsStringIO.h \
|
---|
350 | xpcom/io/nsStringStream.h \
|
---|
351 | xpcom/ds/nsSupportsArray.h \
|
---|
352 | xpcom/ds/nsSupportsPrimitives.h \
|
---|
353 | xpcom/ds/nsTHashtable.h \
|
---|
354 | xpcom/ds/nsTextFormatter.h \
|
---|
355 | xpcom/ds/nsTime.h \
|
---|
356 | xpcom/base/nsTraceRefcntImpl.h \
|
---|
357 | xpcom/ds/nsUnitConversion.h \
|
---|
358 | xpcom/ds/nsValueArray.h \
|
---|
359 | xpcom/ds/nsVariant.h \
|
---|
360 | xpcom/ds/nsVoidArray.h \
|
---|
361 | xpcom/base/nsWeakPtr.h \
|
---|
362 | xpcom/build/nsXPCOM.h \
|
---|
363 | xpcom/build/nsXPCOMCID.h \
|
---|
364 | xpcom/base/nscore.h \
|
---|
365 | xpcom/ds/pldhash.h \
|
---|
366 | xpcom/threads/plevent.h \
|
---|
367 | xpcom/components/xcDll.h \
|
---|
368 | xpcom/typelib/xpt/public/xpt_arena.h \
|
---|
369 | xpcom/typelib/xpt/public/xpt_struct.h \
|
---|
370 | xpcom/typelib/xpt/public/xpt_xdr.h \
|
---|
371 | xpcom/reflect/xptcall/public/xptcall.h \
|
---|
372 | xpcom/reflect/xptcall/public/xptcstubsdecl.inc \
|
---|
373 | xpcom/reflect/xptcall/public/xptcstubsdef.inc \
|
---|
374 | xpcom/reflect/xptinfo/public/xptinfo.h \
|
---|
375 | \
|
---|
376 | xpcom/glue/nsIInterfaceRequestorUtils.h \
|
---|
377 | xpcom/glue/nsISupportsImpl.h \
|
---|
378 | xpcom/glue/nsISupportsUtils.h \
|
---|
379 | xpcom/glue/nsIWeakReferenceUtils.h \
|
---|
380 | \
|
---|
381 | xpcom/glue/nsCOMPtr.h \
|
---|
382 | xpcom/glue/nsDebug.h \
|
---|
383 | xpcom/glue/nsGenericFactory.h \
|
---|
384 | xpcom/glue/nsIGenericFactory.h \
|
---|
385 | xpcom/glue/nsMemory.h \
|
---|
386 | xpcom/glue/nsTraceRefcnt.h \
|
---|
387 | xpcom/glue/nsWeakReference.h \
|
---|
388 | \
|
---|
389 | xpcom/glue/standalone/nsXPCOMGlue.h \
|
---|
390 | \
|
---|
391 | xpcom-config.h
|
---|
392 |
|
---|
393 | IPCD-HEADERS_INST = $(INST_SDK)bindings/xpcom/include/ipcd/
|
---|
394 | IPCD-HEADERS_IFFLAGS = -m 644
|
---|
395 | IPCD-HEADERS_SOURCES = \
|
---|
396 | ipc/ipcd/client/public/ipcCID.h \
|
---|
397 | ipc/ipcd/extensions/lock/public/ipcLockCID.h \
|
---|
398 | ipc/ipcd/util/public/ipcMessageReader.h \
|
---|
399 | ipc/ipcd/util/public/ipcMessageWriter.h \
|
---|
400 | ipc/ipcd/daemon/public/ipcModule.h \
|
---|
401 | ipc/ipcd/daemon/public/ipcModuleUtil.h \
|
---|
402 | ipc/ipcd/client/public/ipcdclient.h
|
---|
403 |
|
---|
404 |
|
---|
405 | #
|
---|
406 | # The IDL compiler.
|
---|
407 | #
|
---|
408 | # We build it statically because we cannot rely on additional .a files
|
---|
409 | # like in the original build
|
---|
410 | #
|
---|
411 | xpidl_TEMPLATE = XPCOMBLDPROG
|
---|
412 | xpidl_DEFS = EXPORT_XPT_API
|
---|
413 | ## @todo This assumes HOST == TARGET.
|
---|
414 | xpidl_INST = $(INST_BIN)
|
---|
415 | ## Obsolete hack: MacPorts is 32-bit on 10.5 and 64-bit on 10.6. Set your KBUILD_HOST_ARCH env.vars. accordingly.
|
---|
416 | #if "$(KBUILD_HOST).$(KBUILD_HOST_ARCH)" == "darwin.amd64" && defined(VBOX_MACOS_10_5_WORKAROUND)
|
---|
417 | # xpidl_BLD_TRG_ARCH = x86
|
---|
418 | # ## @todo kBuild ticket 84 workarounds:
|
---|
419 | # xpidl_DEFS.x86 = $(TEMPLATE_XPCOMBLDPROG_DEFS.x86)
|
---|
420 | # xpidl_CFLAGS.x86 = $(TEMPLATE_XPCOMBLDPROG_CFLAGS.x86)
|
---|
421 | # xpidl_CXXFLAGS.x86 = $(TEMPLATE_XPCOMBLDPROG_CXXFLAGS.x86)
|
---|
422 | # xpidl_LDFLAGS.x86 = $(TEMPLATE_XPCOMBLDPROG_LDFLAGS.x86)
|
---|
423 | #endif
|
---|
424 | ifdef VBOX_WITH_JAVA_SUPPORT_IN_XPIDL
|
---|
425 | xpidl_DEFS += VBOX_XPIDL_EMULATE_GENJIFACES VBOX_XPIDL_EMULATE_GENJIFACES_DIFF
|
---|
426 | endif
|
---|
427 | xpidl_SOURCES = \
|
---|
428 | xpcom/typelib/xpidl/xpidl.c \
|
---|
429 | xpcom/typelib/xpidl/xpidl_idl.c \
|
---|
430 | xpcom/typelib/xpidl/xpidl_util.c \
|
---|
431 | xpcom/typelib/xpidl/xpidl_header.c \
|
---|
432 | xpcom/typelib/xpidl/xpidl_typelib.c \
|
---|
433 | xpcom/typelib/xpidl/xpidl_doc.c \
|
---|
434 | xpcom/typelib/xpidl/xpidl_java.c \
|
---|
435 | xpcom/typelib/xpt/src/xpt_arena.c \
|
---|
436 | xpcom/typelib/xpt/src/xpt_struct.c \
|
---|
437 | xpcom/typelib/xpt/src/xpt_xdr.c
|
---|
438 |
|
---|
439 | ifeq ($(KBUILD_TARGET),os2)
|
---|
440 | # glib and libIDL needed by XPCOM on OS/2.
|
---|
441 | ifeq ($(VBOX_PATH_GLIB),)
|
---|
442 | VBOX_PATH_GLIB := $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/glibidl/*/glibidl/gcc335)))
|
---|
443 | endif
|
---|
444 | VBOX_PATH_LIBIDL ?= $(VBOX_PATH_GLIB)
|
---|
445 | ifeq ($(wildcard $(VBOX_PATH_GLIB)),)
|
---|
446 | $(warning VBOX_PATH_GLIB is "$(VBOX_PATH_GLIB)" which is not a valid directory!)
|
---|
447 | endif
|
---|
448 | ifeq ($(wildcard $(VBOX_PATH_LIBIDL)),)
|
---|
449 | $(warning VBOX_PATH_LIBIDL is "$(VBOX_PATH_LIBIDL)" which is not a valid directory!)
|
---|
450 | endif
|
---|
451 | xpidl_INCS = \
|
---|
452 | $(VBOX_PATH_LIBIDL)/include \
|
---|
453 | $(VBOX_PATH_GLIB)/include
|
---|
454 | xpidl_LIBS = \
|
---|
455 | $(VBOX_PATH_LIBIDL)/lib/libidl.lib \
|
---|
456 | $(VBOX_PATH_LIBIDL)/lib/glib.lib
|
---|
457 | # install necessary DLLs to the same place where xpidl goes
|
---|
458 | INSTALLS += xpidl-DLLS
|
---|
459 | xpidl_ORDERDEPS = $(xpidl-DLLS_1_TARGET)
|
---|
460 | xpidl-DLLS_INST = $(xpidl_INST)
|
---|
461 | # static libraries of these may be provided instead,
|
---|
462 | # so copy DLLs only when they are present
|
---|
463 | xpidl-DLLS_SOURCES += $(wildcard $(VBOX_PATH_GLIB)/lib/glib.dll)
|
---|
464 | xpidl-DLLS_SOURCES += $(wildcard $(VBOX_PATH_LIBIDL)/lib/libIDL.dll)
|
---|
465 | else
|
---|
466 | # We do these ONCE.
|
---|
467 | libIDL_config_cflags := $(shell $(VBOX_LIBIDL_CONFIG) --cflags)
|
---|
468 | libIDL_config_libs := $(shell $(VBOX_LIBIDL_CONFIG) --libs)
|
---|
469 | xpidl_CFLAGS = \
|
---|
470 | $(libIDL_config_cflags)
|
---|
471 | ifeq ($(BUILD_PLATFORM),linux)
|
---|
472 | xpidl_LDFLAGS = \
|
---|
473 | $(filter-out -l%,$(libIDL_config_libs))
|
---|
474 | else
|
---|
475 | xpidl_LDFLAGS = \
|
---|
476 | $(libIDL_config_libs)
|
---|
477 | endif
|
---|
478 | xpidl_LDFLAGS.linux = \
|
---|
479 | $(VBOX_LD_as_needed)
|
---|
480 | xpidl_LIBS.linux += \
|
---|
481 | $(subst -l,,$(filter -l%,$(libIDL_config_libs)))
|
---|
482 | endif
|
---|
483 |
|
---|
484 | #
|
---|
485 | # The XPT linker.
|
---|
486 | #
|
---|
487 | xpt_link_TEMPLATE = XPCOMBLDPROG
|
---|
488 | xpt_link_SOURCES = \
|
---|
489 | xpcom/typelib/xpt/tools/xpt_link.c \
|
---|
490 | xpcom/typelib/xpt/src/xpt_arena.c \
|
---|
491 | xpcom/typelib/xpt/src/xpt_struct.c \
|
---|
492 | xpcom/typelib/xpt/src/xpt_xdr.c
|
---|
493 |
|
---|
494 |
|
---|
495 | #
|
---|
496 | # The NSPR Library.
|
---|
497 | #
|
---|
498 | VBox-xpcom-nspr_TEMPLATE = XPCOM
|
---|
499 | VBox-xpcom-nspr_INSTTYPE = none
|
---|
500 | VBox-xpcom-nspr_DEFS = \
|
---|
501 | _NSPR_BUILD_ \
|
---|
502 | HAVE_LCHOWN=1 \
|
---|
503 | HAVE_STRERROR=1 \
|
---|
504 | FORCE_PR_LOG
|
---|
505 | VBox-xpcom-nspr_DEFS += \
|
---|
506 | VBOX_USE_IPRT_IN_NSPR
|
---|
507 | VBox-xpcom-nspr_DEFS.darwin.amd64 = \
|
---|
508 | VBOX_USE_MORE_IPRT_IN_NSPR
|
---|
509 | VBox-xpcom-nspr_DEFS.darwin = \
|
---|
510 | HAVE_BSD_FLOCK=1 \
|
---|
511 | _PR_PTHREADS
|
---|
512 | VBox-xpcom-nspr_DEFS.freebsd = \
|
---|
513 | FREEBSD=1 \
|
---|
514 | HAVE_CVAR_BUILT_ON_SEM \
|
---|
515 | _PR_PTHREADS
|
---|
516 | ## @todo filling in the missing stuff, please don't just copy it from linux.
|
---|
517 | # FIXME: LINUX should be defined by _linux.cfg
|
---|
518 | VBox-xpcom-nspr_DEFS.linux = \
|
---|
519 | LINUX=1 \
|
---|
520 | _POSIX_SOURCE=1 \
|
---|
521 | _BSD_SOURCE=1 \
|
---|
522 | _SVID_SOURCE=1 \
|
---|
523 | _REENTRANT=1 \
|
---|
524 | _LARGEFILE64_SOURCE=1 \
|
---|
525 | HAVE_FCNTL_FILE_LOCKING=1 \
|
---|
526 | HAVE_CVAR_BUILT_ON_SEM \
|
---|
527 | _PR_PTHREADS
|
---|
528 | # _BSD_SOURCE is here to keep the Glibc header files happy and make them include the right things
|
---|
529 | VBox-xpcom-nspr_DEFS.netbsd = \
|
---|
530 | _PR_PTHREADS
|
---|
531 | VBox-xpcom-nspr_DEFS.openbsd = \
|
---|
532 | _PR_PTHREADS
|
---|
533 | VBox-xpcom-nspr_DEFS.os2 =
|
---|
534 | VBox-xpcom-nspr_DEFS.solaris = \
|
---|
535 | HAVE_FCNTL_FILE_LOCKING=1 \
|
---|
536 | _PR_PTHREADS
|
---|
537 | VBox-xpcom-nspr_INCS = \
|
---|
538 | nsprpub/pr/include/private \
|
---|
539 | $(VBox-xpcom-nspr_0_OUTDIR)
|
---|
540 |
|
---|
541 | VBox-xpcom-nspr_SOURCES = \
|
---|
542 | nsprpub/pr/src/io/prfdcach.c \
|
---|
543 | nsprpub/pr/src/io/prmwait.c \
|
---|
544 | nsprpub/pr/src/io/priometh.c \
|
---|
545 | nsprpub/pr/src/io/pripv6.c \
|
---|
546 | nsprpub/pr/src/io/prmapopt.c \
|
---|
547 | nsprpub/pr/src/io/prlayer.c \
|
---|
548 | nsprpub/pr/src/io/prlog.c \
|
---|
549 | nsprpub/pr/src/io/prmmap.c \
|
---|
550 | nsprpub/pr/src/io/prpolevt.c \
|
---|
551 | nsprpub/pr/src/io/prprf.c \
|
---|
552 | nsprpub/pr/src/io/prscanf.c \
|
---|
553 | nsprpub/pr/src/io/prstdio.c \
|
---|
554 | nsprpub/pr/src/linking/prlink.c \
|
---|
555 | nsprpub/pr/src/malloc/prmalloc.c \
|
---|
556 | nsprpub/pr/src/malloc/prmem.c \
|
---|
557 | nsprpub/pr/src/md/prosdep.c \
|
---|
558 | nsprpub/pr/src/memory/prseg.c \
|
---|
559 | nsprpub/pr/src/memory/prshm.c \
|
---|
560 | nsprpub/pr/src/memory/prshma.c \
|
---|
561 | nsprpub/pr/src/misc/pralarm.c \
|
---|
562 | nsprpub/pr/src/misc/pratom.c \
|
---|
563 | nsprpub/pr/src/misc/prcountr.c \
|
---|
564 | nsprpub/pr/src/misc/prdtoa.c \
|
---|
565 | nsprpub/pr/src/misc/prenv.c \
|
---|
566 | nsprpub/pr/src/misc/prerr.c \
|
---|
567 | nsprpub/pr/src/misc/prerror.c \
|
---|
568 | nsprpub/pr/src/misc/prerrortable.c \
|
---|
569 | nsprpub/pr/src/misc/prinit.c \
|
---|
570 | nsprpub/pr/src/misc/prinrval.c \
|
---|
571 | nsprpub/pr/src/misc/pripc.c \
|
---|
572 | nsprpub/pr/src/misc/prlog2.c \
|
---|
573 | nsprpub/pr/src/misc/prlong.c \
|
---|
574 | nsprpub/pr/src/misc/prnetdb.c \
|
---|
575 | nsprpub/pr/src/misc/prolock.c \
|
---|
576 | nsprpub/pr/src/misc/prrng.c \
|
---|
577 | nsprpub/pr/src/misc/prsystem.c \
|
---|
578 | nsprpub/pr/src/misc/prtime.c \
|
---|
579 | nsprpub/pr/src/misc/prthinfo.c \
|
---|
580 | nsprpub/pr/src/misc/prtpool.c \
|
---|
581 | nsprpub/pr/src/misc/prtrace.c \
|
---|
582 | nsprpub/pr/src/threads/prcmon.c \
|
---|
583 | nsprpub/pr/src/threads/prrwlock.c \
|
---|
584 | nsprpub/pr/src/threads/prtpd.c \
|
---|
585 | nsprpub/pr/src/prvrsion.c \
|
---|
586 | nsprpub/lib/ds/plarena.c \
|
---|
587 | nsprpub/lib/ds/plhash.c \
|
---|
588 | nsprpub/lib/libc/src/strlen.c \
|
---|
589 | nsprpub/lib/libc/src/strcpy.c \
|
---|
590 | nsprpub/lib/libc/src/strdup.c \
|
---|
591 | nsprpub/lib/libc/src/strcat.c \
|
---|
592 | nsprpub/lib/libc/src/strcmp.c \
|
---|
593 | nsprpub/lib/libc/src/strccmp.c \
|
---|
594 | nsprpub/lib/libc/src/strchr.c \
|
---|
595 | nsprpub/lib/libc/src/strpbrk.c \
|
---|
596 | nsprpub/lib/libc/src/strstr.c \
|
---|
597 | nsprpub/lib/libc/src/strcstr.c \
|
---|
598 | nsprpub/lib/libc/src/strtok.c \
|
---|
599 | nsprpub/lib/libc/src/base64.c \
|
---|
600 | nsprpub/lib/libc/src/plerror.c \
|
---|
601 | nsprpub/lib/libc/src/plgetopt.c
|
---|
602 |
|
---|
603 | ifeq ($(filter-out darwin freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # unixish
|
---|
604 | VBox-xpcom-nspr_SOURCES += \
|
---|
605 | nsprpub/pr/src/md/unix/unix.c \
|
---|
606 | nsprpub/pr/src/md/unix/unix_errors.c \
|
---|
607 | nsprpub/pr/src/md/unix/uxproces.c \
|
---|
608 | nsprpub/pr/src/md/unix/uxrng.c \
|
---|
609 | nsprpub/pr/src/md/unix/uxshm.c \
|
---|
610 | nsprpub/pr/src/md/unix/uxwrap.c \
|
---|
611 | nsprpub/pr/src/pthreads/ptio.c \
|
---|
612 | nsprpub/pr/src/pthreads/ptsynch.c \
|
---|
613 | nsprpub/pr/src/pthreads/ptthread.c \
|
---|
614 | nsprpub/pr/src/pthreads/ptmisc.c
|
---|
615 | endif
|
---|
616 |
|
---|
617 | VBox-xpcom-nspr_SOURCES.darwin = nsprpub/pr/src/md/unix/darwin.c
|
---|
618 | VBox-xpcom-nspr_SOURCES.darwin.x86 = nsprpub/pr/src/md/unix/os_Darwin_x86.s
|
---|
619 |
|
---|
620 | VBox-xpcom-nspr_SOURCES.freebsd = nsprpub/pr/src/md/unix/freebsd.c
|
---|
621 |
|
---|
622 | VBox-xpcom-nspr_SOURCES.linux = nsprpub/pr/src/md/unix/linux.c
|
---|
623 | VBox-xpcom-nspr_SOURCES.linux.x86 = nsprpub/pr/src/md/unix/os_Linux_x86.s
|
---|
624 | VBox-xpcom-nspr_SOURCES.linux.amd64 = nsprpub/pr/src/md/unix/os_Linux_x86_64.s
|
---|
625 |
|
---|
626 | VBox-xpcom-nspr_SOURCES.os2 = \
|
---|
627 | nsprpub/pr/src/io/prdir.c \
|
---|
628 | nsprpub/pr/src/io/prfile.c \
|
---|
629 | nsprpub/pr/src/io/prio.c \
|
---|
630 | nsprpub/pr/src/io/prsocket.c \
|
---|
631 | nsprpub/pr/src/md/os2/os2misc.c \
|
---|
632 | nsprpub/pr/src/md/os2/os2sem.c \
|
---|
633 | nsprpub/pr/src/md/os2/os2inrval.c \
|
---|
634 | nsprpub/pr/src/md/os2/os2gc.c \
|
---|
635 | nsprpub/pr/src/md/os2/os2thred.c \
|
---|
636 | nsprpub/pr/src/md/os2/os2io.c \
|
---|
637 | nsprpub/pr/src/md/os2/os2cv.c \
|
---|
638 | nsprpub/pr/src/md/os2/os2sock.c \
|
---|
639 | nsprpub/pr/src/md/os2/os2_errors.c \
|
---|
640 | nsprpub/pr/src/md/os2/os2poll.c \
|
---|
641 | nsprpub/pr/src/md/os2/os2rng.c \
|
---|
642 | nsprpub/pr/src/threads/prdump.c \
|
---|
643 | nsprpub/pr/src/threads/prmon.c \
|
---|
644 | nsprpub/pr/src/threads/prsem.c \
|
---|
645 | nsprpub/pr/src/threads/prcthr.c \
|
---|
646 | nsprpub/pr/src/threads/combined/prucpu.c \
|
---|
647 | nsprpub/pr/src/threads/combined/prucv.c \
|
---|
648 | nsprpub/pr/src/threads/combined/prulock.c \
|
---|
649 | nsprpub/pr/src/threads/combined/prustack.c \
|
---|
650 | nsprpub/pr/src/threads/combined/pruthr.c
|
---|
651 | # gcc/emx sources
|
---|
652 | VBox-xpcom-nspr_SOURCES.os2 += \
|
---|
653 | nsprpub/pr/src/md/os2/os2emx.s \
|
---|
654 | nsprpub/pr/src/md/os2/os2vaclegacy.s
|
---|
655 | # IBM VAC sources (not used)
|
---|
656 | #VBox-xpcom-nspr_SOURCES.os2 += \
|
---|
657 | # nsprpub/pr/src/md/os2/os2vacpp.asm
|
---|
658 |
|
---|
659 | VBox-xpcom-nspr_SOURCES.solaris = nsprpub/pr/src/md/unix/solaris.c
|
---|
660 | VBox-xpcom-nspr_SOURCES.solaris.x86 = nsprpub/pr/src/md/unix/os_SunOS_x86.s
|
---|
661 | VBox-xpcom-nspr_SOURCES.solaris.amd64 = nsprpub/pr/src/md/unix/os_SunOS_x86_64.s
|
---|
662 |
|
---|
663 | # generate build stamps
|
---|
664 | nsprpub/pr/src/prvrsion.c_DEPS = $(VBox-xpcom-nspr_0_OUTDIR)/_pr_bld.h
|
---|
665 | nsprpub/lib/ds/plvrsion.c_DEPS = $(VBox-xpcom-nspr_0_OUTDIR)/_pl_bld.h
|
---|
666 | VBox-xpcom-nspr_CLEAN += \
|
---|
667 | $(VBox-xpcom-nspr_0_OUTDIR)/_pr_bld.h \
|
---|
668 | $(VBox-xpcom-nspr_0_OUTDIR)/_pl_bld.h
|
---|
669 |
|
---|
670 | $$(VBox-xpcom-nspr_0_OUTDIR)/_pr_bld.h: | $$(VBox-xpcom-nspr_0_OUTDIR)/
|
---|
671 | $(call MSG_GENERATE,,$@)
|
---|
672 | $(QUIET)$(APPEND) -t $@ '#define _BUILD_STRING "$(date +%Y-%m-%d %T)"'
|
---|
673 |
|
---|
674 | $$(VBox-xpcom-nspr_0_OUTDIR)/_pl_bld.h: | $$(VBox-xpcom-nspr_0_OUTDIR)/
|
---|
675 | $(call MSG_GENERATE,,$@)
|
---|
676 | $(QUIET)$(APPEND) -t $@ '#define _BUILD_STRING "$(date +%Y-%m-%d %T)"'
|
---|
677 |
|
---|
678 |
|
---|
679 | VBox-xpcom-typelib_TEMPLATE = XPCOM
|
---|
680 | VBox-xpcom-typelib_INSTTYPE = none
|
---|
681 | VBox-xpcom-typelib_SOURCES = \
|
---|
682 | xpcom/typelib/xpt/src/xpt_arena.c \
|
---|
683 | xpcom/typelib/xpt/src/xpt_struct.c \
|
---|
684 | xpcom/typelib/xpt/src/xpt_xdr.c
|
---|
685 |
|
---|
686 | VBox-xpcom-string_TEMPLATE = XPCOM
|
---|
687 | VBox-xpcom-string_INSTTYPE = none
|
---|
688 | VBox-xpcom-string_SOURCES = \
|
---|
689 | xpcom/string/src/nsAString.cpp \
|
---|
690 | xpcom/string/src/nsDependentSubstring.cpp \
|
---|
691 | xpcom/string/src/nsObsoleteAStringThunk.cpp \
|
---|
692 | xpcom/string/src/nsPrintfCString.cpp \
|
---|
693 | xpcom/string/src/nsPromiseFlatString.cpp \
|
---|
694 | xpcom/string/src/nsReadableUtils.cpp \
|
---|
695 | xpcom/string/src/nsSubstring.cpp \
|
---|
696 | xpcom/string/src/nsSubstringTuple.cpp \
|
---|
697 | xpcom/string/src/nsString.cpp \
|
---|
698 | xpcom/string/src/nsStringComparator.cpp \
|
---|
699 | xpcom/string/src/nsStringObsolete.cpp
|
---|
700 |
|
---|
701 | VBox-xpcom-base_TEMPLATE = XPCOM
|
---|
702 | VBox-xpcom-base_INSTTYPE = none
|
---|
703 | VBox-xpcom-base_DEFS = _IMPL_NS_COM
|
---|
704 | VBox-xpcom-base_SOURCES = \
|
---|
705 | xpcom/base/nsAllocator.cpp \
|
---|
706 | xpcom/base/nsConsoleMessage.cpp \
|
---|
707 | xpcom/base/nsConsoleService.cpp \
|
---|
708 | xpcom/base/nsDebugImpl.cpp \
|
---|
709 | xpcom/base/nsErrorService.cpp \
|
---|
710 | xpcom/base/nsExceptionService.cpp \
|
---|
711 | xpcom/base/nsID.cpp \
|
---|
712 | xpcom/base/nsMemoryImpl.cpp \
|
---|
713 | xpcom/base/nsTraceRefcntImpl.cpp \
|
---|
714 | xpcom/base/nsStackFrameUnix.cpp
|
---|
715 |
|
---|
716 | VBox-xpcom-ds_TEMPLATE = XPCOM
|
---|
717 | VBox-xpcom-ds_INSTTYPE = none
|
---|
718 | VBox-xpcom-ds_DEFS = _IMPL_NS_COM
|
---|
719 | VBox-xpcom-ds_SOURCES = \
|
---|
720 | xpcom/ds/pldhash.c \
|
---|
721 | xpcom/ds/nsAtomTable.cpp \
|
---|
722 | xpcom/ds/nsAtomService.cpp \
|
---|
723 | xpcom/ds/nsByteBuffer.cpp \
|
---|
724 | xpcom/ds/nsCheapSets.cpp \
|
---|
725 | xpcom/ds/nsCRT.cpp \
|
---|
726 | xpcom/ds/nsDeque.cpp \
|
---|
727 | xpcom/ds/nsEmptyEnumerator.cpp \
|
---|
728 | xpcom/ds/nsEnumeratorUtils.cpp \
|
---|
729 | xpcom/ds/nsFixedSizeAllocator.cpp \
|
---|
730 | xpcom/ds/nsHashSets.cpp \
|
---|
731 | xpcom/ds/nsHashtable.cpp \
|
---|
732 | xpcom/ds/nsObserverList.cpp \
|
---|
733 | xpcom/ds/nsObserverService.cpp \
|
---|
734 | xpcom/ds/nsProperties.cpp \
|
---|
735 | xpcom/ds/nsPersistentProperties.cpp \
|
---|
736 | xpcom/ds/nsQuickSort.cpp \
|
---|
737 | xpcom/ds/nsRecyclingAllocator.cpp \
|
---|
738 | xpcom/ds/nsStaticNameTable.cpp \
|
---|
739 | xpcom/ds/nsStringEnumerator.cpp \
|
---|
740 | xpcom/ds/nsSupportsArray.cpp \
|
---|
741 | xpcom/ds/nsSupportsArrayEnumerator.cpp \
|
---|
742 | xpcom/ds/nsSupportsPrimitives.cpp \
|
---|
743 | xpcom/ds/nsTHashtable.cpp \
|
---|
744 | xpcom/ds/nsUnicharBuffer.cpp \
|
---|
745 | xpcom/ds/nsVariant.cpp \
|
---|
746 | xpcom/ds/nsVoidArray.cpp \
|
---|
747 | xpcom/ds/nsTextFormatter.cpp \
|
---|
748 | xpcom/ds/nsTimelineService.cpp \
|
---|
749 | xpcom/ds/nsValueArray.cpp \
|
---|
750 | xpcom/ds/nsCOMArray.cpp \
|
---|
751 | xpcom/ds/nsArray.cpp \
|
---|
752 | xpcom/ds/nsArrayEnumerator.cpp
|
---|
753 | # xpcom/ds/nsHashPropertyBag.cpp
|
---|
754 |
|
---|
755 | # @todo what about MOZ_USER_DIR?
|
---|
756 | VBox-xpcom-io_TEMPLATE = XPCOM
|
---|
757 | VBox-xpcom-io_INSTTYPE = none
|
---|
758 | VBox-xpcom-io_DEFS = _IMPL_NS_COM MOZ_USER_DIR=\".mozilla\"
|
---|
759 | VBox-xpcom-io_INCS.darwin = \
|
---|
760 | xpcom/MoreFiles
|
---|
761 | VBox-xpcom-io_SOURCES = \
|
---|
762 | xpcom/io/nsAppFileLocationProvider.cpp \
|
---|
763 | xpcom/io/nsBinaryStream.cpp \
|
---|
764 | xpcom/io/nsByteArrayInputStream.cpp \
|
---|
765 | xpcom/io/nsDirectoryService.cpp \
|
---|
766 | xpcom/io/nsEscape.cpp \
|
---|
767 | xpcom/io/nsFastLoadFile.cpp \
|
---|
768 | xpcom/io/nsFastLoadService.cpp \
|
---|
769 | xpcom/io/nsInputStreamTee.cpp \
|
---|
770 | xpcom/io/nsLinebreakConverter.cpp \
|
---|
771 | xpcom/io/nsLocalFileCommon.cpp \
|
---|
772 | xpcom/io/nsMultiplexInputStream.cpp \
|
---|
773 | xpcom/io/nsPipe3.cpp \
|
---|
774 | xpcom/io/nsStreamUtils.cpp \
|
---|
775 | xpcom/io/nsScriptableInputStream.cpp \
|
---|
776 | xpcom/io/nsSegmentedBuffer.cpp \
|
---|
777 | xpcom/io/SpecialSystemDirectory.cpp \
|
---|
778 | xpcom/io/nsStorageStream.cpp \
|
---|
779 | xpcom/io/nsStringStream.cpp \
|
---|
780 | xpcom/io/nsUnicharInputStream.cpp \
|
---|
781 | xpcom/io/nsNativeCharsetUtils.cpp
|
---|
782 | VBox-xpcom-io_SOURCES.darwin.x86 = \
|
---|
783 | xpcom/io/nsLocalFileOSX.cpp \
|
---|
784 | xpcom/MoreFiles/FSCopyObject.c \
|
---|
785 | xpcom/MoreFiles/MoreFilesX.c
|
---|
786 | if1of ($(KBUILD_TARGET) $(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), freebsd linux netbsd openbsd solaris darwin.amd64)
|
---|
787 | VBox-xpcom-io_SOURCES += \
|
---|
788 | xpcom/io/nsLocalFileUnix.cpp
|
---|
789 | endif
|
---|
790 | VBox-xpcom-io_SOURCES.os2 = \
|
---|
791 | xpcom/io/nsLocalFileOS2.cpp
|
---|
792 |
|
---|
793 | VBox-xpcom-components_TEMPLATE = XPCOM
|
---|
794 | VBox-xpcom-components_INSTTYPE = none
|
---|
795 | VBox-xpcom-components_DEFS = _IMPL_NS_COM EXPORT_XPTI_API
|
---|
796 | VBox-xpcom-components_SOURCES = \
|
---|
797 | xpcom/components/nsCategoryManager.cpp \
|
---|
798 | xpcom/components/nsComponentManager.cpp \
|
---|
799 | xpcom/components/nsComponentManagerObsolete.cpp \
|
---|
800 | xpcom/components/nsNativeComponentLoader.cpp \
|
---|
801 | xpcom/components/nsServiceManagerObsolete.cpp \
|
---|
802 | xpcom/components/xcDll.cpp \
|
---|
803 | xpcom/components/nsStaticComponentLoader.cpp
|
---|
804 |
|
---|
805 | VBox-xpcom-threads_TEMPLATE = XPCOM
|
---|
806 | VBox-xpcom-threads_INSTTYPE = none
|
---|
807 | VBox-xpcom-threads_DEFS = _IMPL_NS_COM
|
---|
808 | VBox-xpcom-threads_SOURCES = \
|
---|
809 | xpcom/threads/plevent.c \
|
---|
810 | xpcom/threads/nsAutoLock.cpp \
|
---|
811 | xpcom/threads/nsEnvironment.cpp \
|
---|
812 | xpcom/threads/nsEventQueue.cpp \
|
---|
813 | xpcom/threads/nsEventQueueService.cpp \
|
---|
814 | xpcom/threads/nsThread.cpp \
|
---|
815 | xpcom/threads/nsTimerImpl.cpp \
|
---|
816 | xpcom/threads/nsProcessCommon.cpp \
|
---|
817 | xpcom/threads/TimerThread.cpp
|
---|
818 |
|
---|
819 | VBox-xpcom-xptinfo_TEMPLATE = XPCOM
|
---|
820 | VBox-xpcom-xptinfo_INSTTYPE = none
|
---|
821 | VBox-xpcom-xptinfo_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTI_API EXPORT_XPT_API
|
---|
822 | VBox-xpcom-xptinfo_SOURCES = \
|
---|
823 | xpcom/reflect/xptinfo/src/xptiFile.cpp \
|
---|
824 | xpcom/reflect/xptinfo/src/xptiInterfaceInfo.cpp \
|
---|
825 | xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp \
|
---|
826 | xpcom/reflect/xptinfo/src/xptiManifest.cpp \
|
---|
827 | xpcom/reflect/xptinfo/src/xptiMisc.cpp \
|
---|
828 | xpcom/reflect/xptinfo/src/xptiTypelibGuts.cpp \
|
---|
829 | xpcom/reflect/xptinfo/src/xptiWorkingSet.cpp \
|
---|
830 | xpcom/reflect/xptinfo/src/xptiZipItem.cpp \
|
---|
831 | xpcom/reflect/xptinfo/src/xptiZipLoader.cpp
|
---|
832 |
|
---|
833 |
|
---|
834 | VBox-xpcom-xptcall_TEMPLATE = XPCOM
|
---|
835 | VBox-xpcom-xptcall_INSTTYPE = none
|
---|
836 | VBox-xpcom-xptcall_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTC_API
|
---|
837 | VBox-xpcom-xptcall_DEFS.darwin = KEEP_STACK_16_BYTE_ALIGNED
|
---|
838 | VBox-xpcom-xptcall_DEFS.os2 = MOZ_NEED_LEADING_UNDERSCORE
|
---|
839 | VBox-xpcom-xptcall_INCS.os2 = xpcom/reflect/xptcall/src/md/unix
|
---|
840 | VBox-xpcom-xptcall_SOURCES = xpcom/reflect/xptcall/src/xptcall.cpp
|
---|
841 | VBox-xpcom-xptcall_SOURCES.darwin.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_unixish_x86.cpp \
|
---|
842 | xpcom/reflect/xptcall/src/md/unix/xptcstubs_unixish_x86.cpp
|
---|
843 | VBox-xpcom-xptcall_SOURCES.darwin.amd64= xpcom/reflect/xptcall/src/md/unix/xptcinvoke_amd64_darwin.cpp \
|
---|
844 | xpcom/reflect/xptcall/src/md/unix/xptcstubs_amd64_darwin.cpp
|
---|
845 | VBox-xpcom-xptcall_SOURCES.freebsd.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_gcc_x86_unix.cpp \
|
---|
846 | xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp
|
---|
847 | VBox-xpcom-xptcall_SOURCES.freebsd.amd64=xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_linux.cpp \
|
---|
848 | xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp
|
---|
849 | VBox-xpcom-xptcall_SOURCES.linux.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_gcc_x86_unix.cpp \
|
---|
850 | xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp
|
---|
851 | VBox-xpcom-xptcall_SOURCES.linux.amd64 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_linux.cpp \
|
---|
852 | xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp
|
---|
853 | VBox-xpcom-xptcall_SOURCES.os2 = xpcom/reflect/xptcall/src/md/os2/xptcinvoke_gcc_x86_os2.cpp \
|
---|
854 | xpcom/reflect/xptcall/src/md/os2/xptcstubs_gcc_x86_os2.cpp
|
---|
855 | VBox-xpcom-xptcall_SOURCES.solaris.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_solaris.cpp \
|
---|
856 | xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_solaris.cpp
|
---|
857 | ifdef VBOX_GCC_USING_SOLARIS_AS
|
---|
858 | VBox-xpcom-xptcall_SOURCES.solaris.amd64 = \
|
---|
859 | xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_linux.cpp \
|
---|
860 | xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_solaris.cpp
|
---|
861 | else
|
---|
862 | VBox-xpcom-xptcall_SOURCES.solaris.amd64 = \
|
---|
863 | xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_linux.cpp \
|
---|
864 | xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp
|
---|
865 | endif
|
---|
866 |
|
---|
867 | xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_solaris.cpp_CXXFLAGS = -O0
|
---|
868 | # -O0 works fine, while -O1 doesn't. The gcc man page can't be listing all the -f*
|
---|
869 | # stuff that -O1 enables, because when using the options without -O1, it's -fomit-frame-pointer
|
---|
870 | # that triggers is, while -O1 -fno-omit-frame-pointer does not work. Anyway, it's probably a gcc/mozila
|
---|
871 | # bug and it's not worth investigating as I'm not the maintainger of the solaris gcc port. [bird, 2007-09-17]
|
---|
872 |
|
---|
873 |
|
---|
874 | VBox-xpcom-proxy_TEMPLATE = XPCOM
|
---|
875 | VBox-xpcom-proxy_INSTTYPE = none
|
---|
876 | VBox-xpcom-proxy_DEFS = _IMPL_NS_COM EXPORT_XPTC_API EXPORT_XPTI_API
|
---|
877 | VBox-xpcom-proxy_SOURCES = xpcom/proxy/src/nsProxyEvent.cpp \
|
---|
878 | xpcom/proxy/src/nsProxyEventClass.cpp \
|
---|
879 | xpcom/proxy/src/nsProxyEventObject.cpp \
|
---|
880 | xpcom/proxy/src/nsProxyObjectManager.cpp \
|
---|
881 | xpcom/proxy/src/nsProxyRelease.cpp
|
---|
882 |
|
---|
883 |
|
---|
884 | #
|
---|
885 | # The VBoxXPCOM Glue static libraries.
|
---|
886 | #
|
---|
887 | # See http://developer.mozilla.org/en/docs/XPCOM_Glue for details about the
|
---|
888 | # original XPCOM glue library purpose and usage.
|
---|
889 | #
|
---|
890 | # We don't really use the glue library in the described way because we don't
|
---|
891 | # provide frozen APIs (yet), so all VBox XPCOM client applications are
|
---|
892 | # dependent on the given version of both the VBox XPCOM runtime (binary
|
---|
893 | # dependency) and VirtualBox component library (COM interface dependency). For
|
---|
894 | # this reason, VBox client applications link to the VBox XPCOM shared library
|
---|
895 | # directly (instead of linking to the standalone XPCOM glue library that would
|
---|
896 | # dynamically search for and load the installed XPCOM runtime). For the same
|
---|
897 | # reason, we link all parts of XPCOM into a single shared XPCOM library below
|
---|
898 | # (as opposed to the original XPCOM where e.g. NSPR lives in a separate DLL).
|
---|
899 | #
|
---|
900 | VBoxXPCOMGlue_COMMON_SOURCES = \
|
---|
901 | xpcom/glue/nsCOMPtr.cpp \
|
---|
902 | xpcom/glue/nsComponentManagerUtils.cpp \
|
---|
903 | xpcom/glue/nsDebug.cpp \
|
---|
904 | xpcom/glue/nsGenericFactory.cpp \
|
---|
905 | xpcom/glue/nsIInterfaceRequestorUtils.cpp \
|
---|
906 | xpcom/glue/nsMemory.cpp \
|
---|
907 | xpcom/glue/nsTraceRefcnt.cpp \
|
---|
908 | xpcom/glue/nsWeakReference.cpp
|
---|
909 |
|
---|
910 | # dependent glue library which goes in to the VBoxXPCOM shared library
|
---|
911 | VBoxXPCOMGlue_s_TEMPLATE = XPCOM
|
---|
912 | VBoxXPCOMGlue_s_INSTTYPE = none
|
---|
913 | VBoxXPCOMGlue_s_DEFS = _IMPL_NS_COM
|
---|
914 | VBoxXPCOMGlue_s_SOURCES = $(VBoxXPCOMGlue_COMMON_SOURCES)
|
---|
915 |
|
---|
916 | # standalone glue library which all third-party client apps (if any) will link with
|
---|
917 | # (currently not used anywhere (see above) but still built to make sure
|
---|
918 | # the code inside #ifdef XPCOM_GLUE compiles)
|
---|
919 | VBoxXPCOMGlue_TEMPLATE = XPCOM
|
---|
920 | VBoxXPCOMGlue_DEFS = XPCOM_GLUE
|
---|
921 | VBoxXPCOMGlue_SOURCES = $(VBoxXPCOMGlue_COMMON_SOURCES) \
|
---|
922 | xpcom/glue/standalone/nsXPCOMGlue.cpp \
|
---|
923 | xpcom/glue/standalone/nsGREDirServiceProvider.cpp
|
---|
924 | VBoxXPCOMGlue_SOURCES += \
|
---|
925 | $(VBox-xpcom-string_1_TARGET)
|
---|
926 | #VBoxXPCOMGlue_INST = lib/ $(INST_SDK)lib/
|
---|
927 |
|
---|
928 |
|
---|
929 | #
|
---|
930 | # The VBoxXPCOM Shared Object, assembling all lib files.
|
---|
931 | #
|
---|
932 | VBoxXPCOM_TEMPLATE = XPCOM
|
---|
933 | VBoxXPCOM_NAME = $(basename $(notdir $(LIB_XPCOM)))
|
---|
934 | VBoxXPCOM_DEFS = BUILD_DCONNECT="1" _IMPL_NS_COM
|
---|
935 | ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
|
---|
936 | VBoxXPCOM_LDFLAGS.linux = -Wl,--version-script=$(XPCOM_C_NAMESPACE_MAP)
|
---|
937 | VBoxXPCOM_LNK_DEPS.linux += $(XPCOM_C_NAMESPACE_MAP)
|
---|
938 | VBoxXPCOM_LDFLAGS.solaris = -Wl,-M,$(XPCOM_C_NAMESPACE_MAP)
|
---|
939 | VBoxXPCOM_LNK_DEPS.solaris+= $(XPCOM_C_NAMESPACE_MAP)
|
---|
940 | endif
|
---|
941 | VBoxXPCOM_SOURCES = \
|
---|
942 | xpcom/build/nsXPComInit.cpp \
|
---|
943 | xpcom/build/nsStringAPI.cpp
|
---|
944 | VBoxXPCOM_SOURCES.darwin = \
|
---|
945 | vboxdeps.cpp
|
---|
946 | VBoxXPCOM_SOURCES.os2 = \
|
---|
947 | vboxdeps.cpp
|
---|
948 | VBoxXPCOM_SOURCES.solaris = \
|
---|
949 | vboxdeps.cpp
|
---|
950 | VBoxXPCOM_LIBS = \
|
---|
951 | $(VBox-xpcom-typelib_1_TARGET) \
|
---|
952 | $(VBox-xpcom-string_1_TARGET) \
|
---|
953 | $(VBox-xpcom-base_1_TARGET) \
|
---|
954 | $(VBox-xpcom-ds_1_TARGET) \
|
---|
955 | $(VBox-xpcom-io_1_TARGET) \
|
---|
956 | $(VBox-xpcom-components_1_TARGET) \
|
---|
957 | $(VBox-xpcom-threads_1_TARGET) \
|
---|
958 | $(VBox-xpcom-xptinfo_1_TARGET) \
|
---|
959 | $(VBox-xpcom-xptcall_1_TARGET) \
|
---|
960 | $(VBox-xpcom-proxy_1_TARGET) \
|
---|
961 | $(VBox-xpcom-nspr_1_TARGET) \
|
---|
962 | $(VBoxXPCOMGlue_s_1_TARGET)
|
---|
963 | VBoxXPCOM_LIBS.linux = \
|
---|
964 | pthread dl
|
---|
965 |
|
---|
966 | ifeq ($(filter-out freebsd linux netbsd openbsd,$(KBUILD_TARGET)),) # gnu ld.
|
---|
967 | VBoxXPCOM_LDFLAGS = -Wl,--whole-archive \
|
---|
968 | $(VBox-xpcom-typelib_1_TARGET) \
|
---|
969 | $(VBox-xpcom-string_1_TARGET) \
|
---|
970 | $(VBox-xpcom-base_1_TARGET) \
|
---|
971 | $(VBox-xpcom-ds_1_TARGET) \
|
---|
972 | $(VBox-xpcom-io_1_TARGET) \
|
---|
973 | $(VBox-xpcom-components_1_TARGET) \
|
---|
974 | $(VBox-xpcom-threads_1_TARGET) \
|
---|
975 | $(VBox-xpcom-xptinfo_1_TARGET) \
|
---|
976 | $(VBox-xpcom-xptcall_1_TARGET) \
|
---|
977 | $(VBox-xpcom-proxy_1_TARGET) \
|
---|
978 | $(VBox-xpcom-nspr_1_TARGET) \
|
---|
979 | $(VBoxXPCOMGlue_s_1_TARGET) \
|
---|
980 | -Wl,--no-whole-archive
|
---|
981 | endif
|
---|
982 |
|
---|
983 | VBoxXPCOM_LDFLAGS.solaris += -Wl,-z,allextract \
|
---|
984 | $(VBox-xpcom-typelib_1_TARGET) \
|
---|
985 | $(VBox-xpcom-string_1_TARGET) \
|
---|
986 | $(VBox-xpcom-base_1_TARGET) \
|
---|
987 | $(VBox-xpcom-ds_1_TARGET) \
|
---|
988 | $(VBox-xpcom-io_1_TARGET) \
|
---|
989 | $(VBox-xpcom-components_1_TARGET) \
|
---|
990 | $(VBox-xpcom-threads_1_TARGET) \
|
---|
991 | $(VBox-xpcom-xptinfo_1_TARGET) \
|
---|
992 | $(VBox-xpcom-xptcall_1_TARGET) \
|
---|
993 | $(VBox-xpcom-proxy_1_TARGET) \
|
---|
994 | $(VBox-xpcom-nspr_1_TARGET) \
|
---|
995 | $(VBoxXPCOMGlue_s_1_TARGET) \
|
---|
996 | -Wl,-z,defaultextract
|
---|
997 |
|
---|
998 | # EF heap
|
---|
999 | #VBoxXPCOM_LIBS += $(LIB_RUNTIME_EF)
|
---|
1000 | #VBoxXPCOM_LDFLAGS = -Wl,--whole-archive $(VBoxXPCOM_LIBS) -Wl,--no-whole-archive $(LIB_RUNTIME)
|
---|
1001 | VBoxXPCOM_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxXPCOM.dylib
|
---|
1002 |
|
---|
1003 | ifdef VBOX_IPC_RELEASE_LOG
|
---|
1004 | IPC_LOGGING = 1
|
---|
1005 | else ifneq ($(KBUILD_TYPE),release)
|
---|
1006 | IPC_LOGGING = 1
|
---|
1007 | endif
|
---|
1008 |
|
---|
1009 | TEMPLATE_XPCOMIPC = XPCOM IPC libraries
|
---|
1010 | TEMPLATE_XPCOMIPC_EXTENDS = XPCOM
|
---|
1011 | TEMPLATE_XPCOMIPC_DEFS = \
|
---|
1012 | $(TEMPLATE_XPCOM_DEFS) BUILD_DCONNECT="1" \
|
---|
1013 | IPC_DAEMON_APP_NAME=\"VBoxXPCOMIPCD$(SUFF_EXE)\"
|
---|
1014 | ifdef IPC_LOGGING
|
---|
1015 | TEMPLATE_XPCOMIPC_DEFS += IPC_LOGGING
|
---|
1016 | endif
|
---|
1017 |
|
---|
1018 | TEMPLATE_XPCOMIPC_LIBS = $(VBoxXPCOM_1_TARGET) $(TEMPLATE_XPCOM_LIBS)
|
---|
1019 |
|
---|
1020 | TEMPLATE_XPCOMIPCEXE = XPCOM IPC executables
|
---|
1021 | TEMPLATE_XPCOMIPCEXE_EXTENDS = XPCOMEXE
|
---|
1022 | TEMPLATE_XPCOMIPCEXE_DEFS = $(TEMPLATE_XPCOMEXE_DEFS) BUILD_DCONNECT="1"
|
---|
1023 | ifdef IPC_LOGGING
|
---|
1024 | TEMPLATE_XPCOMIPCEXE_DEFS += IPC_LOGGING
|
---|
1025 | endif
|
---|
1026 |
|
---|
1027 | VBox-xpcom-ipcutils_TEMPLATE = XPCOMIPC
|
---|
1028 | VBox-xpcom-ipcutils_INSTTYPE = none
|
---|
1029 | VBox-xpcom-ipcutils_SOURCES = \
|
---|
1030 | ipc/ipcd/util/src/ipcMessageReader.cpp \
|
---|
1031 | ipc/ipcd/util/src/ipcMessageWriter.cpp
|
---|
1032 |
|
---|
1033 | VBox-xpcom-ipcshared_TEMPLATE = XPCOMIPC
|
---|
1034 | VBox-xpcom-ipcshared_INSTTYPE = none
|
---|
1035 | VBox-xpcom-ipcshared_SOURCES = \
|
---|
1036 | ipc/ipcd/shared/src/ipcLog.cpp \
|
---|
1037 | ipc/ipcd/shared/src/ipcConfig.cpp \
|
---|
1038 | ipc/ipcd/shared/src/ipcMessage.cpp \
|
---|
1039 | ipc/ipcd/shared/src/ipcMessagePrimitives.cpp \
|
---|
1040 | ipc/ipcd/shared/src/ipcStringList.cpp \
|
---|
1041 | ipc/ipcd/shared/src/ipcIDList.cpp \
|
---|
1042 | ipc/ipcd/shared/src/ipcm.cpp
|
---|
1043 |
|
---|
1044 | VBox-xpcom-ipcdlock_TEMPLATE = XPCOMIPC
|
---|
1045 | VBox-xpcom-ipcdlock_INSTTYPE = none
|
---|
1046 | VBox-xpcom-ipcdlock_SOURCES = \
|
---|
1047 | ipc/ipcd/extensions/lock/src/ipcLockProtocol.cpp \
|
---|
1048 | ipc/ipcd/extensions/lock/src/ipcLockService.cpp
|
---|
1049 |
|
---|
1050 | VBox-xpcom-ipctransmgr_TEMPLATE = XPCOMIPC
|
---|
1051 | VBox-xpcom-ipctransmgr_INSTTYPE = none
|
---|
1052 | VBox-xpcom-ipctransmgr_SOURCES = \
|
---|
1053 | ipc/ipcd/extensions/transmngr/src/tmTransactionService.cpp
|
---|
1054 |
|
---|
1055 | VBox-xpcom-ipctmgrcom_TEMPLATE = XPCOMIPC
|
---|
1056 | VBox-xpcom-ipctmgrcom_INSTTYPE = none
|
---|
1057 | VBox-xpcom-ipctmgrcom_SOURCES = \
|
---|
1058 | ipc/ipcd/extensions/transmngr/common/tmTransaction.cpp \
|
---|
1059 | ipc/ipcd/extensions/transmngr/common/tmVector.cpp
|
---|
1060 |
|
---|
1061 |
|
---|
1062 | #
|
---|
1063 | # DCONNECT client shared object
|
---|
1064 | #
|
---|
1065 | VBoxXPCOMIPCC_TEMPLATE = XPCOMIPC
|
---|
1066 | VBoxXPCOMIPCC_NAME.os2 = VBoxIPCC
|
---|
1067 | VBoxXPCOMIPCC_INST = $(INST_BIN)components/
|
---|
1068 | #VBoxXPCOMIPCC_DEFS = HAVE_DEPENDENT_LIBS - dependentLibs.h is linux specific, so this cannot be required.
|
---|
1069 | VBoxXPCOMIPCC_SOURCES = \
|
---|
1070 | ipc/ipcd/client/src/ipcdclient.cpp \
|
---|
1071 | ipc/ipcd/client/src/ipcService.cpp \
|
---|
1072 | ipc/ipcd/client/src/ipcModuleFactory.cpp \
|
---|
1073 | ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp
|
---|
1074 | ifeq ($(KBUILD_TARGET),win)
|
---|
1075 | VBoxXPCOMIPCC_SOURCES += \
|
---|
1076 | ipc/ipcd/client/src/ipcConnectionWin.cpp
|
---|
1077 | else
|
---|
1078 | VBoxXPCOMIPCC_SOURCES += \
|
---|
1079 | ipc/ipcd/client/src/ipcConnectionUnix.cpp
|
---|
1080 | endif
|
---|
1081 | VBoxXPCOMIPCC_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxXPCOMIPCC.dylib
|
---|
1082 | VBoxXPCOMIPCC_LIBS = \
|
---|
1083 | $(VBox-xpcom-ipcutils_1_TARGET) \
|
---|
1084 | $(VBox-xpcom-ipcshared_1_TARGET) \
|
---|
1085 | $(VBox-xpcom-ipcdlock_1_TARGET) \
|
---|
1086 | $(VBox-xpcom-ipctransmgr_1_TARGET) \
|
---|
1087 | $(VBox-xpcom-ipctmgrcom_1_TARGET)
|
---|
1088 | # EF
|
---|
1089 | #VBoxXPCOMIPCC_LIBS += $(LIB_RUNTIME)
|
---|
1090 |
|
---|
1091 |
|
---|
1092 | #
|
---|
1093 | # DCONNECT daemon executable
|
---|
1094 | #
|
---|
1095 | VBoxXPCOMIPCD_TEMPLATE = XPCOMIPCEXE
|
---|
1096 | VBoxXPCOMIPCD_SOURCES = \
|
---|
1097 | ipc/ipcd/daemon/src/ipcd.cpp \
|
---|
1098 | ipc/ipcd/daemon/src/ipcClient.cpp \
|
---|
1099 | ipc/ipcd/daemon/src/ipcModuleReg.cpp \
|
---|
1100 | ipc/ipcd/daemon/src/ipcCommandModule.cpp
|
---|
1101 | ifeq ($(KBUILD_TARGET),win)
|
---|
1102 | VBoxXPCOMIPCD_SOURCES += \
|
---|
1103 | ipc/ipcd/daemon/src/ipcdWin.cpp
|
---|
1104 | else
|
---|
1105 | VBoxXPCOMIPCD_SOURCES += \
|
---|
1106 | ipc/ipcd/daemon/src/ipcdUnix.cpp
|
---|
1107 | endif
|
---|
1108 |
|
---|
1109 |
|
---|
1110 | #
|
---|
1111 | # Include sub-makefiles for the Python<->XPCOM and Java<->XPCOM bridges.
|
---|
1112 | #
|
---|
1113 |
|
---|
1114 | # Find the Python headers for the Python<->XPCOM bridge if enabled.
|
---|
1115 | ifdef VBOX_WITH_PYTHON
|
---|
1116 | include $(PATH_SUB_CURRENT)/python/Makefile.kmk
|
---|
1117 | endif
|
---|
1118 |
|
---|
1119 | ifdef VBOX_WITH_JXPCOM
|
---|
1120 | include $(PATH_SUB_CURRENT)/java/Makefile.kmk
|
---|
1121 | endif
|
---|
1122 |
|
---|
1123 |
|
---|
1124 | #
|
---|
1125 | # testcases
|
---|
1126 | #
|
---|
1127 | tstnsIFileEnumerator_TEMPLATE = XPCOMTSTEXE
|
---|
1128 | tstnsIFileEnumerator_SOURCES = xpcom/tests/nsIFileEnumerator.cpp
|
---|
1129 | tstnsIFileTest_TEMPLATE = XPCOMTSTEXE
|
---|
1130 | tstnsIFileTest_SOURCES = xpcom/tests/nsIFileTest.cpp
|
---|
1131 | tstTestArray_TEMPLATE = XPCOMTSTEXE
|
---|
1132 | tstTestArray_SOURCES = xpcom/tests/TestArray.cpp
|
---|
1133 | tstTestAtoms_TEMPLATE = XPCOMTSTEXE
|
---|
1134 | tstTestAtoms_SOURCES = xpcom/tests/TestAtoms.cpp
|
---|
1135 | tstTestAutoLock_TEMPLATE = XPCOMTSTEXE
|
---|
1136 | tstTestAutoLock_SOURCES = xpcom/tests/TestAutoLock.cpp
|
---|
1137 | tstTestCallTemplates_TEMPLATE = XPCOMTSTEXE
|
---|
1138 | tstTestCallTemplates_SOURCES = xpcom/tests/TestCallTemplates.cpp
|
---|
1139 | tstTestCOMPtr_TEMPLATE = XPCOMTSTEXE
|
---|
1140 | tstTestCOMPtr_SOURCES = xpcom/tests/TestCOMPtr.cpp
|
---|
1141 | tstTestCOMPtrEq_TEMPLATE = XPCOMTSTEXE
|
---|
1142 | tstTestCOMPtrEq_SOURCES = xpcom/tests/TestCOMPtrEq.cpp
|
---|
1143 | tstTestCRT_TEMPLATE = XPCOMTSTEXE
|
---|
1144 | tstTestCRT_SOURCES = xpcom/tests/TestCRT.cpp
|
---|
1145 | tstTestFactory_TEMPLATE = XPCOMTSTEXE
|
---|
1146 | tstTestFactory_SOURCES = xpcom/tests/TestFactory.cpp
|
---|
1147 | tstTestHashtables_TEMPLATE = XPCOMTSTEXE
|
---|
1148 | tstTestHashtables_SOURCES = xpcom/tests/TestHashtables.cpp
|
---|
1149 | tstTestID_TEMPLATE = XPCOMTSTEXE
|
---|
1150 | tstTestID_SOURCES = xpcom/tests/TestID.cpp
|
---|
1151 | tstTestObserverService_TEMPLATE= XPCOMTSTEXE
|
---|
1152 | tstTestObserverService_SOURCES = xpcom/tests/TestObserverService.cpp
|
---|
1153 | tstTestPermanentAtoms_TEMPLATE = XPCOMTSTEXE
|
---|
1154 | tstTestPermanentAtoms_SOURCES = xpcom/tests/TestPermanentAtoms.cpp
|
---|
1155 | tstTestPipes_TEMPLATE = XPCOMTSTEXE
|
---|
1156 | tstTestPipes_SOURCES = xpcom/tests/TestPipes.cpp
|
---|
1157 | tstTestServMgr_TEMPLATE = XPCOMTSTEXE
|
---|
1158 | tstTestServMgr_SOURCES = xpcom/tests/TestServMgr.cpp
|
---|
1159 | tstTestServMgr_INCS = xpcom/tests/services
|
---|
1160 | tstTestThreads_TEMPLATE = XPCOMTSTEXE
|
---|
1161 | tstTestThreads_SOURCES = xpcom/tests/TestThreads.cpp
|
---|
1162 | tstTestXPIDLString_TEMPLATE = XPCOMTSTEXE
|
---|
1163 | tstTestXPIDLString_SOURCES = xpcom/tests/TestXPIDLString.cpp
|
---|
1164 | tstTestDeque_TEMPLATE = XPCOMTSTEXE
|
---|
1165 | tstTestDeque_SOURCES = xpcom/tests/TestDeque.cpp
|
---|
1166 | tstTestAutoPtr_TEMPLATE = XPCOMTSTEXE
|
---|
1167 | tstTestAutoPtr_SOURCES = xpcom/tests/TestAutoPtr.cpp
|
---|
1168 | tstTestMinStringAPI_TEMPLATE = XPCOMTSTEXE
|
---|
1169 | tstTestMinStringAPI_SOURCES = xpcom/tests/TestMinStringAPI.cpp
|
---|
1170 | tstTestStrings_TEMPLATE = XPCOMTSTEXE
|
---|
1171 | tstTestStrings_SOURCES = xpcom/tests/TestStrings.cpp
|
---|
1172 | tstPrimitiveTest_TEMPLATE = XPCOMTSTEXE
|
---|
1173 | tstPrimitiveTest_SOURCES = xpcom/typelib/xpt/tests/PrimitiveTest.c
|
---|
1174 | tstSimpleTypeLib_TEMPLATE = XPCOMTSTEXE
|
---|
1175 | tstSimpleTypeLib_SOURCES = xpcom/typelib/xpt/tests/SimpleTypeLib.c
|
---|
1176 | tstXptDump_TEMPLATE = XPCOMTSTEXE
|
---|
1177 | tstXptDump_SOURCES = xpcom/typelib/xpt/tools/xpt_dump.c
|
---|
1178 | tstXptLink_TEMPLATE = XPCOMTSTEXE
|
---|
1179 | tstXptLink_SOURCES = xpcom/typelib/xpt/tools/xpt_link.c
|
---|
1180 |
|
---|
1181 |
|
---|
1182 |
|
---|
1183 | OTHER_CLEAN += \
|
---|
1184 | $(PATH_TARGET)/VBox-xpcom-idl-timestamp \
|
---|
1185 | $(addprefix $(VBOX_PATH_SDK)/bindings/xpcom/include,$(notdir $(subst .idl,.h,$(XPCOM_IDLFILES)))) \
|
---|
1186 | $(addprefix $(VBOX_PATH_SDK)/bindings/xpcom/include,$(notdir $(subst .idl,.xpt,$(XPCOM_IDLFILES)))) \
|
---|
1187 | $(addprefix $(VBOX_PATH_SDK)/bindings/xpcom/idl/,$(notdir $(XPCOM_IDLFILES))) \
|
---|
1188 | $(addprefix $(PATH_TARGET)/VBox-xpcom-xpt-files/,$(notdir $(subst .idl,.xpt,$(XPCOM_IDLFILES))))
|
---|
1189 |
|
---|
1190 |
|
---|
1191 | #
|
---|
1192 | # Create and install VBoxXPCOMBase.xpt
|
---|
1193 | #
|
---|
1194 | INSTALLS += VBoxXPCOMBase-xpt-inst
|
---|
1195 | VBOX_XPTFILES = $(addprefix $(PATH_TARGET)/VBox-xpcom-xpt-files/, \
|
---|
1196 | nsIConsoleListener.xpt \
|
---|
1197 | nsIConsoleMessage.xpt \
|
---|
1198 | nsIConsoleService.xpt \
|
---|
1199 | nsIErrorService.xpt \
|
---|
1200 | nsIException.xpt \
|
---|
1201 | nsIExceptionService.xpt \
|
---|
1202 | nsIDebug.xpt \
|
---|
1203 | nsIInterfaceRequestor.xpt \
|
---|
1204 | nsIMemory.xpt \
|
---|
1205 | nsIProgrammingLanguage.xpt \
|
---|
1206 | nsISupports.xpt \
|
---|
1207 | nsITraceRefcnt.xpt \
|
---|
1208 | nsIWeakReference.xpt \
|
---|
1209 | nsrootidl.xpt \
|
---|
1210 | nsIAtom.xpt \
|
---|
1211 | nsIAtomService.xpt \
|
---|
1212 | nsICollection.xpt \
|
---|
1213 | nsIEnumerator.xpt \
|
---|
1214 | nsIPersistentProperties2.xpt \
|
---|
1215 | nsIPropertyBag.xpt \
|
---|
1216 | nsIRecyclingAllocator.xpt \
|
---|
1217 | nsIVariant.xpt \
|
---|
1218 | nsISerializable.xpt \
|
---|
1219 | nsIStringEnumerator.xpt \
|
---|
1220 | nsISupportsArray.xpt \
|
---|
1221 | nsISupportsIterators.xpt \
|
---|
1222 | nsITimelineService.xpt \
|
---|
1223 | nsIArray.xpt \
|
---|
1224 | nsIObserverService.xpt \
|
---|
1225 | nsIObserver.xpt \
|
---|
1226 | nsIProperties.xpt \
|
---|
1227 | nsISimpleEnumerator.xpt \
|
---|
1228 | nsISupportsPrimitives.xpt \
|
---|
1229 | nsIBinaryInputStream.xpt \
|
---|
1230 | nsIBinaryOutputStream.xpt \
|
---|
1231 | nsIByteArrayInputStream.xpt \
|
---|
1232 | nsIFastLoadFileControl.xpt \
|
---|
1233 | nsIFastLoadService.xpt \
|
---|
1234 | nsIInputStreamTee.xpt \
|
---|
1235 | nsILineInputStream.xpt \
|
---|
1236 | nsIMultiplexInputStream.xpt \
|
---|
1237 | nsIObjectInputStream.xpt \
|
---|
1238 | nsIObjectOutputStream.xpt \
|
---|
1239 | nsIPipe.xpt \
|
---|
1240 | nsISeekableStream.xpt \
|
---|
1241 | nsIStorageStream.xpt \
|
---|
1242 | nsIStringStream.xpt \
|
---|
1243 | nsIStreamBufferAccess.xpt \
|
---|
1244 | nsIAsyncInputStream.xpt \
|
---|
1245 | nsIAsyncOutputStream.xpt \
|
---|
1246 | nsIDirectoryService.xpt \
|
---|
1247 | nsIFile.xpt \
|
---|
1248 | nsILocalFile.xpt \
|
---|
1249 | nsIInputStream.xpt \
|
---|
1250 | nsIOutputStream.xpt \
|
---|
1251 | nsIScriptableInputStream.xpt \
|
---|
1252 | nsIComponentLoader.xpt \
|
---|
1253 | nsIComponentLoaderManager.xpt \
|
---|
1254 | nsIComponentManagerObsolete.xpt \
|
---|
1255 | nsINativeComponentLoader.xpt \
|
---|
1256 | nsIClassInfo.xpt \
|
---|
1257 | nsIComponentRegistrar.xpt \
|
---|
1258 | nsIFactory.xpt \
|
---|
1259 | nsIModule.xpt \
|
---|
1260 | nsIServiceManager.xpt \
|
---|
1261 | nsIComponentManager.xpt \
|
---|
1262 | nsICategoryManager.xpt \
|
---|
1263 | nsIThread.xpt \
|
---|
1264 | nsITimer.xpt \
|
---|
1265 | nsITimerInternal.xpt \
|
---|
1266 | nsITimerManager.xpt \
|
---|
1267 | nsIRunnable.xpt \
|
---|
1268 | nsIEventTarget.xpt \
|
---|
1269 | nsIEventQueue.xpt \
|
---|
1270 | nsIEventQueueService.xpt \
|
---|
1271 | nsIEnvironment.xpt \
|
---|
1272 | nsIProcess.xpt \
|
---|
1273 | nsIInterfaceInfo.xpt \
|
---|
1274 | nsIInterfaceInfoManager.xpt \
|
---|
1275 | nsIXPTLoader.xpt)
|
---|
1276 |
|
---|
1277 | VBoxXPCOMBase-xpt-inst_INST = $(INST_BIN)components/
|
---|
1278 | VBoxXPCOMBase-xpt-inst_MODE = 0644
|
---|
1279 | VBoxXPCOMBase-xpt-inst_SOURCES = \
|
---|
1280 | $(PATH_TARGET)/VBox-xpcom-xpt-files/VBoxXPCOMBase.xpt
|
---|
1281 | VBoxXPCOMBase-xpt-inst_CLEAN = \
|
---|
1282 | $(VBOX_XPTFILES) \
|
---|
1283 | $(PATH_TARGET)/VBox-xpcom-xpt-files/VBoxXPCOMBase.xpt
|
---|
1284 |
|
---|
1285 | # combined typelib library
|
---|
1286 | $(PATH_TARGET)/VBox-xpcom-xpt-files/VBoxXPCOMBase.xpt: $$(VBOX_XPTFILES) | $$(xpt_link_1_TARGET) $(PATH_TARGET)/VBox-xpcom-xpt-files/
|
---|
1287 | $(call MSG_LINK,XPCOM_TYPELIB,$@)
|
---|
1288 | $(QUIET)$(MKDIR) -p -- $(PATH_STAGE_BIN)/components
|
---|
1289 | $(QUIET)$(xpt_link_1_TARGET) $@ $^
|
---|
1290 |
|
---|
1291 |
|
---|
1292 |
|
---|
1293 | # generate rules
|
---|
1294 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
1295 |
|
---|
1296 |
|
---|
1297 |
|
---|
1298 | #
|
---|
1299 | # Generate IDL rules.
|
---|
1300 | #
|
---|
1301 |
|
---|
1302 | ##
|
---|
1303 | # Define for compiling one IDL into a header and a typelib
|
---|
1304 | # @param idl The filename with everything.
|
---|
1305 | define def_IDL
|
---|
1306 | $(VBOX_PATH_SDK)/bindings/xpcom/include/$(notdir $(subst .idl,.h,$(idl))) \
|
---|
1307 | + $(PATH_TARGET)/VBox-xpcom-xpt-files/$(notdir $(subst .idl,.xpt,$(idl))): \
|
---|
1308 | $(VBOX_PATH_XPCOM_SRC)/$(idl) \
|
---|
1309 | | $$$$(xpidl_1_TARGET) \
|
---|
1310 | $(PATH_TARGET)/VBox-xpcom-xpt-files/
|
---|
1311 | $$(call MSG_TOOL,xpidl,XPCOM,$$<,$$@)
|
---|
1312 | $$(QUIET)$(MKDIR) -p $(VBOX_PATH_SDK)/bindings/xpcom/include $(VBOX_PATH_SDK)/bindings/xpcom/idl
|
---|
1313 | $$(QUIET)$$(xpidl_1_TARGET) -m header $(XPIDL_INCS) -e $$@ $$<
|
---|
1314 | $$(QUIET)$$(xpidl_1_TARGET) -m typelib $(XPIDL_INCS) -e $(addprefix $(PATH_TARGET)/VBox-xpcom-xpt-files/,$(notdir $(subst .idl,.xpt,$(idl)))) $$<
|
---|
1315 | $$(QUIET)$(CP) $$< $$(VBOX_PATH_SDK)/bindings/xpcom/idl
|
---|
1316 | endef
|
---|
1317 |
|
---|
1318 | $(foreach idl, $(XPCOM_IDLFILES), $(eval $(def_IDL)))
|
---|
1319 |
|
---|
1320 | # dummy target.
|
---|
1321 | $(PATH_TARGET)/VBox-xpcom-idl-timestamp: $$(addprefix $$(VBOX_PATH_SDK)/bindings/xpcom/include/,$$(notdir $$(subst .idl,.h,$$(XPCOM_IDLFILES))))
|
---|
1322 | $(call MSG_L1,IDL processing completed.)
|
---|
1323 | $(QUIET)$(MKDIR) -p $(dir $@)
|
---|
1324 | $(QUIET)$(APPEND) -t $@
|
---|
1325 |
|
---|
1326 | #
|
---|
1327 | # HACK ALERT! Make sure main doesn't start using xpidl before we're done
|
---|
1328 | # with the idl files here. The trick here is that we're using TARGET_xpidl,
|
---|
1329 | # i.e. the copy residing in obj/, while VBOX_XPIDL is pointing to
|
---|
1330 | # xpidl_1_STAGE_TARGET which is the one in bin/.
|
---|
1331 | #
|
---|
1332 | $(VBOX_XPIDL): | $(PATH_TARGET)/VBox-xpcom-idl-timestamp
|
---|
1333 |
|
---|
1334 |
|
---|
1335 | #
|
---|
1336 | # Generate linker map file filtering out unwanted global symbols.
|
---|
1337 | #
|
---|
1338 | $(PATH_TARGET)/xpcom-namespace-cleanup.map foo.map: $$(VBoxXPCOM_LIBS) $$(VBoxXPCOM_OBJS_)
|
---|
1339 | $(call MSG_L1, Creating linker map $@ for scrubbing the symbol namespace)
|
---|
1340 | $(QUIET)$(APPEND) -t $@ '{ local: *; global: '
|
---|
1341 | $(QUIET)$(VBOX_NM) -p -g $^ \
|
---|
1342 | | $(SED) -n \
|
---|
1343 | -e '/^$$/b' \
|
---|
1344 | -e '/:$$/b' \
|
---|
1345 | -e '/ U /b' \
|
---|
1346 | -e 's/^[^ ]* [A-Z] \(.*\)$$/\1/' \
|
---|
1347 | -e 's/\<_Z[^ ]*$$/&;/p' \
|
---|
1348 | -e 's/\<VBoxNs[^ ]*$$/&;/p' \
|
---|
1349 | -e 's/\<_edata$$/&;/p' \
|
---|
1350 | -e 's/\<_end$$/&;/p' \
|
---|
1351 | -e 's/\<_etext$$/&;/p'\
|
---|
1352 | -e 's/\<_fini$$/&;/p' \
|
---|
1353 | -e 's/\<_init$$/&;/p' \
|
---|
1354 | --append $@
|
---|
1355 | $(QUIET)$(APPEND) $@ '};'
|
---|
1356 |
|
---|