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