VirtualBox

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

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

NSPR: In VBOX builds, NSPR_LOG_FILE may be set to "IPRT" in order to have NSPR logging redirected to the default IPRT logger (the "default" log group).

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

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