VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/Makefile.kmk@ 101812

Last change on this file since 101812 was 101812, checked in by vboxsync, 15 months ago

libs/xpcom: Merge all the platform specific initialization routines into unix.c as they are pretty much empty now, bugref:10545

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette