VirtualBox

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

Last change on this file since 4628 was 4628, checked in by vboxsync, 17 years ago

fetch the glibidl stuff on OS/2 automagically.

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