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