VirtualBox

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

Last change on this file since 2476 was 2476, checked in by vboxsync, 18 years ago

Some makefile header and attribute adjustments.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 46.2 KB
Line 
1# $Id: Makefile.kmk 2476 2007-05-03 23:51:43Z vboxsync $
2## @file
3# Makefile for XPCOM.
4#
5
6#
7# Copyright (C) 2006 InnoTek Systemberatung GmbH
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License as published by the Free Software Foundation,
13# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14# distribution. VirtualBox OSE is distributed in the hope that it will
15# be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# If you received this file as part of a commercial VirtualBox
18# distribution, then only the terms of your commercial VirtualBox
19# license agreement apply instead of the previous paragraph.
20#
21
22DEPTH = ../../..
23include $(PATH_KBUILD)/header.kmk
24
25
26#
27# Template for building the XPCOM libraries (shared).
28#
29TEMPLATE_XPCOM = XPCOM libraries (shared)
30TEMPLATE_XPCOM_EXTENDS = VBOXR3NP
31TEMPLATE_XPCOM_ASTOOL = $(TEMPLATE_VBOXR3NP_TOOL)
32TEMPLATE_XPCOM_ASFLAGS = $(NO_SUCH_VARIABLE)
33TEMPLATE_XPCOM_ASDEFS = $(NO_SUCH_VARIABLE)
34TEMPLATE_XPCOM_CXXFLAGS = -pipe -ansi -Wall -Wno-unused -Wno-non-virtual-dtor \
35 $(VBOX_GCC_Wno-invalid-offsetof) -Wno-sign-compare -Wno-unused -Wno-ctor-dtor-privacy \
36 $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden)
37
38TEMPLATE_XPCOM_CXXFLAGS.debug = -fno-inline
39TEMPLATE_XPCOM_CXXFLAGS.release = -O
40TEMPLATE_XPCOM_CXXFLAGS.profile = -O
41TEMPLATE_XPCOM_CXXFLAGS.darwin = -fpascal-strings -fshort-wchar -fno-common -fno-rtti
42TEMPLATE_XPCOM_CXXFLAGS.l4 = -fno-exceptions -nostdinc
43TEMPLATE_XPCOM_CXXFLAGS.linux = -pthread
44TEMPLATE_XPCOM_CFLAGS = -pipe -Wall -Wno-unused -Wno-parentheses -Wno-uninitialized $(VBOX_GCC_fvisibility-hidden)
45TEMPLATE_XPCOM_CFLAGS.debug = -fno-inline
46TEMPLATE_XPCOM_CFLAGS.release = -O
47TEMPLATE_XPCOM_CFLAGS.profile = -O
48TEMPLATE_XPCOM_CFLAGS.l4 = -nostdinc
49TEMPLATE_XPCOM_CFLAGS.linux = -pthread -ansi
50TEMPLATE_XPCOM_DEFS = MOZILLA_CLIENT=1 NDEBUG=1 _IMPL_NS_COM
51TEMPLATE_XPCOM_DEFS.x86 = i386=1
52TEMPLATE_XPCOM_DEFS.amd64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY\(a\,b\)=__builtin_va_copy\(a\,b\)
53TEMPLATE_XPCOM_DEFS.darwin = OSTYPE=\"Darwin8.8.1\" OSARCH=\"Darwin\" MOZ_DLL_SUFFIX=\".dylib\" XP_UNIX=1 XP_MACOSX=1 TARGET_CARBON=1 HAVE_VISIBILITY_ATTRIBUTE=1
54TEMPLATE_XPCOM_DEFS.linux = OSTYPE=\"Linux2.6\" OSARCH=\"Linux\" MOZ_DLL_SUFFIX=\".so\" XP_UNIX=1 _GNU_SOURCE HAVE_VISIBILITY_ATTRIBUTE=1
55TEMPLATE_XPCOM_DEFS.l4 = OSTYPE=\"L4ENV\" OSARCH=\"L4\" MOZ_DLL_SUFFIX=\".s.so\" XP_UNIX=1 L4ENV HAVE_VISIBILITY_ATTRIBUTE=1
56TEMPLATE_XPCOM_DEFS.os2 = OSTYPE=\"OS/2 4.5\" OSARCH=\"OS/2\" MOZ_DLL_SUFFIX=\".dll\" XP_UNIX=1
57TEMPLATE_XPCOM_LDFLAGS.darwin = $(VBOXR3NP_LDFLAGS.darwin) \
58 -fshort-wchar -fno-rtti -fno-exceptions -fpascal-strings \
59 -framework CoreServices -framework CoreFoundation -framework Foundation -framework AppKit -framework Carbon
60ifeq ($(filter os2 win,$(BUILD_TARGET)),)
61 TEMPLATE_XPCOM_CXXFLAGS += -fPIC
62 TEMPLATE_XPCOM_CFLAGS += -fPIC
63 TEMPLATE_XPCOM_LDFLAGS += -fPIC
64 TEMPLATE_XPCOM_DEFS += MOZ_PRESERVE_PIC
65endif
66TEMPLATE_XPCOM_INCS = $(PATH_TARGET) \
67 xpcom/build \
68 xpcom/ds \
69 xpcom/io \
70 xpcom/base \
71 xpcom/components \
72 xpcom/threads \
73 xpcom/proxy/src \
74 xpcom/reflect/xptcall/src \
75 ipc/ipcd/client/src \
76 ipc/ipcd/shared/src \
77 ipc/ipcd/extensions/lock/src \
78 ipc/ipcd/extensions/transmngr/src \
79 ipc/ipcd/extensions/dconnect/src \
80 ipc/ipcd/extensions/transmngr/common \
81 $(VBOX_PATH_SDK)/include \
82 $(VBOX_PATH_SDK)/include/xpcom \
83 $(VBOX_PATH_SDK)/include/xpcom/nsprpub \
84 $(VBOX_PATH_SDK)/include/xpcom/string \
85 $(VBOX_PATH_SDK)/include/xpcom/xpcom \
86 $(VBOX_PATH_SDK)/include/xpcom/ipcd
87TEMPLATE_XPCOM_INCS.darwin = /Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon
88TEMPLATE_XPCOM_INCS.l4 = $(L4_INCDIR) $(VBOX_L4_GCC3_INCS)
89TEMPLATE_XPCOM_LDFLAGS.l4 = $(L4_DIR)/lib/x86_586/crt0.o \
90 -T$(L4_DIR)/lib/x86_586/main_rel.ld -nostdlib \
91 # -Wl,--whole-archive,--no-allow-shlib-undefined
92TEMPLATE_XPCOM_LIBS.l4 = $(VBOX_GCC_LIBGCC)
93TEMPLATE_XPCOM_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $(TARGET_$(hdrinst))) \
94 $(PATH_VBox-xpcom-string)/idl_ts
95
96
97#
98# Template for building the XPCOM executables
99#
100TEMPLATE_XPCOMEXE = XPCOM executable files (testcases)
101TEMPLATE_XPCOMEXE_EXTENDS = XPCOM
102## @todo undo -fPIC.
103TEMPLATE_XPCOMEXE_INCS = $(PATH_TARGET) \
104 ipc/ipcd/shared/src \
105 $(VBOX_PATH_SDK)/include \
106 $(VBOX_PATH_SDK)/include/xpcom \
107 $(VBOX_PATH_SDK)/include/xpcom/nsprpub \
108 $(VBOX_PATH_SDK)/include/xpcom/string \
109 $(VBOX_PATH_SDK)/include/xpcom/xpcom \
110 $(VBOX_PATH_SDK)/include/xpcom/ipcd
111TEMPLATE_XPCOMEXE_LIBS = \
112 $(TARGET_VBox-xpcom-ipcshared) \
113 $(TARGET_VBoxXPCOM)
114TEMPLATE_XPCOMEXE_LIBS.linux = dl $(LIB_PTHREAD)
115TEMPLATE_XPCOMEXE_LIBS.l4 = $(LIB_RUNTIME) $(VBOX_GCC_LIBGCC)
116TEMPLATE_XPCOMEXE_LDFLAGS.darwin = -bind_at_load $(TEMPLATE_XPCOM_LDFLAGS.darwin)
117TEMPLATE_XPCOMEXE_LDFLAGS.l4 = $(L4_DIR)/lib/x86_586/crt0.o \
118 -T$(L4_DIR)/lib/x86_586/main_dyn.ld -nostdlib -lgcc \
119 -Wl,--export-dynamic,--dynamic-linker=libld-l4.s.so \
120 -Wl,--rpath-link,$(L4_LIBDIR) \
121 # -Wl,--whole-archive,--no-allow-shlib-undefined
122
123#
124# Template for building XPCOM executables for running at build time.
125#
126# It extends the BLDPROG template in config.kmk but overrides CFLAGS
127# and CXXFLAGS completely at the moment.
128#
129TEMPLATE_XPCOMBLDPROG = XPCOM Build programs executables
130TEMPLATE_XPCOMBLDPROG_EXTENDS = BLDPROG
131
132TEMPLATE_XPCOMBLDPROG_DEFS = $(TEMPLATE_BLDPROG_DEFS) $(TEMPLATE_XPCOMEXE_DEFS)
133TEMPLATE_XPCOMBLDPROG_DEFS.$(BUILD_TARGET) = $(TEMPLATE_BLDPROG_DEFS.$(BUILD_TARGET)) $(TEMPLATE_XPCOMEXE_DEFS.$(BUILD_TARGET))
134TEMPLATE_XPCOMBLDPROG_DEFS.$(BUILD_TARGET_ARCH) = $(TEMPLATE_BLDPROG_DEFS.$(BUILD_TARGET_ARCH)) $(TEMPLATE_XPCOMEXE_DEFS.$(BUILD_TARGET_ARCH))
135TEMPLATE_XPCOMBLDPROG_CXXFLAGS = -ansi -Wall -Wno-non-virtual-dtor
136TEMPLATE_XPCOMBLDPROG_CXXFLAGS.linux = -pthread
137TEMPLATE_XPCOMBLDPROG_CXXFLAGS.release = -O
138TEMPLATE_XPCOMBLDPROG_CXXFLAGS.profile = -O
139TEMPLATE_XPCOMBLDPROG_CFLAGS = -pipe -ansi -Wall -Wno-unused
140TEMPLATE_XPCOMBLDPROG_CFLAGS.linux = -pthread
141TEMPLATE_XPCOMBLDPROG_CFLAGS.release = -O
142TEMPLATE_XPCOMBLDPROG_CFLAGS.profile = -O
143TEMPLATE_XPCOMBLDPROG_INCS = $(VBOX_PATH_SDK)/include \
144 $(VBOX_PATH_SDK)/include/xpcom \
145 $(VBOX_PATH_SDK)/include/xpcom/nsprpub \
146 $(VBOX_PATH_SDK)/include/xpcom/string \
147 $(VBOX_PATH_SDK)/include/xpcom/xpcom \
148 $(VBOX_PATH_SDK)/include/xpcom/ipcd
149TEMPLATE_XPCOMBLDPROG_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $(TARGET_$(hdrinst)))
150
151
152#
153# Header installs.
154#
155INSTALLS = \
156 NSPRPUB-HEADERS \
157 NSPRPUB-MD-HEADERS \
158 NSPRPUB-OBS-HEADERS \
159 NSPRPUB-PRIV-HEADERS \
160 STRING-HEADERS \
161 XPCOM-HEADERS \
162 IPCD-HEADERS
163
164#
165# The IDL compiler and typelib linker.
166#
167BLDPROGS = \
168 xpidl \
169 xpt_link
170
171#
172# We build several libraries so that any linker command line
173# length restrictions limit will be avoided. (Solaris, Mac?)
174#
175LIBRARIES = \
176 VBox-xpcom-nspr \
177 VBox-xpcom-typelib \
178 VBox-xpcom-string \
179 VBox-xpcom-base \
180 VBox-xpcom-ds \
181 VBox-xpcom-io \
182 VBox-xpcom-components \
183 VBox-xpcom-threads \
184 VBox-xpcom-xptinfo \
185 VBox-xpcom-xptcall \
186 VBox-xpcom-proxy \
187 VBoxXPCOMGlue \
188 VBox-xpcom-ipcutils \
189 VBox-xpcom-ipcshared \
190 VBox-xpcom-ipcdlock \
191 VBox-xpcom-ipctransmgr \
192 VBox-xcpom-ipctmgrcom
193
194DLLS = \
195 VBoxXPCOM \
196 VBoxXPCOMIPCC
197
198ifdef VBOX_WITH_TESTCASES
199PROGRAMS = \
200 tstnsIFileEnumerator \
201 tstnsIFileTest \
202 tstTestArray \
203 tstTestAtoms \
204 tstTestAutoLock \
205 tstTestCallTemplates \
206 tstTestCOMPtr \
207 tstTestCOMPtrEq \
208 tstTestCRT \
209 tstTestFactory \
210 tstTestHashtables \
211 tstTestID \
212 tstTestObserverService \
213 tstTestPipes \
214 tstTestServMgr \
215 tstTestThreads \
216 tstTestXPIDLString \
217 tstTestDeque \
218 tstTestAutoPtr \
219 tstTestMinStringAPI \
220 tstTestStrings \
221 tstPrimitiveTest \
222 tstSimpleTypeLib \
223 tstXptDump \
224 tstXptLink
225# tstTestPermanentAtoms
226endif # VBOX_WITH_TESTCASES
227PROGRAMS += VBoxXPCOMIPCD
228
229ifeq ($(BUILD_TARGET),linux)
230 XPCOM_TYPELIB = $(PATH_BIN)/VBoxXPCOMBase.xpt
231else
232 XPCOM_TYPELIB = $(PATH_BIN)/components/VBoxXPCOMBase.xpt
233endif
234OTHERS = $(XPCOM_TYPELIB)
235OTHER_CLEAN = \
236 $(PATH_TARGET)/VBox-xpcom-nspr/_pr_bld.h \
237 $(PATH_TARGET)/VBox-xpcom-nspr/_pl_bld.h \
238 $(XPCOM_TYPELIB)
239
240
241
242#
243# SDK headers - lot's of files to install...
244#
245# Tip: If you are going to remove files here, you might
246# wish to do a `kmk uninstall' first to avoid have
247# obsoleted files in the $(INST_SDK) directory.
248#
249
250NSPRPUB-HEADERS_INST = $(INST_SDK)/include/xpcom/nsprpub/
251NSPRPUB-HEADERS_IFFLAGS = -m 644
252NSPRPUB-HEADERS_SOURCES = \
253 nsprpub/pr/include/nspr.h \
254 nsprpub/lib/ds/plarena.h \
255 nsprpub/lib/ds/plarenas.h \
256 nsprpub/lib/libc/include/plbase64.h \
257 nsprpub/lib/libc/include/plerror.h \
258 nsprpub/lib/libc/include/plgetopt.h \
259 nsprpub/lib/ds/plhash.h \
260 nsprpub/lib/libc/include/plresolv.h \
261 nsprpub/lib/libc/include/plstr.h \
262 nsprpub/pr/include/pratom.h \
263 nsprpub/pr/include/prbit.h \
264 nsprpub/pr/include/prclist.h \
265 nsprpub/pr/include/prcmon.h \
266 nsprpub/pr/include/prcountr.h \
267 nsprpub/pr/include/prcvar.h \
268 nsprpub/pr/include/prdtoa.h \
269 nsprpub/pr/include/prenv.h \
270 nsprpub/pr/include/prerr.h \
271 nsprpub/pr/include/prerror.h \
272 nsprpub/pr/include/prinet.h \
273 nsprpub/pr/include/prinit.h \
274 nsprpub/pr/include/prinrval.h \
275 nsprpub/pr/include/prio.h \
276 nsprpub/pr/include/pripcsem.h \
277 nsprpub/pr/include/prlink.h \
278 nsprpub/pr/include/prlock.h \
279 nsprpub/pr/include/prlog.h \
280 nsprpub/pr/include/prlong.h \
281 nsprpub/pr/include/prmem.h \
282 nsprpub/pr/include/prmon.h \
283 nsprpub/pr/include/prmwait.h \
284 nsprpub/pr/include/prnetdb.h \
285 nsprpub/pr/include/prolock.h \
286 nsprpub/pr/include/prpdce.h \
287 nsprpub/pr/include/prprf.h \
288 nsprpub/pr/include/prproces.h \
289 nsprpub/pr/include/prrng.h \
290 nsprpub/pr/include/prrwlock.h \
291 nsprpub/pr/include/prshm.h \
292 nsprpub/pr/include/prshma.h \
293 nsprpub/pr/include/prsystem.h \
294 nsprpub/pr/include/prthread.h \
295 nsprpub/pr/include/prtime.h \
296 nsprpub/pr/include/prtpool.h \
297 nsprpub/pr/include/prtrace.h \
298 nsprpub/pr/include/prtypes.h \
299 nsprpub/pr/include/prvrsion.h \
300 nsprpub/pr/include/prwin16.h \
301 nsprpub/pr/include/md/_vbox.cfg=>prcpucfg.h \
302
303NSPRPUB-MD-HEADERS_INST = $(INST_SDK)/include/xpcom/nsprpub/md
304NSPRPUB-MD-HEADERS_IFFLAGS = -m 644
305NSPRPUB-MD-HEADERS_SOURCES = \
306 nsprpub/pr/include/md/_darwin.h \
307 nsprpub/pr/include/md/_freebsd.h \
308 nsprpub/pr/include/md/_l4v2.h \
309 nsprpub/pr/include/md/_linux.h \
310 nsprpub/pr/include/md/_macos.h \
311 nsprpub/pr/include/md/_netbsd.h \
312 nsprpub/pr/include/md/_openbsd.h \
313 nsprpub/pr/include/md/_os2.h \
314 nsprpub/pr/include/md/_solaris.h \
315 nsprpub/pr/include/md/_unix_errors.h \
316 nsprpub/pr/include/md/_unixos.h \
317 nsprpub/pr/include/md/_pth.h \
318 nsprpub/pr/include/md/prosdep.h \
319 \
320 nsprpub/pr/include/md/_freebsd.cfg \
321 nsprpub/pr/include/md/_linux.cfg \
322 nsprpub/pr/include/md/_darwin.cfg \
323 nsprpub/pr/include/md/_netbsd.cfg \
324 nsprpub/pr/include/md/_openbsd.cfg \
325 nsprpub/pr/include/md/_os2.cfg \
326 nsprpub/pr/include/md/_solaris32.cfg \
327 nsprpub/pr/include/md/_solaris64.cfg \
328 nsprpub/pr/include/md/_l4v2.cfg
329
330NSPRPUB-OBS-HEADERS_INST = $(INST_SDK)/include/xpcom/nsprpub/obsolete
331NSPRPUB-OBS-HEADERS_IFFLAGS = -m 644
332NSPRPUB-OBS-HEADERS_SOURCES = \
333 nsprpub/pr/include/obsolete/pralarm.h \
334 nsprpub/pr/include/obsolete/probslet.h \
335 nsprpub/pr/include/obsolete/protypes.h \
336 nsprpub/pr/include/obsolete/prsem.h
337
338NSPRPUB-PRIV-HEADERS_INST = $(INST_SDK)/include/xpcom/nsprpub/private
339NSPRPUB-PRIV-HEADERS_IFFLAGS = -m 644
340NSPRPUB-PRIV-HEADERS_SOURCES = \
341 nsprpub/pr/include/private/pprio.h \
342 nsprpub/pr/include/private/pprthred.h \
343 nsprpub/pr/include/private/prpriv.h
344
345STRING-HEADERS_INST = $(INST_SDK)/include/xpcom/string
346STRING-HEADERS_IFFLAGS = -m 644
347STRING-HEADERS_SOURCES = \
348 xpcom/string/public/nsAString.h \
349 xpcom/string/public/nsAlgorithm.h \
350 xpcom/string/public/nsCharTraits.h \
351 xpcom/string/public/nsDependentString.h \
352 xpcom/string/public/nsDependentSubstring.h \
353 xpcom/string/public/nsEmbedString.h \
354 xpcom/string/public/nsLiteralString.h \
355 xpcom/string/public/nsObsoleteAString.h \
356 xpcom/string/public/nsPrintfCString.h \
357 xpcom/string/public/nsPromiseFlatString.h \
358 xpcom/string/public/nsReadableUtils.h \
359 xpcom/string/public/nsString.h \
360 xpcom/string/public/nsStringAPI.h \
361 xpcom/string/public/nsStringFwd.h \
362 xpcom/string/public/nsStringIterator.h \
363 xpcom/string/public/nsSubstring.h \
364 xpcom/string/public/nsSubstringTuple.h \
365 xpcom/string/public/nsTAString.h \
366 xpcom/string/public/nsTDependentString.h \
367 xpcom/string/public/nsTDependentSubstring.h \
368 xpcom/string/public/nsTObsoleteAString.h \
369 xpcom/string/public/nsTPromiseFlatString.h \
370 xpcom/string/public/nsTString.h \
371 xpcom/string/public/nsTSubstring.h \
372 xpcom/string/public/nsTSubstringTuple.h \
373 xpcom/string/public/nsUTF8Utils.h \
374 xpcom/string/public/nsXPIDLString.h \
375 xpcom/string/public/string-template-def-char.h \
376 xpcom/string/public/string-template-def-unichar.h \
377 xpcom/string/public/string-template-undef.h
378
379XPCOM-HEADERS_INST = $(INST_SDK)/include/xpcom/xpcom
380XPCOM-HEADERS_IFFLAGS = -m 644
381XPCOM-HEADERS_SOURCES = \
382 xpcom/base/nsAgg.h \
383 xpcom/io/nsAppDirectoryServiceDefs.h \
384 xpcom/ds/nsArray.h \
385 xpcom/ds/nsArrayEnumerator.h \
386 xpcom/ds/nsAtomService.h \
387 xpcom/ds/nsAutoBuffer.h \
388 xpcom/threads/nsAutoLock.h \
389 xpcom/base/nsAutoPtr.h \
390 xpcom/ds/nsBaseHashtable.h \
391 xpcom/ds/nsCOMArray.h \
392 xpcom/glue/nsCOMPtr.h \
393 xpcom/ds/nsCRT.h \
394 xpcom/components/nsCategoryManagerUtils.h \
395 xpcom/ds/nsCheapSets.h \
396 xpcom/ds/nsClassHashtable.h \
397 xpcom/base/nsCom.h \
398 xpcom/components/nsComponentManagerObsolete.h \
399 xpcom/components/nsComponentManagerUtils.h \
400 xpcom/ds/nsCppSharedAllocator.h \
401 xpcom/ds/nsDataHashtable.h \
402 xpcom/glue/nsDebug.h \
403 xpcom/base/nsDebugImpl.h \
404 xpcom/ds/nsDeque.h \
405 xpcom/io/nsDirectoryService.h \
406 xpcom/io/nsDirectoryServiceDefs.h \
407 xpcom/io/nsDirectoryServiceUtils.h \
408 xpcom/ds/nsDoubleHashtable.h \
409 xpcom/ds/nsEnumeratorUtils.h \
410 xpcom/base/nsError.h \
411 xpcom/io/nsEscape.h \
412 xpcom/threads/nsEventQueueUtils.h \
413 xpcom/io/nsFastLoadPtr.h \
414 xpcom/io/nsFastLoadService.h \
415 xpcom/ds/nsFixedSizeAllocator.h \
416 xpcom/glue/nsGenericFactory.h \
417 xpcom/ds/nsHashKeys.h \
418 xpcom/ds/nsHashSets.h \
419 xpcom/ds/nsHashtable.h \
420 xpcom/base/nsIAllocator.h \
421 xpcom/ds/nsIByteBuffer.h \
422 xpcom/base/nsID.h \
423 xpcom/glue/nsIGenericFactory.h \
424 xpcom/base/nsIID.h \
425 xpcom/glue/nsIInterfaceRequestorUtils.h \
426 xpcom/components/nsIServiceManagerObsolete.h \
427 xpcom/components/nsIServiceManagerUtils.h \
428 xpcom/base/nsISupportsBase.h \
429 xpcom/glue/nsISupportsImpl.h \
430 xpcom/base/nsISupportsObsolete.h \
431 xpcom/glue/nsISupportsUtils.h \
432 xpcom/ds/nsIUnicharBuffer.h \
433 xpcom/io/nsIUnicharInputStream.h \
434 xpcom/glue/nsIWeakReferenceUtils.h \
435 xpcom/ds/nsInt64.h \
436 xpcom/ds/nsInterfaceHashtable.h \
437 xpcom/io/nsLinebreakConverter.h \
438 xpcom/io/nsLocalFile.h \
439 xpcom/io/nsLocalFileUnix.h \
440 xpcom/io/nsLocalFileOS2.h \
441 xpcom/io/nsLocalFileOSX.h \
442 xpcom/glue/nsMemory.h \
443 xpcom/components/nsModule.h \
444 xpcom/io/nsMultiplexInputStream.h \
445 xpcom/io/nsNativeCharsetUtils.h \
446 xpcom/components/nsNativeComponentLoader.h \
447 xpcom/ds/nsObserverService.h \
448 xpcom/components/nsObsoleteModuleLoading.h \
449 xpcom/threads/nsProcess.h \
450 xpcom/proxy/public/nsProxiedService.h \
451 xpcom/proxy/public/nsProxyEvent.h \
452 xpcom/proxy/public/nsProxyRelease.h \
453 xpcom/ds/nsQuickSort.h \
454 xpcom/ds/nsRecyclingAllocator.h \
455 xpcom/ds/nsRefPtrHashtable.h \
456 xpcom/io/nsScriptableInputStream.h \
457 xpcom/ds/nsStaticAtom.h \
458 xpcom/components/nsStaticComponent.h \
459 xpcom/ds/nsStaticNameTable.h \
460 xpcom/io/nsStorageStream.h \
461 xpcom/io/nsStreamUtils.h \
462 xpcom/ds/nsStringEnumerator.h \
463 xpcom/io/nsStringIO.h \
464 xpcom/io/nsStringStream.h \
465 xpcom/ds/nsSupportsArray.h \
466 xpcom/ds/nsSupportsPrimitives.h \
467 xpcom/ds/nsTHashtable.h \
468 xpcom/ds/nsTextFormatter.h \
469 xpcom/ds/nsTime.h \
470 xpcom/glue/nsTraceRefcnt.h \
471 xpcom/base/nsTraceRefcntImpl.h \
472 xpcom/ds/nsUnitConversion.h \
473 xpcom/ds/nsValueArray.h \
474 xpcom/ds/nsVariant.h \
475 xpcom/ds/nsVoidArray.h \
476 xpcom/base/nsWeakPtr.h \
477 xpcom/glue/nsWeakReference.h \
478 xpcom/build/nsXPCOM.h \
479 xpcom/build/nsXPCOMCID.h \
480 xpcom/glue/standalone/nsXPCOMGlue.h \
481 xpcom/base/nscore.h \
482 xpcom/ds/pldhash.h \
483 xpcom/threads/plevent.h \
484 xpcom/components/xcDll.h \
485 xpcom/typelib/xpt/public/xpt_arena.h \
486 xpcom/typelib/xpt/public/xpt_struct.h \
487 xpcom/typelib/xpt/public/xpt_xdr.h \
488 xpcom/reflect/xptcall/public/xptcall.h \
489 xpcom/reflect/xptcall/public/xptcstubsdecl.inc \
490 xpcom/reflect/xptcall/public/xptcstubsdef.inc \
491 xpcom/reflect/xptinfo/public/xptinfo.h \
492 xpcom-config.h
493
494IPCD-HEADERS_INST = $(INST_SDK)/include/xpcom/ipcd
495IPCD-HEADERS_IFFLAGS = -m 644
496IPCD-HEADERS_SOURCES = \
497 ipc/ipcd/client/public/ipcCID.h \
498 ipc/ipcd/extensions/lock/public/ipcLockCID.h \
499 ipc/ipcd/util/public/ipcMessageReader.h \
500 ipc/ipcd/util/public/ipcMessageWriter.h \
501 ipc/ipcd/daemon/public/ipcModule.h \
502 ipc/ipcd/daemon/public/ipcModuleUtil.h \
503 ipc/ipcd/client/public/ipcdclient.h
504
505
506#
507# The IDL compiler.
508#
509# We build it statically because we cannot rely on additional .a files
510# like in the original build
511#
512xpidl_TEMPLATE = XPCOMBLDPROG
513xpidl_DEFS = EXPORT_XPT_API
514## @todo This assumes HOST == TARGET.
515xpidl_INST = $(INST_SDK)/bin/
516xpidl_SOURCES = \
517 xpcom/typelib/xpidl/xpidl.c \
518 xpcom/typelib/xpidl/xpidl_idl.c \
519 xpcom/typelib/xpidl/xpidl_util.c \
520 xpcom/typelib/xpidl/xpidl_header.c \
521 xpcom/typelib/xpidl/xpidl_typelib.c \
522 xpcom/typelib/xpidl/xpidl_doc.c \
523 xpcom/typelib/xpidl/xpidl_java.c \
524 xpcom/typelib/xpt/src/xpt_arena.c \
525 xpcom/typelib/xpt/src/xpt_struct.c \
526 xpcom/typelib/xpt/src/xpt_xdr.c
527
528# We do these ONCE.
529libIDL_config_cflags := $(shell $(VBOX_LIBIDL_CONFIG) --cflags)
530libIDL_config_libs := $(shell $(VBOX_LIBIDL_CONFIG) --libs)
531xpidl_CFLAGS = \
532 $(libIDL_config_cflags)
533xpidl_LDFLAGS = \
534 $(libIDL_config_libs)
535
536#
537# The XPT linker.
538#
539xpt_link_TEMPLATE = XPCOMBLDPROG
540xpt_link_SOURCES = \
541 xpcom/typelib/xpt/tools/xpt_link.c \
542 xpcom/typelib/xpt/src/xpt_arena.c \
543 xpcom/typelib/xpt/src/xpt_struct.c \
544 xpcom/typelib/xpt/src/xpt_xdr.c
545
546
547#
548# The NSPR Library.
549#
550VBox-xpcom-nspr_TEMPLATE = XPCOM
551VBox-xpcom-nspr_NOINST = 1
552VBox-xpcom-nspr_DEFS = \
553 _NSPR_BUILD_ \
554 HAVE_LCHOWN=1 \
555 HAVE_STRERROR=1 \
556 FORCE_PR_LOG
557VBox-xpcom-nspr_DEFS.darwin = \
558 HAVE_BSD_FLOCK=1 \
559 _PR_PTHREADS
560VBox-xpcom-nspr_DEFS.freebsd = \
561 HAVE_CVAR_BUILT_ON_SEM \
562 _PR_PTHREADS
563# FIXME: LINUX should be defined by _linux.cfg
564VBox-xpcom-nspr_DEFS.linux = \
565 LINUX=1 \
566 _POSIX_SOURCE=1 \
567 _BSD_SOURCE=1 \
568 _SVID_SOURCE=1 \
569 _REENTRANT=1 \
570 _LARGEFILE64_SOURCE=1 \
571 HAVE_FCNTL_FILE_LOCKING=1 \
572 HAVE_CVAR_BUILT_ON_SEM \
573 _PR_PTHREADS
574# _BSD_SOURCE is here to keep the Glibc header files happy and make them include the right things
575# FIXME: L4 should be defined by _linux.cfg
576VBox-xpcom-nspr_DEFS.l4 = \
577 L4=1 \
578 _REENTRANT=1 \
579 _LARGEFILE64_SOURCE=1 \
580 _POSIX_SOURCE=1 \
581 _BSD_SOURCE=1 \
582 HAVE_FCNTL_FILE_LOCKING=1 \
583 HAVE_CVAR_BUILT_ON_SEM
584VBox-xpcom-nspr_DEFS.netbsd = \
585 _PR_PTHREADS
586VBox-xpcom-nspr_DEFS.openbsd = \
587 _PR_PTHREADS
588VBox-xpcom-nspr_DEFS.os2 =
589VBox-xpcom-nspr_DEFS.solaris = \
590 _PR_PTHREADS
591VBox-xpcom-nspr_INCS = \
592 nsprpub/pr/include/private \
593 $(PATH_TARGET)/VBox-xpcom-nspr
594
595VBox-xpcom-nspr_SOURCES = \
596 nsprpub/pr/src/io/prfdcach.c \
597 nsprpub/pr/src/io/prmwait.c \
598 nsprpub/pr/src/io/priometh.c \
599 nsprpub/pr/src/io/pripv6.c \
600 nsprpub/pr/src/io/prmapopt.c \
601 nsprpub/pr/src/io/prlayer.c \
602 nsprpub/pr/src/io/prlog.c \
603 nsprpub/pr/src/io/prmmap.c \
604 nsprpub/pr/src/io/prpolevt.c \
605 nsprpub/pr/src/io/prprf.c \
606 nsprpub/pr/src/io/prscanf.c \
607 nsprpub/pr/src/io/prstdio.c \
608 nsprpub/pr/src/linking/prlink.c \
609 nsprpub/pr/src/malloc/prmalloc.c \
610 nsprpub/pr/src/malloc/prmem.c \
611 nsprpub/pr/src/md/prosdep.c \
612 nsprpub/pr/src/memory/prseg.c \
613 nsprpub/pr/src/memory/prshm.c \
614 nsprpub/pr/src/memory/prshma.c \
615 nsprpub/pr/src/misc/pralarm.c \
616 nsprpub/pr/src/misc/pratom.c \
617 nsprpub/pr/src/misc/prcountr.c \
618 nsprpub/pr/src/misc/prdtoa.c \
619 nsprpub/pr/src/misc/prenv.c \
620 nsprpub/pr/src/misc/prerr.c \
621 nsprpub/pr/src/misc/prerror.c \
622 nsprpub/pr/src/misc/prerrortable.c \
623 nsprpub/pr/src/misc/prinit.c \
624 nsprpub/pr/src/misc/prinrval.c \
625 nsprpub/pr/src/misc/pripc.c \
626 nsprpub/pr/src/misc/prlog2.c \
627 nsprpub/pr/src/misc/prlong.c \
628 nsprpub/pr/src/misc/prnetdb.c \
629 nsprpub/pr/src/misc/prolock.c \
630 nsprpub/pr/src/misc/prrng.c \
631 nsprpub/pr/src/misc/prsystem.c \
632 nsprpub/pr/src/misc/prtime.c \
633 nsprpub/pr/src/misc/prthinfo.c \
634 nsprpub/pr/src/misc/prtpool.c \
635 nsprpub/pr/src/misc/prtrace.c \
636 nsprpub/pr/src/threads/prcmon.c \
637 nsprpub/pr/src/threads/prrwlock.c \
638 nsprpub/pr/src/threads/prtpd.c \
639 nsprpub/pr/src/prvrsion.c \
640 nsprpub/lib/ds/plarena.c \
641 nsprpub/lib/ds/plhash.c \
642 nsprpub/lib/libc/src/strlen.c \
643 nsprpub/lib/libc/src/strcpy.c \
644 nsprpub/lib/libc/src/strdup.c \
645 nsprpub/lib/libc/src/strcat.c \
646 nsprpub/lib/libc/src/strcmp.c \
647 nsprpub/lib/libc/src/strccmp.c \
648 nsprpub/lib/libc/src/strchr.c \
649 nsprpub/lib/libc/src/strpbrk.c \
650 nsprpub/lib/libc/src/strstr.c \
651 nsprpub/lib/libc/src/strcstr.c \
652 nsprpub/lib/libc/src/strtok.c \
653 nsprpub/lib/libc/src/base64.c \
654 nsprpub/lib/libc/src/plerror.c \
655 nsprpub/lib/libc/src/plgetopt.c
656
657VBox-xpcom-nspr_SOURCES.darwin = \
658 nsprpub/pr/src/md/unix/unix.c \
659 nsprpub/pr/src/md/unix/unix_errors.c \
660 nsprpub/pr/src/md/unix/uxproces.c \
661 nsprpub/pr/src/md/unix/uxrng.c \
662 nsprpub/pr/src/md/unix/uxshm.c \
663 nsprpub/pr/src/md/unix/uxwrap.c \
664 nsprpub/pr/src/md/unix/darwin.c \
665 nsprpub/pr/src/pthreads/ptio.c \
666 nsprpub/pr/src/pthreads/ptsynch.c \
667 nsprpub/pr/src/pthreads/ptthread.c \
668 nsprpub/pr/src/pthreads/ptmisc.c
669VBox-xpcom-nspr_SOURCES.darwin.x86 = nsprpub/pr/src/md/unix/os_Darwin_x86.s
670
671VBox-xpcom-nspr_SOURCES.l4 = \
672 nsprpub/pr/src/io/prfile.c /* why not for Linux? */ \
673 nsprpub/pr/src/io/prio.c /* "" "" "" "" */ \
674 nsprpub/pr/src/io/prsocket.c \
675 nsprpub/pr/src/md/unix/unix.c \
676 nsprpub/pr/src/md/unix/unix_errors.c \
677 nsprpub/pr/src/md/unix/uxpoll.c \
678 nsprpub/pr/src/md/unix/uxproces.c \
679 nsprpub/pr/src/md/unix/uxrng.c \
680 nsprpub/pr/src/md/unix/uxshm.c \
681 nsprpub/pr/src/md/unix/uxwrap.c \
682 nsprpub/pr/src/md/unix/l4env.c \
683 nsprpub/pr/src/threads/prcthr.c \
684 nsprpub/pr/src/threads/prmon.c \
685 nsprpub/pr/src/threads/combined/prucpu.c \
686 nsprpub/pr/src/threads/combined/prucv.c \
687 nsprpub/pr/src/threads/combined/prulock.c \
688 nsprpub/pr/src/threads/combined/prustack.c \
689 nsprpub/pr/src/threads/combined/pruthr.c
690# nsprpub/pr/src/md/l4env/prnetdb.c \
691# nsprpub/pr/src/md/l4env/threads.c
692VBox-xpcom-nspr_SOURCES.l4.x86 = nsprpub/pr/src/md/unix/os_Linux_x86.s
693VBox-xpcom-nspr_SOURCES.l4.amd64 = nsprpub/pr/src/md/unix/os_Linux_x86_64.s
694
695VBox-xpcom-nspr_SOURCES.linux = \
696 nsprpub/pr/src/md/unix/unix.c \
697 nsprpub/pr/src/md/unix/unix_errors.c \
698 nsprpub/pr/src/md/unix/uxproces.c \
699 nsprpub/pr/src/md/unix/uxrng.c \
700 nsprpub/pr/src/md/unix/uxshm.c \
701 nsprpub/pr/src/md/unix/uxwrap.c \
702 nsprpub/pr/src/md/unix/linux.c \
703 nsprpub/pr/src/pthreads/ptio.c \
704 nsprpub/pr/src/pthreads/ptsynch.c \
705 nsprpub/pr/src/pthreads/ptthread.c \
706 nsprpub/pr/src/pthreads/ptmisc.c
707VBox-xpcom-nspr_SOURCES.linux.x86 = nsprpub/pr/src/md/unix/os_Linux_x86.s
708VBox-xpcom-nspr_SOURCES.linux.amd64 = nsprpub/pr/src/md/unix/os_Linux_x86_64.s
709
710
711nsprpub/pr/src/prvrsion.c_DEPS = $(PATH_VBox-xpcom-nspr)/_pr_bld.h
712nsprpub/lib/ds/plvrsion.c_DEPS = $(PATH_VBox-xpcom-nspr)/_pl_bld.h
713
714
715VBox-xpcom-typelib_TEMPLATE = XPCOM
716VBox-xpcom-typelib_NOINST = 1
717VBox-xpcom-typelib_SOURCES = \
718 xpcom/typelib/xpt/src/xpt_arena.c \
719 xpcom/typelib/xpt/src/xpt_struct.c \
720 xpcom/typelib/xpt/src/xpt_xdr.c
721
722VBox-xpcom-string_TEMPLATE = XPCOM
723VBox-xpcom-string_NOINST = 1
724VBox-xpcom-string_SOURCES = \
725 xpcom/string/src/nsAString.cpp \
726 xpcom/string/src/nsDependentSubstring.cpp \
727 xpcom/string/src/nsObsoleteAStringThunk.cpp \
728 xpcom/string/src/nsPrintfCString.cpp \
729 xpcom/string/src/nsPromiseFlatString.cpp \
730 xpcom/string/src/nsReadableUtils.cpp \
731 xpcom/string/src/nsSubstring.cpp \
732 xpcom/string/src/nsSubstringTuple.cpp \
733 xpcom/string/src/nsString.cpp \
734 xpcom/string/src/nsStringComparator.cpp \
735 xpcom/string/src/nsStringObsolete.cpp
736
737VBox-xpcom-base_TEMPLATE = XPCOM
738VBox-xpcom-base_NOINST = 1
739VBox-xpcom-base_SOURCES = \
740 xpcom/base/nsAllocator.cpp \
741 xpcom/base/nsConsoleMessage.cpp \
742 xpcom/base/nsConsoleService.cpp \
743 xpcom/base/nsDebugImpl.cpp \
744 xpcom/base/nsErrorService.cpp \
745 xpcom/base/nsExceptionService.cpp \
746 xpcom/base/nsID.cpp \
747 xpcom/base/nsMemoryImpl.cpp \
748 xpcom/base/nsTraceRefcntImpl.cpp \
749 xpcom/base/nsStackFrameUnix.cpp
750
751VBox-xpcom-ds_TEMPLATE = XPCOM
752VBox-xpcom-ds_NOINST = 1
753VBox-xpcom-ds_SOURCES = \
754 xpcom/ds/pldhash.c \
755 xpcom/ds/nsAtomTable.cpp \
756 xpcom/ds/nsAtomService.cpp \
757 xpcom/ds/nsByteBuffer.cpp \
758 xpcom/ds/nsCheapSets.cpp \
759 xpcom/ds/nsCRT.cpp \
760 xpcom/ds/nsDeque.cpp \
761 xpcom/ds/nsEmptyEnumerator.cpp \
762 xpcom/ds/nsEnumeratorUtils.cpp \
763 xpcom/ds/nsFixedSizeAllocator.cpp \
764 xpcom/ds/nsHashSets.cpp \
765 xpcom/ds/nsHashtable.cpp \
766 xpcom/ds/nsObserverList.cpp \
767 xpcom/ds/nsObserverService.cpp \
768 xpcom/ds/nsProperties.cpp \
769 xpcom/ds/nsPersistentProperties.cpp \
770 xpcom/ds/nsQuickSort.cpp \
771 xpcom/ds/nsRecyclingAllocator.cpp \
772 xpcom/ds/nsStaticNameTable.cpp \
773 xpcom/ds/nsStringEnumerator.cpp \
774 xpcom/ds/nsSupportsArray.cpp \
775 xpcom/ds/nsSupportsArrayEnumerator.cpp \
776 xpcom/ds/nsSupportsPrimitives.cpp \
777 xpcom/ds/nsTHashtable.cpp \
778 xpcom/ds/nsUnicharBuffer.cpp \
779 xpcom/ds/nsVariant.cpp \
780 xpcom/ds/nsVoidArray.cpp \
781 xpcom/ds/nsTextFormatter.cpp \
782 xpcom/ds/nsTimelineService.cpp \
783 xpcom/ds/nsValueArray.cpp \
784 xpcom/ds/nsCOMArray.cpp \
785 xpcom/ds/nsArray.cpp \
786 xpcom/ds/nsArrayEnumerator.cpp
787# xpcom/ds/nsHashPropertyBag.cpp
788
789# @todo what about MOZ_USER_DIR?
790VBox-xpcom-io_TEMPLATE = XPCOM
791VBox-xpcom-io_NOINST = 1
792VBox-xpcom-io_DEFS = MOZ_USER_DIR=\".mozilla\"
793VBox-xpcom-io_INCS.darwin = \
794 xpcom/MoreFiles
795VBox-xpcom-io_SOURCES = \
796 xpcom/io/nsAppFileLocationProvider.cpp \
797 xpcom/io/nsBinaryStream.cpp \
798 xpcom/io/nsByteArrayInputStream.cpp \
799 xpcom/io/nsDirectoryService.cpp \
800 xpcom/io/nsEscape.cpp \
801 xpcom/io/nsFastLoadFile.cpp \
802 xpcom/io/nsFastLoadService.cpp \
803 xpcom/io/nsInputStreamTee.cpp \
804 xpcom/io/nsLinebreakConverter.cpp \
805 xpcom/io/nsLocalFileCommon.cpp \
806 xpcom/io/nsMultiplexInputStream.cpp \
807 xpcom/io/nsPipe3.cpp \
808 xpcom/io/nsStreamUtils.cpp \
809 xpcom/io/nsScriptableInputStream.cpp \
810 xpcom/io/nsSegmentedBuffer.cpp \
811 xpcom/io/SpecialSystemDirectory.cpp \
812 xpcom/io/nsStorageStream.cpp \
813 xpcom/io/nsStringStream.cpp \
814 xpcom/io/nsUnicharInputStream.cpp \
815 xpcom/io/nsNativeCharsetUtils.cpp
816VBox-xpcom-io_SOURCES.darwin = \
817 xpcom/io/nsLocalFileOSX.cpp \
818 xpcom/MoreFiles/FSCopyObject.c \
819 xpcom/MoreFiles/MoreFilesX.c
820VBox-xpcom-io_SOURCES.l4 = \
821 xpcom/io/nsLocalFileL4.cpp
822ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),)
823VBox-xpcom-io_SOURCES += \
824 xpcom/io/nsLocalFileUnix.cpp
825endif
826VBox-xpcom-io_SOURCES.os2 = \
827 xpcom/io/nsLocalFileOS2.cpp
828
829VBox-xpcom-components_TEMPLATE = XPCOM
830VBox-xpcom-components_NOINST = 1
831VBox-xpcom-components_DEFS = EXPORT_XPTI_API
832VBox-xpcom-components_SOURCES = \
833 xpcom/components/nsCategoryManager.cpp \
834 xpcom/components/nsComponentManager.cpp \
835 xpcom/components/nsComponentManagerObsolete.cpp \
836 xpcom/components/nsNativeComponentLoader.cpp \
837 xpcom/components/nsServiceManagerObsolete.cpp \
838 xpcom/components/xcDll.cpp \
839 xpcom/components/nsStaticComponentLoader.cpp
840
841VBox-xpcom-threads_TEMPLATE = XPCOM
842VBox-xpcom-threads_NOINST = 1
843VBox-xpcom-threads_SOURCES = \
844 xpcom/threads/plevent.c \
845 xpcom/threads/nsAutoLock.cpp \
846 xpcom/threads/nsEnvironment.cpp \
847 xpcom/threads/nsEventQueue.cpp \
848 xpcom/threads/nsEventQueueService.cpp \
849 xpcom/threads/nsThread.cpp \
850 xpcom/threads/nsTimerImpl.cpp \
851 xpcom/threads/nsProcessCommon.cpp \
852 xpcom/threads/TimerThread.cpp
853
854VBox-xpcom-xptinfo_TEMPLATE = XPCOM
855VBox-xpcom-xptinfo_NOINST = 1
856VBox-xpcom-xptinfo_DEFS = EXPORT_XPTI_API
857VBox-xpcom-xptinfo_SOURCES = \
858 xpcom/reflect/xptinfo/src/xptiFile.cpp \
859 xpcom/reflect/xptinfo/src/xptiInterfaceInfo.cpp \
860 xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp \
861 xpcom/reflect/xptinfo/src/xptiManifest.cpp \
862 xpcom/reflect/xptinfo/src/xptiMisc.cpp \
863 xpcom/reflect/xptinfo/src/xptiTypelibGuts.cpp \
864 xpcom/reflect/xptinfo/src/xptiWorkingSet.cpp \
865 xpcom/reflect/xptinfo/src/xptiZipItem.cpp \
866 xpcom/reflect/xptinfo/src/xptiZipLoader.cpp
867
868
869VBox-xpcom-xptcall_TEMPLATE = XPCOM
870VBox-xpcom-xptcall_NOINST = 1
871VBox-xpcom-xptcall_DEFS = EXPORT_XPTC_API
872VBox-xpcom-xptcall_DEFS.darwin = KEEP_STACK_16_BYTE_ALIGNED
873VBox-xpcom-xptcall_DEFS.l4 = L4
874VBox-xpcom-xptcall_SOURCES = xpcom/reflect/xptcall/src/xptcall.cpp
875VBox-xpcom-xptcall_SOURCES.darwin.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_unixish_x86.cpp \
876 xpcom/reflect/xptcall/src/md/unix/xptcstubs_unixish_x86.cpp
877VBox-xpcom-xptcall_SOURCES.linux.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_gcc_x86_unix.cpp \
878 xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp
879VBox-xpcom-xptcall_SOURCES.linux.amd64 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_linux.cpp \
880 xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp
881
882VBox-xpcom-proxy_TEMPLATE = XPCOM
883VBox-xpcom-proxy_NOINST = 1
884VBox-xpcom-proxy_SOURCES = xpcom/proxy/src/nsProxyEvent.cpp \
885 xpcom/proxy/src/nsProxyEventClass.cpp \
886 xpcom/proxy/src/nsProxyEventObject.cpp \
887 xpcom/proxy/src/nsProxyObjectManager.cpp \
888 xpcom/proxy/src/nsProxyRelease.cpp
889
890# glue library which all client apps will link with
891VBoxXPCOMGlue_TEMPLATE = XPCOM
892VBoxXPCOMGlue_DEFS = XPCOM_GLUE
893VBoxXPCOMGlue_SOURCES = xpcom/glue/nsCOMPtr.cpp \
894 xpcom/glue/nsComponentManagerUtils.cpp \
895 xpcom/glue/nsDebug.cpp \
896 xpcom/glue/nsGenericFactory.cpp \
897 xpcom/glue/nsIInterfaceRequestorUtils.cpp \
898 xpcom/glue/nsMemory.cpp \
899 xpcom/glue/nsTraceRefcnt.cpp \
900 xpcom/glue/nsWeakReference.cpp \
901 xpcom/glue/standalone/nsXPCOMGlue.cpp \
902 xpcom/glue/standalone/nsGREDirServiceProvider.cpp
903VBoxXPCOMGlue_INST = lib/ $(INST_SDK)/lib/
904
905
906#
907# The VBoxXPCOM Shared Object, assembling all lib files.
908#
909VBoxXPCOM_TEMPLATE = XPCOM
910VBoxXPCOM_DEFS = BUILD_DCONNECT="1" _IMPL_NS_COM
911VBoxXPCOM_SOURCES = \
912 xpcom/glue/nsCOMPtr.cpp \
913 xpcom/glue/nsComponentManagerUtils.cpp \
914 xpcom/glue/nsDebug.cpp \
915 xpcom/glue/nsGenericFactory.cpp \
916 xpcom/glue/nsIInterfaceRequestorUtils.cpp \
917 xpcom/glue/nsMemory.cpp \
918 xpcom/glue/nsTraceRefcnt.cpp \
919 xpcom/glue/nsWeakReference.cpp \
920 xpcom/build/nsXPComInit.cpp \
921 xpcom/build/nsStringAPI.cpp
922VBoxXPCOM_SOURCES.darwin = \
923 darwindeps.cpp
924VBoxXPCOM_LIBS = \
925 $(TARGET_VBox-xpcom-typelib) \
926 $(TARGET_VBox-xpcom-string) \
927 $(TARGET_VBox-xpcom-base) \
928 $(TARGET_VBox-xpcom-ds) \
929 $(TARGET_VBox-xpcom-io) \
930 $(TARGET_VBox-xpcom-components) \
931 $(TARGET_VBox-xpcom-threads) \
932 $(TARGET_VBox-xpcom-xptinfo) \
933 $(TARGET_VBox-xpcom-xptcall) \
934 $(TARGET_VBox-xpcom-proxy) \
935 $(TARGET_VBox-xpcom-nspr)
936
937VBoxXPCOM_LDFLAGS.linux = -Wl,--whole-archive \
938 $(TARGET_VBox-xpcom-typelib) \
939 $(TARGET_VBox-xpcom-string) \
940 $(TARGET_VBox-xpcom-base) \
941 $(TARGET_VBox-xpcom-ds) \
942 $(TARGET_VBox-xpcom-io) \
943 $(TARGET_VBox-xpcom-components) \
944 $(TARGET_VBox-xpcom-threads) \
945 $(TARGET_VBox-xpcom-xptinfo) \
946 $(TARGET_VBox-xpcom-xptcall) \
947 $(TARGET_VBox-xpcom-proxy) \
948 $(TARGET_VBox-xpcom-nspr) \
949 -Wl,--no-whole-archive
950#VBoxXPCOM_LIBS.l4 = $(L4_LIBDIR)/libxpcomstubs.a $(L4_LIBDIR)/../libuc_c++.a \
951# $(VBOX_PATH_L4_GCC3_INSTALL)/libsupc++.a $(VBOX_PATH_L4_GCC3_INSTALL)/libgcc_eh.a
952# EF heap
953#VBoxXPCOM_LIBS += $(LIB_RUNTIME_EF)
954#VBoxXPCOM_LDFLAGS = -Wl,--whole-archive $(VBoxXPCOM_LIBS) -Wl,--no-whole-archive $(LIB_RUNTIME)
955VBoxXPCOM_LDFLAGS.darwin = -install_name @executable_path/VBoxXPCOM.dylib
956
957ifdef VBOX_IPC_RELEASE_LOG
958IPC_LOGGING = 1
959else ifneq ($(BUILD_TYPE),release)
960IPC_LOGGING = 1
961endif
962
963TEMPLATE_XPCOMIPC = XPCOM IPC libraries
964TEMPLATE_XPCOMIPC_EXTENDS = XPCOM
965TEMPLATE_XPCOMIPC_DEFS = $(TEMPLATE_XPCOM_DEFS) BUILD_DCONNECT="1"
966ifdef IPC_LOGGING
967 TEMPLATE_XPCOMIPC_DEFS += IN_RING3 IPC_LOGGING
968 TEMPLATE_XPCOMIPC_LIBS = $(TEMPLATE_XPCOM_LIBS) $(LIB_RUNTIME)
969endif
970TEMPLATE_XPCOMIPC_LIBS.darwin = $(TARGET_VBoxXPCOM)
971
972TEMPLATE_XPCOMIPCEXE = XPCOM IPC executables
973TEMPLATE_XPCOMIPCEXE_EXTENDS = XPCOMEXE
974TEMPLATE_XPCOMIPCEXE_DEFS = $(TEMPLATE_XPCOMEXE_DEFS) BUILD_DCONNECT="1"
975ifdef IPC_LOGGING
976 TEMPLATE_XPCOMIPCEXE_DEFS += IN_RING3 IPC_LOGGING
977 TEMPLATE_XPCOMIPCEXE_LIBS = $(TEMPLATE_XPCOMEXE_LIBS) $(LIB_RUNTIME)
978endif
979
980VBox-xpcom-ipcutils_TEMPLATE = XPCOMIPC
981VBox-xpcom-ipcutils_NOINST = 1
982VBox-xpcom-ipcutils_SOURCES = \
983 ipc/ipcd/util/src/ipcMessageReader.cpp \
984 ipc/ipcd/util/src/ipcMessageWriter.cpp
985
986VBox-xpcom-ipcshared_TEMPLATE = XPCOMIPC
987VBox-xpcom-ipcshared_NOINST = 1
988VBox-xpcom-ipcshared_SOURCES = \
989 ipc/ipcd/shared/src/ipcLog.cpp \
990 ipc/ipcd/shared/src/ipcConfig.cpp \
991 ipc/ipcd/shared/src/ipcMessage.cpp \
992 ipc/ipcd/shared/src/ipcMessagePrimitives.cpp \
993 ipc/ipcd/shared/src/ipcStringList.cpp \
994 ipc/ipcd/shared/src/ipcIDList.cpp \
995 ipc/ipcd/shared/src/ipcm.cpp
996
997VBox-xpcom-ipcdlock_TEMPLATE = XPCOMIPC
998VBox-xpcom-ipcdlock_NOINST = 1
999VBox-xpcom-ipcdlock_SOURCES = \
1000 ipc/ipcd/extensions/lock/src/ipcLockProtocol.cpp \
1001 ipc/ipcd/extensions/lock/src/ipcLockService.cpp
1002
1003VBox-xpcom-ipctransmgr_TEMPLATE = XPCOMIPC
1004VBox-xpcom-ipctransmgr_NOINST = 1
1005VBox-xpcom-ipctransmgr_SOURCES = \
1006 ipc/ipcd/extensions/transmngr/src/tmTransactionService.cpp
1007
1008VBox-xcpom-ipctmgrcom_TEMPLATE = XPCOMIPC
1009VBox-xcpom-ipctmgrcom_NOINST = 1
1010VBox-xcpom-ipctmgrcom_SOURCES = \
1011 ipc/ipcd/extensions/transmngr/common/tmTransaction.cpp \
1012 ipc/ipcd/extensions/transmngr/common/tmVector.cpp
1013
1014
1015# DCONNECT client shared object
1016VBoxXPCOMIPCC_TEMPLATE = XPCOMIPC
1017ifneq ($(BUILD_TARGET),linux)
1018VBoxXPCOMIPCC_INST = $(INST_BIN)components/
1019endif
1020VBoxXPCOMIPCC_DEFS = HAVE_DEPENDENT_LIBS
1021VBoxXPCOMIPCC_SOURCES = \
1022 ipc/ipcd/client/src/ipcdclient.cpp \
1023 ipc/ipcd/client/src/ipcService.cpp \
1024 ipc/ipcd/client/src/ipcModuleFactory.cpp \
1025 ipc/ipcd/client/src/ipcConnectionUnix.cpp \
1026 ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp
1027VBoxXPCOMIPCC_LDFLAGS.darwin = -install_name @executable_path/components/VBoxXPCOMIPCC.dylib
1028VBoxXPCOMIPCC_LIBS = \
1029 $(TARGET_VBox-xpcom-ipcutils) \
1030 $(TARGET_VBox-xpcom-ipcshared) \
1031 $(TARGET_VBox-xpcom-ipcdlock) \
1032 $(TARGET_VBox-xpcom-ipctransmgr) \
1033 $(TARGET_VBox-xcpom-ipctmgrcom)
1034# EF
1035#VBoxXPCOMIPCC_LIBS += $(LIB_RUNTIME)
1036
1037# DCONNECT daemon executable
1038VBoxXPCOMIPCD_TEMPLATE = XPCOMIPCEXE
1039VBoxXPCOMIPCD_SOURCES = \
1040 ipc/ipcd/daemon/src/ipcd.cpp \
1041 ipc/ipcd/daemon/src/ipcClient.cpp \
1042 ipc/ipcd/daemon/src/ipcModuleReg.cpp \
1043 ipc/ipcd/daemon/src/ipcCommandModule.cpp \
1044 ipc/ipcd/daemon/src/ipcdUnix.cpp
1045
1046#
1047# testcases
1048#
1049tstnsIFileEnumerator_TEMPLATE = XPCOMEXE
1050tstnsIFileEnumerator_SOURCES = xpcom/tests/nsIFileEnumerator.cpp
1051tstnsIFileTest_TEMPLATE = XPCOMEXE
1052tstnsIFileTest_SOURCES = xpcom/tests/nsIFileTest.cpp
1053tstTestArray_TEMPLATE = XPCOMEXE
1054tstTestArray_SOURCES = xpcom/tests/TestArray.cpp
1055tstTestAtoms_TEMPLATE = XPCOMEXE
1056tstTestAtoms_SOURCES = xpcom/tests/TestAtoms.cpp
1057tstTestAutoLock_TEMPLATE = XPCOMEXE
1058tstTestAutoLock_SOURCES = xpcom/tests/TestAutoLock.cpp
1059tstTestCallTemplates_TEMPLATE = XPCOMEXE
1060tstTestCallTemplates_SOURCES = xpcom/tests/TestCallTemplates.cpp
1061tstTestCOMPtr_TEMPLATE = XPCOMEXE
1062tstTestCOMPtr_SOURCES = xpcom/tests/TestCOMPtr.cpp
1063tstTestCOMPtrEq_TEMPLATE = XPCOMEXE
1064tstTestCOMPtrEq_SOURCES = xpcom/tests/TestCOMPtrEq.cpp
1065tstTestCRT_TEMPLATE = XPCOMEXE
1066tstTestCRT_SOURCES = xpcom/tests/TestCRT.cpp
1067tstTestFactory_TEMPLATE = XPCOMEXE
1068tstTestFactory_SOURCES = xpcom/tests/TestFactory.cpp
1069tstTestHashtables_TEMPLATE = XPCOMEXE
1070tstTestHashtables_SOURCES = xpcom/tests/TestHashtables.cpp
1071tstTestID_TEMPLATE = XPCOMEXE
1072tstTestID_SOURCES = xpcom/tests/TestID.cpp
1073tstTestObserverService_TEMPLATE= XPCOMEXE
1074tstTestObserverService_SOURCES = xpcom/tests/TestObserverService.cpp
1075tstTestPermanentAtoms_TEMPLATE = XPCOMEXE
1076tstTestPermanentAtoms_SOURCES = xpcom/tests/TestPermanentAtoms.cpp
1077tstTestPipes_TEMPLATE = XPCOMEXE
1078tstTestPipes_SOURCES = xpcom/tests/TestPipes.cpp
1079tstTestServMgr_TEMPLATE = XPCOMEXE
1080tstTestServMgr_SOURCES = xpcom/tests/TestServMgr.cpp
1081tstTestServMgr_INCS = xpcom/tests/services
1082tstTestThreads_TEMPLATE = XPCOMEXE
1083tstTestThreads_SOURCES = xpcom/tests/TestThreads.cpp
1084tstTestXPIDLString_TEMPLATE = XPCOMEXE
1085tstTestXPIDLString_SOURCES = xpcom/tests/TestXPIDLString.cpp
1086tstTestDeque_TEMPLATE = XPCOMEXE
1087tstTestDeque_SOURCES = xpcom/tests/TestDeque.cpp
1088tstTestAutoPtr_TEMPLATE = XPCOMEXE
1089tstTestAutoPtr_SOURCES = xpcom/tests/TestAutoPtr.cpp
1090tstTestMinStringAPI_TEMPLATE = XPCOMEXE
1091tstTestMinStringAPI_SOURCES = xpcom/tests/TestMinStringAPI.cpp
1092tstTestStrings_TEMPLATE = XPCOMEXE
1093tstTestStrings_SOURCES = xpcom/tests/TestStrings.cpp
1094tstPrimitiveTest_TEMPLATE = XPCOMEXE
1095tstPrimitiveTest_SOURCES = xpcom/typelib/xpt/tests/PrimitiveTest.c
1096tstSimpleTypeLib_TEMPLATE = XPCOMEXE
1097tstSimpleTypeLib_SOURCES = xpcom/typelib/xpt/tests/SimpleTypeLib.c
1098tstXptDump_TEMPLATE = XPCOMEXE
1099tstXptDump_SOURCES = xpcom/typelib/xpt/tools/xpt_dump.c
1100tstXptLink_TEMPLATE = XPCOMEXE
1101tstXptLink_SOURCES = xpcom/typelib/xpt/tools/xpt_link.c
1102
1103
1104
1105
1106IDLFILES = \
1107 xpcom/base/nsIDebug.idl \
1108 xpcom/base/nsIInterfaceRequestor.idl \
1109 xpcom/base/nsIMemory.idl \
1110 xpcom/base/nsIProgrammingLanguage.idl \
1111 xpcom/base/nsISupports.idl \
1112 xpcom/base/nsITraceRefcnt.idl \
1113 xpcom/base/nsIWeakReference.idl \
1114 xpcom/base/nsIConsoleMessage.idl \
1115 xpcom/base/nsIConsoleService.idl \
1116 xpcom/base/nsIConsoleListener.idl \
1117 xpcom/base/nsIErrorService.idl \
1118 xpcom/base/nsIException.idl \
1119 xpcom/base/nsIExceptionService.idl \
1120 xpcom/base/nsrootidl.idl \
1121 xpcom/components/nsIClassInfo.idl \
1122 xpcom/components/nsIComponentRegistrar.idl \
1123 xpcom/components/nsIFactory.idl \
1124 xpcom/components/nsIModule.idl \
1125 xpcom/components/nsIServiceManager.idl \
1126 xpcom/components/nsIComponentManager.idl \
1127 xpcom/components/nsICategoryManager.idl \
1128 xpcom/components/nsIComponentLoader.idl \
1129 xpcom/components/nsINativeComponentLoader.idl \
1130 xpcom/components/nsIComponentManagerObsolete.idl \
1131 xpcom/components/nsIComponentLoaderManager.idl \
1132 xpcom/ds/nsISupportsArray.idl \
1133 xpcom/ds/nsICollection.idl \
1134 xpcom/ds/nsISerializable.idl \
1135 xpcom/ds/nsIEnumerator.idl \
1136 xpcom/ds/nsISimpleEnumerator.idl \
1137 xpcom/ds/nsIObserverService.idl \
1138 xpcom/ds/nsIObserver.idl \
1139 xpcom/ds/nsIAtom.idl \
1140 xpcom/ds/nsIAtomService.idl \
1141 xpcom/ds/nsIProperties.idl \
1142 xpcom/ds/nsIPersistentProperties2.idl \
1143 xpcom/ds/nsIRecyclingAllocator.idl \
1144 xpcom/ds/nsIStringEnumerator.idl \
1145 xpcom/ds/nsISupportsPrimitives.idl \
1146 xpcom/ds/nsISupportsIterators.idl \
1147 xpcom/ds/nsIVariant.idl \
1148 xpcom/ds/nsITimelineService.idl \
1149 xpcom/ds/nsIArray.idl \
1150 xpcom/ds/nsIPropertyBag.idl \
1151 xpcom/ds/nsIHashable.idl \
1152 xpcom/io/nsIDirectoryService.idl \
1153 xpcom/io/nsIDirectoryEnumerator.idl \
1154 xpcom/io/nsIFile.idl \
1155 xpcom/io/nsILocalFile.idl \
1156 xpcom/io/nsILocalFileMac.idl \
1157 xpcom/io/nsIInputStream.idl \
1158 xpcom/io/nsIObjectInputStream.idl \
1159 xpcom/io/nsIBinaryInputStream.idl \
1160 xpcom/io/nsIObjectOutputStream.idl \
1161 xpcom/io/nsIBinaryOutputStream.idl \
1162 xpcom/io/nsIOutputStream.idl \
1163 xpcom/io/nsIStreamBufferAccess.idl \
1164 xpcom/io/nsIByteArrayInputStream.idl \
1165 xpcom/io/nsISeekableStream.idl \
1166 xpcom/io/nsIFastLoadFileControl.idl \
1167 xpcom/io/nsIFastLoadService.idl \
1168 xpcom/io/nsIInputStreamTee.idl \
1169 xpcom/io/nsIMultiplexInputStream.idl \
1170 xpcom/io/nsIPipe.idl \
1171 xpcom/io/nsIAsyncInputStream.idl \
1172 xpcom/io/nsIAsyncOutputStream.idl \
1173 xpcom/io/nsIScriptableInputStream.idl \
1174 xpcom/io/nsIStorageStream.idl \
1175 xpcom/io/nsIStringStream.idl \
1176 xpcom/io/nsILineInputStream.idl \
1177 xpcom/proxy/public/nsIProxyObjectManager.idl \
1178 xpcom/threads/nsIEventQueueService.idl \
1179 xpcom/threads/nsIEventQueue.idl \
1180 xpcom/threads/nsIEventTarget.idl \
1181 xpcom/threads/nsIRunnable.idl \
1182 xpcom/threads/nsIThread.idl \
1183 xpcom/threads/nsITimer.idl \
1184 xpcom/threads/nsIEnvironment.idl \
1185 xpcom/threads/nsITimerInternal.idl \
1186 xpcom/threads/nsITimerManager.idl \
1187 xpcom/threads/nsIProcess.idl \
1188 xpcom/reflect/xptinfo/public/nsIInterfaceInfo.idl \
1189 xpcom/reflect/xptinfo/public/nsIInterfaceInfoManager.idl \
1190 xpcom/reflect/xptinfo/public/nsIXPTLoader.idl \
1191 ipc/ipcd/client/public/ipcIService.idl \
1192 ipc/ipcd/client/public/ipcIMessageObserver.idl \
1193 ipc/ipcd/client/public/ipcIClientObserver.idl \
1194 ipc/ipcd/extensions/lock/public/ipcILockService.idl \
1195 ipc/ipcd/extensions/transmngr/public/ipcITransactionService.idl \
1196 ipc/ipcd/extensions/dconnect/public/ipcIDConnectService.idl \
1197 ipc/ipcd/extensions/transmngr/public/ipcITransactionObserver.idl
1198
1199
1200OTHER_CLEAN += \
1201 $(PATH_VBox-xpcom-string)/idl_ts \
1202 $(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.h,$(IDLFILES)))) \
1203 $(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.xpt,$(IDLFILES)))) \
1204 $(addprefix $(VBOX_PATH_SDK)/idl/,$(notdir $(IDLFILES)))
1205
1206
1207# generate rules
1208include $(PATH_KBUILD)/footer.kmk
1209
1210
1211
1212XPTFILES = $(addprefix $(PATH_TARGET)/, \
1213 nsIConsoleListener.xpt \
1214 nsIConsoleMessage.xpt \
1215 nsIConsoleService.xpt \
1216 nsIErrorService.xpt \
1217 nsIException.xpt \
1218 nsIExceptionService.xpt \
1219 nsIDebug.xpt \
1220 nsIInterfaceRequestor.xpt \
1221 nsIMemory.xpt \
1222 nsIProgrammingLanguage.xpt \
1223 nsISupports.xpt \
1224 nsITraceRefcnt.xpt \
1225 nsIWeakReference.xpt \
1226 nsrootidl.xpt \
1227 nsIAtom.xpt \
1228 nsIAtomService.xpt \
1229 nsICollection.xpt \
1230 nsIEnumerator.xpt \
1231 nsIPersistentProperties2.xpt \
1232 nsIPropertyBag.xpt \
1233 nsIRecyclingAllocator.xpt \
1234 nsIVariant.xpt \
1235 nsISerializable.xpt \
1236 nsIStringEnumerator.xpt \
1237 nsISupportsArray.xpt \
1238 nsISupportsIterators.xpt \
1239 nsITimelineService.xpt \
1240 nsIArray.xpt \
1241 nsIObserverService.xpt \
1242 nsIObserver.xpt \
1243 nsIProperties.xpt \
1244 nsISimpleEnumerator.xpt \
1245 nsISupportsPrimitives.xpt \
1246 nsIBinaryInputStream.xpt \
1247 nsIBinaryOutputStream.xpt \
1248 nsIByteArrayInputStream.xpt \
1249 nsIFastLoadFileControl.xpt \
1250 nsIFastLoadService.xpt \
1251 nsIInputStreamTee.xpt \
1252 nsILineInputStream.xpt \
1253 nsIMultiplexInputStream.xpt \
1254 nsIObjectInputStream.xpt \
1255 nsIObjectOutputStream.xpt \
1256 nsIPipe.xpt \
1257 nsISeekableStream.xpt \
1258 nsIStorageStream.xpt \
1259 nsIStringStream.xpt \
1260 nsIStreamBufferAccess.xpt \
1261 nsIAsyncInputStream.xpt \
1262 nsIAsyncOutputStream.xpt \
1263 nsIDirectoryService.xpt \
1264 nsIFile.xpt \
1265 nsILocalFile.xpt \
1266 nsIInputStream.xpt \
1267 nsIOutputStream.xpt \
1268 nsIScriptableInputStream.xpt \
1269 nsIComponentLoader.xpt \
1270 nsIComponentLoaderManager.xpt \
1271 nsIComponentManagerObsolete.xpt \
1272 nsINativeComponentLoader.xpt \
1273 nsIClassInfo.xpt \
1274 nsIComponentRegistrar.xpt \
1275 nsIFactory.xpt \
1276 nsIModule.xpt \
1277 nsIServiceManager.xpt \
1278 nsIComponentManager.xpt \
1279 nsICategoryManager.xpt \
1280 nsIThread.xpt \
1281 nsITimer.xpt \
1282 nsITimerInternal.xpt \
1283 nsITimerManager.xpt \
1284 nsIRunnable.xpt \
1285 nsIEventTarget.xpt \
1286 nsIEventQueue.xpt \
1287 nsIEventQueueService.xpt \
1288 nsIEnvironment.xpt \
1289 nsIProcess.xpt \
1290 nsIInterfaceInfo.xpt \
1291 nsIInterfaceInfoManager.xpt \
1292 nsIXPTLoader.xpt)
1293
1294OTHER_CLEAN += \
1295 $(XPTFILES)
1296
1297# combined typelib library
1298$(XPCOM_TYPELIB): $(XPTFILES) | $(TARGET_xp_link)
1299 $(call MSG_LINK,XPCOM_TYPELIB,$@)
1300 $(QUIET)$(TARGET_xpt_link) $@ $^
1301
1302# generate build stamps
1303$(PATH_VBox-xpcom-nspr)/_pr_bld.h:
1304 $(call MSG_GENERATE,,$@)
1305 $(QUIET)echo '#define _BUILD_STRING "$(shell date "+%Y-%m-%d %T")"' > $@
1306
1307$(PATH_VBox-xpcom-nspr)/_pl_bld.h:
1308 $(call MSG_GENERATE,,$@)
1309 $(QUIET)echo '#define _BUILD_STRING "$(shell date "+%Y-%m-%d %T")"' > $@
1310
1311#
1312# Generate IDL rules.
1313#
1314
1315##
1316# Define for compiling one IDL into a header and a typelib
1317# @param idl The filename with everything.
1318XPIDL_INCS = -I xpcom/base/ -I xpcom/ds/ -I xpcom/components/ -I xpcom/io/ -I xpcom/threads/ -I xpcom/reflect/xptinfo/public/
1319define def_IDL
1320$(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.h,$(idl)))) \
1321 $(PATH_TARGET)/$(notdir $(subst .idl,.xpt,$(idl))): $(idl) | $(TARGET_xpidl)
1322 $$(call MSG_TOOL,xpidl,XPCOM,$$<,$$@)
1323 $$(QUIET)$(MKDIR) -p $(VBOX_PATH_SDK)/include $(VBOX_PATH_SDK)/idl
1324 $$(QUIET)$$(TARGET_xpidl) -m header $(XPIDL_INCS) -e $$@ $$<
1325 $$(QUIET)$$(TARGET_xpidl) -m typelib $(XPIDL_INCS) -e $(addprefix $(PATH_TARGET)/,$(notdir $(subst .idl,.xpt,$(idl)))) $$<
1326 $$(QUIET)$(CP) $$< $$(VBOX_PATH_SDK)/idl
1327endef
1328
1329$(foreach idl, $(IDLFILES), $(eval $(def_IDL)))
1330
1331# dummy target.
1332$(PATH_VBox-xpcom-string)/idl_ts: $(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.h,$(IDLFILES))))
1333 $(call MSG_L1,IDL processing completed.)
1334 $(QUIET)$(MKDIR) -p $(dir $@)
1335 $(QUIET)$(ECHO_EXT) > $@
1336
1337# Manual dependency...
1338xpcom/string/src/nsAString.cpp: $(PATH_VBox-xpcom-string)/idl_ts
1339
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