VirtualBox

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

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

Solaris

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 53.1 KB
Line 
1# $Id: Makefile.kmk 4837 2007-09-17 05:32:27Z 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 DARWIN=1
50TEMPLATE_XPCOM_DEFS.linux = OSTYPE=\"Linux2.6\" OSARCH=\"Linux\" XP_UNIX=1 _GNU_SOURCE HAVE_VISIBILITY_ATTRIBUTE=1 ## @todo LINUX=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 OS2=4
53TEMPLATE_XPCOM_DEFS.solaris = OSTYPE=\"Solaris10\" OSARCH=\"Solaris\" XP_UNIX=1 XP_SOLARIS=1 HAVE_LIBDL=1 HAVE_SENDFILEV=1 SOLARIS=1
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
57TEMPLATE_XPCOM_LDFLAGS.solaris += -lsendfile
58ifeq ($(filter os2 win,$(BUILD_TARGET)),)
59 TEMPLATE_XPCOM_CXXFLAGS += -fPIC
60 TEMPLATE_XPCOM_CFLAGS += -fPIC
61 TEMPLATE_XPCOM_LDFLAGS += -fPIC
62 TEMPLATE_XPCOM_DEFS += MOZ_PRESERVE_PIC
63endif
64TEMPLATE_XPCOM_INCS = $(PATH_TARGET) \
65 xpcom/build \
66 xpcom/ds \
67 xpcom/io \
68 xpcom/base \
69 xpcom/components \
70 xpcom/threads \
71 xpcom/proxy/src \
72 xpcom/reflect/xptcall/src \
73 ipc/ipcd/client/src \
74 ipc/ipcd/shared/src \
75 ipc/ipcd/extensions/lock/src \
76 ipc/ipcd/extensions/transmngr/src \
77 ipc/ipcd/extensions/dconnect/src \
78 ipc/ipcd/extensions/transmngr/common \
79 $(VBOX_PATH_SDK)/include \
80 $(VBOX_PATH_SDK)/include/xpcom \
81 $(VBOX_PATH_SDK)/include/xpcom/nsprpub \
82 $(VBOX_PATH_SDK)/include/xpcom/string \
83 $(VBOX_PATH_SDK)/include/xpcom/xpcom \
84 $(VBOX_PATH_SDK)/include/xpcom/ipcd \
85 $(PATH_CURRENT)
86TEMPLATE_XPCOM_INCS.darwin = /Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon
87TEMPLATE_XPCOM_INCS.l4 = $(L4_INCDIR) $(VBOX_L4_GCC3_INCS)
88TEMPLATE_XPCOM_LDFLAGS.l4 = $(L4_DIR)/lib/x86_586/crt0.o \
89 -T$(L4_DIR)/lib/x86_586/main_rel.ld -nostdlib \
90 # -Wl,--whole-archive,--no-allow-shlib-undefined
91TEMPLATE_XPCOM_LIBS.l4 = $(VBOX_GCC_LIBGCC)
92TEMPLATE_XPCOM_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $(TARGET_$(hdrinst))) \
93 $(PATH_VBox-xpcom-string)/idl_ts
94ifeq ($(BUILD_TARGET),os2)
95 ifndef USE_OS2_TOOLKIT_HEADERS
96 TEMPLATE_XPCOM_DEFS.os2 += OS2EMX_PLAIN_CHAR
97 endif
98 TEMPLATE_XPCOM_DEFS.os2 += XP_OS2_EMX OS2
99 # this is at least for strnicmp()
100 TEMPLATE_XPCOM_DEFS.os2 += _EMX_SOURCE
101 # @@todo shouldn't this be somehow default for ASTOOL?
102 TEMPLATE_XPCOM_ASFLAGS.os2 += -Zomf
103endif
104
105# We use IPRT logging in debug builds, so we need IPRT
106TEMPLATE_XPCOM_LIBS.debug += $(LIB_RUNTIME)
107
108#
109# Template for building the XPCOM executables
110#
111TEMPLATE_XPCOMEXE = XPCOM executable files (testcases)
112TEMPLATE_XPCOMEXE_EXTENDS = XPCOM
113## @todo undo -fPIC.
114TEMPLATE_XPCOMEXE_INCS = $(PATH_TARGET) \
115 ipc/ipcd/shared/src \
116 $(VBOX_PATH_SDK)/include \
117 $(VBOX_PATH_SDK)/include/xpcom \
118 $(VBOX_PATH_SDK)/include/xpcom/nsprpub \
119 $(VBOX_PATH_SDK)/include/xpcom/string \
120 $(VBOX_PATH_SDK)/include/xpcom/xpcom \
121 $(VBOX_PATH_SDK)/include/xpcom/ipcd \
122 $(PATH_CURRENT)
123TEMPLATE_XPCOMEXE_LIBS = \
124 $(TARGET_VBox-xpcom-ipcshared) \
125 $(TARGET_VBoxXPCOM)
126TEMPLATE_XPCOMEXE_LIBS.linux = dl $(LIB_PTHREAD)
127TEMPLATE_XPCOMEXE_LIBS.l4 = $(LIB_RUNTIME) $(VBOX_GCC_LIBGCC)
128TEMPLATE_XPCOMEXE_LDFLAGS.darwin = -bind_at_load $(TEMPLATE_XPCOM_LDFLAGS.darwin)
129TEMPLATE_XPCOMEXE_LDFLAGS.solaris = -mimpure-text ## @todo why?
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 ($(BUILD_TARGET),os2)
551 # glib and libIDL needed by XPCOM on OS/2.
552 ifeq ($(VBOX_PATH_GLIB),)
553 VBOX_PATH_GLIB := $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/glibidl/*/glibidl/gcc335)))
554 endif
555 VBOX_PATH_LIBIDL ?= $(VBOX_PATH_GLIB)
556 ifeq ($(wildcard $(VBOX_PATH_GLIB)),)
557 $(warning VBOX_PATH_GLIB is "$(VBOX_PATH_GLIB)" which is not a valid directory!)
558 endif
559 ifeq ($(wildcard $(VBOX_PATH_LIBIDL)),)
560 $(warning VBOX_PATH_LIBIDL is "$(VBOX_PATH_LIBIDL)" which is not a valid directory!)
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
568 # install necessary DLLs to the same place where xpidl goes
569 INSTALLS += xpidl-DLLS
570 xpidl_ORDERDEPS = xpidl-DLLS
571 xpidl-DLLS_INST = $(xpidl_INST)
572 # static libraries of these may be provided instead,
573 # so copy DLLs only when they are present
574 xpidl-DLLS_SOURCES += $(wildcard $(VBOX_PATH_GLIB)/lib/glib.dll)
575 xpidl-DLLS_SOURCES += $(wildcard $(VBOX_PATH_LIBIDL)/lib/libIDL.dll)
576else
577 # We do these ONCE.
578 libIDL_config_cflags := $(shell $(VBOX_LIBIDL_CONFIG) --cflags)
579 libIDL_config_libs := $(shell $(VBOX_LIBIDL_CONFIG) --libs)
580 xpidl_CFLAGS = \
581 $(libIDL_config_cflags)
582 xpidl_LDFLAGS = \
583 $(libIDL_config_libs)
584endif
585
586#
587# The XPT linker.
588#
589xpt_link_TEMPLATE = XPCOMBLDPROG
590xpt_link_SOURCES = \
591 xpcom/typelib/xpt/tools/xpt_link.c \
592 xpcom/typelib/xpt/src/xpt_arena.c \
593 xpcom/typelib/xpt/src/xpt_struct.c \
594 xpcom/typelib/xpt/src/xpt_xdr.c
595
596
597#
598# The NSPR Library.
599#
600VBox-xpcom-nspr_TEMPLATE = XPCOM
601VBox-xpcom-nspr_NOINST = 1
602VBox-xpcom-nspr_DEFS = \
603 _NSPR_BUILD_ \
604 HAVE_LCHOWN=1 \
605 HAVE_STRERROR=1 \
606 FORCE_PR_LOG
607VBox-xpcom-nspr_DEFS.darwin = \
608 HAVE_BSD_FLOCK=1 \
609 _PR_PTHREADS
610VBox-xpcom-nspr_DEFS.freebsd = \
611 HAVE_CVAR_BUILT_ON_SEM \
612 _PR_PTHREADS
613# FIXME: LINUX should be defined by _linux.cfg
614VBox-xpcom-nspr_DEFS.linux = \
615 LINUX=1 \
616 _POSIX_SOURCE=1 \
617 _BSD_SOURCE=1 \
618 _SVID_SOURCE=1 \
619 _REENTRANT=1 \
620 _LARGEFILE64_SOURCE=1 \
621 HAVE_FCNTL_FILE_LOCKING=1 \
622 HAVE_CVAR_BUILT_ON_SEM \
623 _PR_PTHREADS
624# _BSD_SOURCE is here to keep the Glibc header files happy and make them include the right things
625# FIXME: L4 should be defined by _linux.cfg
626VBox-xpcom-nspr_DEFS.l4 = \
627 L4=1 \
628 _REENTRANT=1 \
629 _LARGEFILE64_SOURCE=1 \
630 _POSIX_SOURCE=1 \
631 _BSD_SOURCE=1 \
632 HAVE_FCNTL_FILE_LOCKING=1 \
633 HAVE_CVAR_BUILT_ON_SEM
634VBox-xpcom-nspr_DEFS.netbsd = \
635 _PR_PTHREADS
636VBox-xpcom-nspr_DEFS.openbsd = \
637 _PR_PTHREADS
638VBox-xpcom-nspr_DEFS.os2 =
639VBox-xpcom-nspr_DEFS.solaris = \
640 _PR_PTHREADS
641VBox-xpcom-nspr_INCS = \
642 nsprpub/pr/include/private \
643 $(PATH_TARGET)/VBox-xpcom-nspr
644
645VBox-xpcom-nspr_SOURCES = \
646 nsprpub/pr/src/io/prfdcach.c \
647 nsprpub/pr/src/io/prmwait.c \
648 nsprpub/pr/src/io/priometh.c \
649 nsprpub/pr/src/io/pripv6.c \
650 nsprpub/pr/src/io/prmapopt.c \
651 nsprpub/pr/src/io/prlayer.c \
652 nsprpub/pr/src/io/prlog.c \
653 nsprpub/pr/src/io/prmmap.c \
654 nsprpub/pr/src/io/prpolevt.c \
655 nsprpub/pr/src/io/prprf.c \
656 nsprpub/pr/src/io/prscanf.c \
657 nsprpub/pr/src/io/prstdio.c \
658 nsprpub/pr/src/linking/prlink.c \
659 nsprpub/pr/src/malloc/prmalloc.c \
660 nsprpub/pr/src/malloc/prmem.c \
661 nsprpub/pr/src/md/prosdep.c \
662 nsprpub/pr/src/memory/prseg.c \
663 nsprpub/pr/src/memory/prshm.c \
664 nsprpub/pr/src/memory/prshma.c \
665 nsprpub/pr/src/misc/pralarm.c \
666 nsprpub/pr/src/misc/pratom.c \
667 nsprpub/pr/src/misc/prcountr.c \
668 nsprpub/pr/src/misc/prdtoa.c \
669 nsprpub/pr/src/misc/prenv.c \
670 nsprpub/pr/src/misc/prerr.c \
671 nsprpub/pr/src/misc/prerror.c \
672 nsprpub/pr/src/misc/prerrortable.c \
673 nsprpub/pr/src/misc/prinit.c \
674 nsprpub/pr/src/misc/prinrval.c \
675 nsprpub/pr/src/misc/pripc.c \
676 nsprpub/pr/src/misc/prlog2.c \
677 nsprpub/pr/src/misc/prlong.c \
678 nsprpub/pr/src/misc/prnetdb.c \
679 nsprpub/pr/src/misc/prolock.c \
680 nsprpub/pr/src/misc/prrng.c \
681 nsprpub/pr/src/misc/prsystem.c \
682 nsprpub/pr/src/misc/prtime.c \
683 nsprpub/pr/src/misc/prthinfo.c \
684 nsprpub/pr/src/misc/prtpool.c \
685 nsprpub/pr/src/misc/prtrace.c \
686 nsprpub/pr/src/threads/prcmon.c \
687 nsprpub/pr/src/threads/prrwlock.c \
688 nsprpub/pr/src/threads/prtpd.c \
689 nsprpub/pr/src/prvrsion.c \
690 nsprpub/lib/ds/plarena.c \
691 nsprpub/lib/ds/plhash.c \
692 nsprpub/lib/libc/src/strlen.c \
693 nsprpub/lib/libc/src/strcpy.c \
694 nsprpub/lib/libc/src/strdup.c \
695 nsprpub/lib/libc/src/strcat.c \
696 nsprpub/lib/libc/src/strcmp.c \
697 nsprpub/lib/libc/src/strccmp.c \
698 nsprpub/lib/libc/src/strchr.c \
699 nsprpub/lib/libc/src/strpbrk.c \
700 nsprpub/lib/libc/src/strstr.c \
701 nsprpub/lib/libc/src/strcstr.c \
702 nsprpub/lib/libc/src/strtok.c \
703 nsprpub/lib/libc/src/base64.c \
704 nsprpub/lib/libc/src/plerror.c \
705 nsprpub/lib/libc/src/plgetopt.c
706
707VBox-xpcom-nspr_SOURCES.darwin = \
708 nsprpub/pr/src/md/unix/unix.c \
709 nsprpub/pr/src/md/unix/unix_errors.c \
710 nsprpub/pr/src/md/unix/uxproces.c \
711 nsprpub/pr/src/md/unix/uxrng.c \
712 nsprpub/pr/src/md/unix/uxshm.c \
713 nsprpub/pr/src/md/unix/uxwrap.c \
714 nsprpub/pr/src/md/unix/darwin.c \
715 nsprpub/pr/src/pthreads/ptio.c \
716 nsprpub/pr/src/pthreads/ptsynch.c \
717 nsprpub/pr/src/pthreads/ptthread.c \
718 nsprpub/pr/src/pthreads/ptmisc.c
719VBox-xpcom-nspr_SOURCES.darwin.x86 = nsprpub/pr/src/md/unix/os_Darwin_x86.s
720
721VBox-xpcom-nspr_SOURCES.l4 = \
722 nsprpub/pr/src/io/prfile.c /* why not for Linux? */ \
723 nsprpub/pr/src/io/prio.c /* "" "" "" "" */ \
724 nsprpub/pr/src/io/prsocket.c \
725 nsprpub/pr/src/md/unix/unix.c \
726 nsprpub/pr/src/md/unix/unix_errors.c \
727 nsprpub/pr/src/md/unix/uxpoll.c \
728 nsprpub/pr/src/md/unix/uxproces.c \
729 nsprpub/pr/src/md/unix/uxrng.c \
730 nsprpub/pr/src/md/unix/uxshm.c \
731 nsprpub/pr/src/md/unix/uxwrap.c \
732 nsprpub/pr/src/md/unix/l4env.c \
733 nsprpub/pr/src/threads/prcthr.c \
734 nsprpub/pr/src/threads/prmon.c \
735 nsprpub/pr/src/threads/combined/prucpu.c \
736 nsprpub/pr/src/threads/combined/prucv.c \
737 nsprpub/pr/src/threads/combined/prulock.c \
738 nsprpub/pr/src/threads/combined/prustack.c \
739 nsprpub/pr/src/threads/combined/pruthr.c
740# nsprpub/pr/src/md/l4env/prnetdb.c \
741# nsprpub/pr/src/md/l4env/threads.c
742VBox-xpcom-nspr_SOURCES.l4.x86 = nsprpub/pr/src/md/unix/os_Linux_x86.s
743VBox-xpcom-nspr_SOURCES.l4.amd64 = nsprpub/pr/src/md/unix/os_Linux_x86_64.s
744
745VBox-xpcom-nspr_SOURCES.linux = \
746 nsprpub/pr/src/md/unix/unix.c \
747 nsprpub/pr/src/md/unix/unix_errors.c \
748 nsprpub/pr/src/md/unix/uxproces.c \
749 nsprpub/pr/src/md/unix/uxrng.c \
750 nsprpub/pr/src/md/unix/uxshm.c \
751 nsprpub/pr/src/md/unix/uxwrap.c \
752 nsprpub/pr/src/md/unix/linux.c \
753 nsprpub/pr/src/pthreads/ptio.c \
754 nsprpub/pr/src/pthreads/ptsynch.c \
755 nsprpub/pr/src/pthreads/ptthread.c \
756 nsprpub/pr/src/pthreads/ptmisc.c
757VBox-xpcom-nspr_SOURCES.linux.x86 = nsprpub/pr/src/md/unix/os_Linux_x86.s
758VBox-xpcom-nspr_SOURCES.linux.amd64 = nsprpub/pr/src/md/unix/os_Linux_x86_64.s
759
760VBox-xpcom-nspr_SOURCES.os2 = \
761 nsprpub/pr/src/io/prdir.c \
762 nsprpub/pr/src/io/prfile.c \
763 nsprpub/pr/src/io/prio.c \
764 nsprpub/pr/src/io/prsocket.c \
765 nsprpub/pr/src/md/os2/os2misc.c \
766 nsprpub/pr/src/md/os2/os2sem.c \
767 nsprpub/pr/src/md/os2/os2inrval.c \
768 nsprpub/pr/src/md/os2/os2gc.c \
769 nsprpub/pr/src/md/os2/os2thred.c \
770 nsprpub/pr/src/md/os2/os2io.c \
771 nsprpub/pr/src/md/os2/os2cv.c \
772 nsprpub/pr/src/md/os2/os2sock.c \
773 nsprpub/pr/src/md/os2/os2_errors.c \
774 nsprpub/pr/src/md/os2/os2poll.c \
775 nsprpub/pr/src/md/os2/os2rng.c \
776 nsprpub/pr/src/threads/prdump.c \
777 nsprpub/pr/src/threads/prmon.c \
778 nsprpub/pr/src/threads/prsem.c \
779 nsprpub/pr/src/threads/prcthr.c \
780 nsprpub/pr/src/threads/combined/prucpu.c \
781 nsprpub/pr/src/threads/combined/prucv.c \
782 nsprpub/pr/src/threads/combined/prulock.c \
783 nsprpub/pr/src/threads/combined/prustack.c \
784 nsprpub/pr/src/threads/combined/pruthr.c
785# gcc/emx sources
786VBox-xpcom-nspr_SOURCES.os2 += \
787 nsprpub/pr/src/md/os2/os2emx.s \
788 nsprpub/pr/src/md/os2/os2vaclegacy.s
789# IBM VAC sources (not used)
790#VBox-xpcom-nspr_SOURCES.os2 += \
791# nsprpub/pr/src/md/os2/os2vacpp.asm
792
793VBox-xpcom-nspr_SOURCES.solaris = \
794 nsprpub/pr/src/md/unix/unix.c \
795 nsprpub/pr/src/md/unix/unix_errors.c \
796 nsprpub/pr/src/md/unix/uxproces.c \
797 nsprpub/pr/src/md/unix/uxrng.c \
798 nsprpub/pr/src/md/unix/uxshm.c \
799 nsprpub/pr/src/md/unix/uxwrap.c \
800 nsprpub/pr/src/md/unix/solaris.c \
801 nsprpub/pr/src/pthreads/ptio.c \
802 nsprpub/pr/src/pthreads/ptsynch.c \
803 nsprpub/pr/src/pthreads/ptthread.c \
804 nsprpub/pr/src/pthreads/ptmisc.c
805VBox-xpcom-nspr_SOURCES.solaris.x86 = nsprpub/pr/src/md/unix/os_SunOS_x86.s
806VBox-xpcom-nspr_SOURCES.solaris.amd64 = nsprpub/pr/src/md/unix/os_SunOS_amd64.s
807
808
809nsprpub/pr/src/prvrsion.c_DEPS = $(PATH_VBox-xpcom-nspr)/_pr_bld.h
810nsprpub/lib/ds/plvrsion.c_DEPS = $(PATH_VBox-xpcom-nspr)/_pl_bld.h
811
812
813VBox-xpcom-typelib_TEMPLATE = XPCOM
814VBox-xpcom-typelib_NOINST = 1
815VBox-xpcom-typelib_SOURCES = \
816 xpcom/typelib/xpt/src/xpt_arena.c \
817 xpcom/typelib/xpt/src/xpt_struct.c \
818 xpcom/typelib/xpt/src/xpt_xdr.c
819
820VBox-xpcom-string_TEMPLATE = XPCOM
821VBox-xpcom-string_NOINST = 1
822VBox-xpcom-string_SOURCES = \
823 xpcom/string/src/nsAString.cpp \
824 xpcom/string/src/nsDependentSubstring.cpp \
825 xpcom/string/src/nsObsoleteAStringThunk.cpp \
826 xpcom/string/src/nsPrintfCString.cpp \
827 xpcom/string/src/nsPromiseFlatString.cpp \
828 xpcom/string/src/nsReadableUtils.cpp \
829 xpcom/string/src/nsSubstring.cpp \
830 xpcom/string/src/nsSubstringTuple.cpp \
831 xpcom/string/src/nsString.cpp \
832 xpcom/string/src/nsStringComparator.cpp \
833 xpcom/string/src/nsStringObsolete.cpp
834
835VBox-xpcom-base_TEMPLATE = XPCOM
836VBox-xpcom-base_NOINST = 1
837VBox-xpcom-base_DEFS = _IMPL_NS_COM
838VBox-xpcom-base_SOURCES = \
839 xpcom/base/nsAllocator.cpp \
840 xpcom/base/nsConsoleMessage.cpp \
841 xpcom/base/nsConsoleService.cpp \
842 xpcom/base/nsDebugImpl.cpp \
843 xpcom/base/nsErrorService.cpp \
844 xpcom/base/nsExceptionService.cpp \
845 xpcom/base/nsID.cpp \
846 xpcom/base/nsMemoryImpl.cpp \
847 xpcom/base/nsTraceRefcntImpl.cpp \
848 xpcom/base/nsStackFrameUnix.cpp
849
850VBox-xpcom-ds_TEMPLATE = XPCOM
851VBox-xpcom-ds_NOINST = 1
852VBox-xpcom-ds_DEFS = _IMPL_NS_COM
853VBox-xpcom-ds_SOURCES = \
854 xpcom/ds/pldhash.c \
855 xpcom/ds/nsAtomTable.cpp \
856 xpcom/ds/nsAtomService.cpp \
857 xpcom/ds/nsByteBuffer.cpp \
858 xpcom/ds/nsCheapSets.cpp \
859 xpcom/ds/nsCRT.cpp \
860 xpcom/ds/nsDeque.cpp \
861 xpcom/ds/nsEmptyEnumerator.cpp \
862 xpcom/ds/nsEnumeratorUtils.cpp \
863 xpcom/ds/nsFixedSizeAllocator.cpp \
864 xpcom/ds/nsHashSets.cpp \
865 xpcom/ds/nsHashtable.cpp \
866 xpcom/ds/nsObserverList.cpp \
867 xpcom/ds/nsObserverService.cpp \
868 xpcom/ds/nsProperties.cpp \
869 xpcom/ds/nsPersistentProperties.cpp \
870 xpcom/ds/nsQuickSort.cpp \
871 xpcom/ds/nsRecyclingAllocator.cpp \
872 xpcom/ds/nsStaticNameTable.cpp \
873 xpcom/ds/nsStringEnumerator.cpp \
874 xpcom/ds/nsSupportsArray.cpp \
875 xpcom/ds/nsSupportsArrayEnumerator.cpp \
876 xpcom/ds/nsSupportsPrimitives.cpp \
877 xpcom/ds/nsTHashtable.cpp \
878 xpcom/ds/nsUnicharBuffer.cpp \
879 xpcom/ds/nsVariant.cpp \
880 xpcom/ds/nsVoidArray.cpp \
881 xpcom/ds/nsTextFormatter.cpp \
882 xpcom/ds/nsTimelineService.cpp \
883 xpcom/ds/nsValueArray.cpp \
884 xpcom/ds/nsCOMArray.cpp \
885 xpcom/ds/nsArray.cpp \
886 xpcom/ds/nsArrayEnumerator.cpp
887# xpcom/ds/nsHashPropertyBag.cpp
888
889# @todo what about MOZ_USER_DIR?
890VBox-xpcom-io_TEMPLATE = XPCOM
891VBox-xpcom-io_NOINST = 1
892VBox-xpcom-io_DEFS = _IMPL_NS_COM MOZ_USER_DIR=\".mozilla\"
893VBox-xpcom-io_INCS.darwin = \
894 xpcom/MoreFiles
895VBox-xpcom-io_SOURCES = \
896 xpcom/io/nsAppFileLocationProvider.cpp \
897 xpcom/io/nsBinaryStream.cpp \
898 xpcom/io/nsByteArrayInputStream.cpp \
899 xpcom/io/nsDirectoryService.cpp \
900 xpcom/io/nsEscape.cpp \
901 xpcom/io/nsFastLoadFile.cpp \
902 xpcom/io/nsFastLoadService.cpp \
903 xpcom/io/nsInputStreamTee.cpp \
904 xpcom/io/nsLinebreakConverter.cpp \
905 xpcom/io/nsLocalFileCommon.cpp \
906 xpcom/io/nsMultiplexInputStream.cpp \
907 xpcom/io/nsPipe3.cpp \
908 xpcom/io/nsStreamUtils.cpp \
909 xpcom/io/nsScriptableInputStream.cpp \
910 xpcom/io/nsSegmentedBuffer.cpp \
911 xpcom/io/SpecialSystemDirectory.cpp \
912 xpcom/io/nsStorageStream.cpp \
913 xpcom/io/nsStringStream.cpp \
914 xpcom/io/nsUnicharInputStream.cpp \
915 xpcom/io/nsNativeCharsetUtils.cpp
916VBox-xpcom-io_SOURCES.darwin = \
917 xpcom/io/nsLocalFileOSX.cpp \
918 xpcom/MoreFiles/FSCopyObject.c \
919 xpcom/MoreFiles/MoreFilesX.c
920VBox-xpcom-io_SOURCES.l4 = \
921 xpcom/io/nsLocalFileL4.cpp
922ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),)
923VBox-xpcom-io_SOURCES += \
924 xpcom/io/nsLocalFileUnix.cpp
925endif
926VBox-xpcom-io_SOURCES.os2 = \
927 xpcom/io/nsLocalFileOS2.cpp
928
929VBox-xpcom-components_TEMPLATE = XPCOM
930VBox-xpcom-components_NOINST = 1
931VBox-xpcom-components_DEFS = _IMPL_NS_COM EXPORT_XPTI_API
932VBox-xpcom-components_SOURCES = \
933 xpcom/components/nsCategoryManager.cpp \
934 xpcom/components/nsComponentManager.cpp \
935 xpcom/components/nsComponentManagerObsolete.cpp \
936 xpcom/components/nsNativeComponentLoader.cpp \
937 xpcom/components/nsServiceManagerObsolete.cpp \
938 xpcom/components/xcDll.cpp \
939 xpcom/components/nsStaticComponentLoader.cpp
940
941VBox-xpcom-threads_TEMPLATE = XPCOM
942VBox-xpcom-threads_NOINST = 1
943VBox-xpcom-threads_DEFS = _IMPL_NS_COM
944VBox-xpcom-threads_SOURCES = \
945 xpcom/threads/plevent.c \
946 xpcom/threads/nsAutoLock.cpp \
947 xpcom/threads/nsEnvironment.cpp \
948 xpcom/threads/nsEventQueue.cpp \
949 xpcom/threads/nsEventQueueService.cpp \
950 xpcom/threads/nsThread.cpp \
951 xpcom/threads/nsTimerImpl.cpp \
952 xpcom/threads/nsProcessCommon.cpp \
953 xpcom/threads/TimerThread.cpp
954
955VBox-xpcom-xptinfo_TEMPLATE = XPCOM
956VBox-xpcom-xptinfo_NOINST = 1
957VBox-xpcom-xptinfo_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTI_API EXPORT_XPT_API
958VBox-xpcom-xptinfo_SOURCES = \
959 xpcom/reflect/xptinfo/src/xptiFile.cpp \
960 xpcom/reflect/xptinfo/src/xptiInterfaceInfo.cpp \
961 xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp \
962 xpcom/reflect/xptinfo/src/xptiManifest.cpp \
963 xpcom/reflect/xptinfo/src/xptiMisc.cpp \
964 xpcom/reflect/xptinfo/src/xptiTypelibGuts.cpp \
965 xpcom/reflect/xptinfo/src/xptiWorkingSet.cpp \
966 xpcom/reflect/xptinfo/src/xptiZipItem.cpp \
967 xpcom/reflect/xptinfo/src/xptiZipLoader.cpp
968
969
970VBox-xpcom-xptcall_TEMPLATE = XPCOM
971VBox-xpcom-xptcall_NOINST = 1
972VBox-xpcom-xptcall_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTC_API
973VBox-xpcom-xptcall_DEFS.darwin = KEEP_STACK_16_BYTE_ALIGNED
974VBox-xpcom-xptcall_DEFS.l4 = L4
975VBox-xpcom-xptcall_SOURCES = xpcom/reflect/xptcall/src/xptcall.cpp
976VBox-xpcom-xptcall_SOURCES.darwin.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_unixish_x86.cpp \
977 xpcom/reflect/xptcall/src/md/unix/xptcstubs_unixish_x86.cpp
978VBox-xpcom-xptcall_SOURCES.linux.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_gcc_x86_unix.cpp \
979 xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp
980VBox-xpcom-xptcall_SOURCES.linux.amd64 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_linux.cpp \
981 xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp
982# gcc/emx sources
983VBox-xpcom-xptcall_SOURCES.os2 = xpcom/reflect/xptcall/src/md/os2/xptcinvoke_gcc_x86_os2.cpp \
984 xpcom/reflect/xptcall/src/md/os2/xptcstubs_gcc_x86_os2.cpp
985VBox-xpcom-xptcall_INCS.os2 = xpcom/reflect/xptcall/src/md/unix
986VBox-xpcom-xptcall_DEFS.os2 = MOZ_NEED_LEADING_UNDERSCORE
987# IBM/VAC sources (not used)
988#VBox-xpcom-xptcall_SOURCES.os2 = xpcom/reflect/xptcall/src/md/unix/xptcstubs_os2.cpp \
989# xpcom/reflect/xptcall/src/md/unix/xptcinvoke_vacpp.asm \
990# xpcom/reflect/xptcall/src/md/unix/xptcstubs_vacpp.asm
991
992VBox-xpcom-xptcall_SOURCES.solaris.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_solaris.cpp \
993 xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_solaris.cpp
994
995VBox-xpcom-proxy_TEMPLATE = XPCOM
996VBox-xpcom-proxy_NOINST = 1
997VBox-xpcom-proxy_DEFS = _IMPL_NS_COM EXPORT_XPTC_API EXPORT_XPTI_API
998VBox-xpcom-proxy_SOURCES = xpcom/proxy/src/nsProxyEvent.cpp \
999 xpcom/proxy/src/nsProxyEventClass.cpp \
1000 xpcom/proxy/src/nsProxyEventObject.cpp \
1001 xpcom/proxy/src/nsProxyObjectManager.cpp \
1002 xpcom/proxy/src/nsProxyRelease.cpp
1003
1004# glue library which all client apps will link with
1005VBoxXPCOMGlue_TEMPLATE = XPCOM
1006VBoxXPCOMGlue_DEFS = _IMPL_NS_COM XPCOM_GLUE
1007VBoxXPCOMGlue_SOURCES = 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/glue/standalone/nsXPCOMGlue.cpp \
1016 xpcom/glue/standalone/nsGREDirServiceProvider.cpp
1017VBoxXPCOMGlue_INST = lib/ $(INST_SDK)/lib/
1018
1019
1020#
1021# The VBoxXPCOM Shared Object, assembling all lib files.
1022#
1023VBoxXPCOM_TEMPLATE = XPCOM
1024VBoxXPCOM_NAME = $(basename $(notdir $(LIB_XPCOM)))
1025VBoxXPCOM_DEFS = BUILD_DCONNECT="1" _IMPL_NS_COM
1026VBoxXPCOM_SOURCES = \
1027 xpcom/glue/nsCOMPtr.cpp \
1028 xpcom/glue/nsComponentManagerUtils.cpp \
1029 xpcom/glue/nsDebug.cpp \
1030 xpcom/glue/nsGenericFactory.cpp \
1031 xpcom/glue/nsIInterfaceRequestorUtils.cpp \
1032 xpcom/glue/nsMemory.cpp \
1033 xpcom/glue/nsTraceRefcnt.cpp \
1034 xpcom/glue/nsWeakReference.cpp \
1035 xpcom/build/nsXPComInit.cpp \
1036 xpcom/build/nsStringAPI.cpp
1037VBoxXPCOM_SOURCES.darwin = \
1038 darwindeps.cpp
1039VBoxXPCOM_SOURCES.os2 = \
1040 vboxdeps.cpp
1041VBoxXPCOM_SOURCES.solaris = \
1042 vboxdeps.cpp
1043VBoxXPCOM_LIBS = \
1044 $(TARGET_VBox-xpcom-typelib) \
1045 $(TARGET_VBox-xpcom-string) \
1046 $(TARGET_VBox-xpcom-base) \
1047 $(TARGET_VBox-xpcom-ds) \
1048 $(TARGET_VBox-xpcom-io) \
1049 $(TARGET_VBox-xpcom-components) \
1050 $(TARGET_VBox-xpcom-threads) \
1051 $(TARGET_VBox-xpcom-xptinfo) \
1052 $(TARGET_VBox-xpcom-xptcall) \
1053 $(TARGET_VBox-xpcom-proxy) \
1054 $(TARGET_VBox-xpcom-nspr)
1055
1056VBoxXPCOM_LDFLAGS.linux = -Wl,--whole-archive \
1057 $(TARGET_VBox-xpcom-typelib) \
1058 $(TARGET_VBox-xpcom-string) \
1059 $(TARGET_VBox-xpcom-base) \
1060 $(TARGET_VBox-xpcom-ds) \
1061 $(TARGET_VBox-xpcom-io) \
1062 $(TARGET_VBox-xpcom-components) \
1063 $(TARGET_VBox-xpcom-threads) \
1064 $(TARGET_VBox-xpcom-xptinfo) \
1065 $(TARGET_VBox-xpcom-xptcall) \
1066 $(TARGET_VBox-xpcom-proxy) \
1067 $(TARGET_VBox-xpcom-nspr) \
1068 -Wl,--no-whole-archive
1069#VBoxXPCOM_LIBS.l4 = $(L4_LIBDIR)/libxpcomstubs.a $(L4_LIBDIR)/../libuc_c++.a \
1070# $(VBOX_PATH_L4_GCC3_INSTALL)/libsupc++.a $(VBOX_PATH_L4_GCC3_INSTALL)/libgcc_eh.a
1071# EF heap
1072#VBoxXPCOM_LIBS += $(LIB_RUNTIME_EF)
1073#VBoxXPCOM_LDFLAGS = -Wl,--whole-archive $(VBoxXPCOM_LIBS) -Wl,--no-whole-archive $(LIB_RUNTIME)
1074VBoxXPCOM_LDFLAGS.darwin = -install_name @executable_path/VBoxXPCOM.dylib
1075VBoxXPCOM_LDFLAGS.solaris += -Wl,-M solarislink.map
1076
1077ifdef VBOX_IPC_RELEASE_LOG
1078IPC_LOGGING = 1
1079else ifneq ($(BUILD_TYPE),release)
1080IPC_LOGGING = 1
1081endif
1082
1083TEMPLATE_XPCOMIPC = XPCOM IPC libraries
1084TEMPLATE_XPCOMIPC_EXTENDS = XPCOM
1085TEMPLATE_XPCOMIPC_DEFS = $(TEMPLATE_XPCOM_DEFS) BUILD_DCONNECT="1"
1086TEMPLATE_XPCOMIPC_DEFS.win = $(TEMPLATE_XPCOM_DEFS.win) IPC_DAEMON_APP_NAME=\"VBoxXPCOMIPCD.exe\"
1087TEMPLATE_XPCOMIPC_DEFS.darwin = $(TEMPLATE_XPCOM_DEFS.darwin) IPC_DAEMON_APP_NAME=\"VBoxXPCOMIPCD\"
1088TEMPLATE_XPCOMIPC_DEFS.linux = $(TEMPLATE_XPCOM_DEFS.linux) IPC_DAEMON_APP_NAME=\"VBoxXPCOMIPCD\"
1089TEMPLATE_XPCOMIPC_DEFS.l4 = $(TEMPLATE_XPCOM_DEFS.l4) IPC_DAEMON_APP_NAME=\"VBoxXPCOMIPCD\"
1090TEMPLATE_XPCOMIPC_DEFS.os2 = $(TEMPLATE_XPCOM_DEFS.os2) IPC_DAEMON_APP_NAME=\"VBoxXPCOMIPCD.exe\"
1091
1092ifdef IPC_LOGGING
1093 TEMPLATE_XPCOMIPC_DEFS += IN_RING3 IPC_LOGGING
1094 TEMPLATE_XPCOMIPC_LIBS = $(TEMPLATE_XPCOM_LIBS) $(LIB_RUNTIME)
1095endif
1096TEMPLATE_XPCOMIPC_LIBS.darwin = $(TARGET_VBoxXPCOM)
1097TEMPLATE_XPCOMIPC_LIBS.os2 = $(TARGET_VBoxXPCOM)
1098
1099TEMPLATE_XPCOMIPCEXE = XPCOM IPC executables
1100TEMPLATE_XPCOMIPCEXE_EXTENDS = XPCOMEXE
1101TEMPLATE_XPCOMIPCEXE_DEFS = $(TEMPLATE_XPCOMEXE_DEFS) BUILD_DCONNECT="1"
1102ifdef IPC_LOGGING
1103 TEMPLATE_XPCOMIPCEXE_DEFS += IN_RING3 IPC_LOGGING
1104 TEMPLATE_XPCOMIPCEXE_LIBS = $(TEMPLATE_XPCOMEXE_LIBS) $(LIB_RUNTIME)
1105endif
1106
1107VBox-xpcom-ipcutils_TEMPLATE = XPCOMIPC
1108VBox-xpcom-ipcutils_NOINST = 1
1109VBox-xpcom-ipcutils_SOURCES = \
1110 ipc/ipcd/util/src/ipcMessageReader.cpp \
1111 ipc/ipcd/util/src/ipcMessageWriter.cpp
1112
1113VBox-xpcom-ipcshared_TEMPLATE = XPCOMIPC
1114VBox-xpcom-ipcshared_NOINST = 1
1115VBox-xpcom-ipcshared_SOURCES = \
1116 ipc/ipcd/shared/src/ipcLog.cpp \
1117 ipc/ipcd/shared/src/ipcConfig.cpp \
1118 ipc/ipcd/shared/src/ipcMessage.cpp \
1119 ipc/ipcd/shared/src/ipcMessagePrimitives.cpp \
1120 ipc/ipcd/shared/src/ipcStringList.cpp \
1121 ipc/ipcd/shared/src/ipcIDList.cpp \
1122 ipc/ipcd/shared/src/ipcm.cpp
1123
1124VBox-xpcom-ipcdlock_TEMPLATE = XPCOMIPC
1125VBox-xpcom-ipcdlock_NOINST = 1
1126VBox-xpcom-ipcdlock_SOURCES = \
1127 ipc/ipcd/extensions/lock/src/ipcLockProtocol.cpp \
1128 ipc/ipcd/extensions/lock/src/ipcLockService.cpp
1129
1130VBox-xpcom-ipctransmgr_TEMPLATE = XPCOMIPC
1131VBox-xpcom-ipctransmgr_NOINST = 1
1132VBox-xpcom-ipctransmgr_SOURCES = \
1133 ipc/ipcd/extensions/transmngr/src/tmTransactionService.cpp
1134
1135VBox-xcpom-ipctmgrcom_TEMPLATE = XPCOMIPC
1136VBox-xcpom-ipctmgrcom_NOINST = 1
1137VBox-xcpom-ipctmgrcom_SOURCES = \
1138 ipc/ipcd/extensions/transmngr/common/tmTransaction.cpp \
1139 ipc/ipcd/extensions/transmngr/common/tmVector.cpp
1140
1141
1142# DCONNECT client shared object
1143VBoxXPCOMIPCC_TEMPLATE = XPCOMIPC
1144VBoxXPCOMIPCC_NAME.os2 = VBoxIPCC
1145ifneq ($(BUILD_TARGET),linux)
1146VBoxXPCOMIPCC_INST = $(INST_BIN)components/
1147endif
1148VBoxXPCOMIPCC_DEFS = HAVE_DEPENDENT_LIBS
1149VBoxXPCOMIPCC_SOURCES = \
1150 ipc/ipcd/client/src/ipcdclient.cpp \
1151 ipc/ipcd/client/src/ipcService.cpp \
1152 ipc/ipcd/client/src/ipcModuleFactory.cpp \
1153 ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp
1154VBoxXPCOMIPCC_SOURCES.win = \
1155 ipc/ipcd/client/src/ipcConnectionWin.cpp
1156VBoxXPCOMIPCC_SOURCES.darwin = \
1157 ipc/ipcd/client/src/ipcConnectionUnix.cpp
1158VBoxXPCOMIPCC_SOURCES.l4 = \
1159 ipc/ipcd/client/src/ipcConnectionUnix.cpp
1160VBoxXPCOMIPCC_SOURCES.linux = \
1161 ipc/ipcd/client/src/ipcConnectionUnix.cpp
1162VBoxXPCOMIPCC_SOURCES.os2 = \
1163 ipc/ipcd/client/src/ipcConnectionUnix.cpp
1164VBoxXPCOMIPCC_SOURCES.solaris = \
1165 ipc/ipcd/client/src/ipcConnectionUnix.cpp
1166VBoxXPCOMIPCC_LDFLAGS.darwin = -install_name @executable_path/components/VBoxXPCOMIPCC.dylib
1167VBoxXPCOMIPCC_LIBS = \
1168 $(TARGET_VBox-xpcom-ipcutils) \
1169 $(TARGET_VBox-xpcom-ipcshared) \
1170 $(TARGET_VBox-xpcom-ipcdlock) \
1171 $(TARGET_VBox-xpcom-ipctransmgr) \
1172 $(TARGET_VBox-xcpom-ipctmgrcom)
1173# EF
1174#VBoxXPCOMIPCC_LIBS += $(LIB_RUNTIME)
1175
1176# DCONNECT daemon executable
1177VBoxXPCOMIPCD_TEMPLATE = XPCOMIPCEXE
1178VBoxXPCOMIPCD_SOURCES = \
1179 ipc/ipcd/daemon/src/ipcd.cpp \
1180 ipc/ipcd/daemon/src/ipcClient.cpp \
1181 ipc/ipcd/daemon/src/ipcModuleReg.cpp \
1182 ipc/ipcd/daemon/src/ipcCommandModule.cpp
1183VBoxXPCOMIPCD_SOURCES.win = \
1184 ipc/ipcd/daemon/src/ipcdWin.cpp
1185VBoxXPCOMIPCD_SOURCES.darwin = \
1186 ipc/ipcd/daemon/src/ipcdUnix.cpp
1187VBoxXPCOMIPCD_SOURCES.l4 = \
1188 ipc/ipcd/daemon/src/ipcdUnix.cpp
1189VBoxXPCOMIPCD_SOURCES.linux = \
1190 ipc/ipcd/daemon/src/ipcdUnix.cpp
1191VBoxXPCOMIPCD_SOURCES.os2 = \
1192 ipc/ipcd/daemon/src/ipcdUnix.cpp
1193VBoxXPCOMIPCD_SOURCES.solaris = \
1194 ipc/ipcd/daemon/src/ipcdUnix.cpp
1195
1196#
1197# testcases
1198#
1199tstnsIFileEnumerator_TEMPLATE = XPCOMEXE
1200tstnsIFileEnumerator_SOURCES = xpcom/tests/nsIFileEnumerator.cpp
1201tstnsIFileTest_TEMPLATE = XPCOMEXE
1202tstnsIFileTest_SOURCES = xpcom/tests/nsIFileTest.cpp
1203tstTestArray_TEMPLATE = XPCOMEXE
1204tstTestArray_SOURCES = xpcom/tests/TestArray.cpp
1205tstTestAtoms_TEMPLATE = XPCOMEXE
1206tstTestAtoms_SOURCES = xpcom/tests/TestAtoms.cpp
1207tstTestAutoLock_TEMPLATE = XPCOMEXE
1208tstTestAutoLock_SOURCES = xpcom/tests/TestAutoLock.cpp
1209tstTestCallTemplates_TEMPLATE = XPCOMEXE
1210tstTestCallTemplates_SOURCES = xpcom/tests/TestCallTemplates.cpp
1211tstTestCOMPtr_TEMPLATE = XPCOMEXE
1212tstTestCOMPtr_SOURCES = xpcom/tests/TestCOMPtr.cpp
1213tstTestCOMPtrEq_TEMPLATE = XPCOMEXE
1214tstTestCOMPtrEq_SOURCES = xpcom/tests/TestCOMPtrEq.cpp
1215tstTestCRT_TEMPLATE = XPCOMEXE
1216tstTestCRT_SOURCES = xpcom/tests/TestCRT.cpp
1217tstTestFactory_TEMPLATE = XPCOMEXE
1218tstTestFactory_SOURCES = xpcom/tests/TestFactory.cpp
1219tstTestHashtables_TEMPLATE = XPCOMEXE
1220tstTestHashtables_SOURCES = xpcom/tests/TestHashtables.cpp
1221tstTestID_TEMPLATE = XPCOMEXE
1222tstTestID_SOURCES = xpcom/tests/TestID.cpp
1223tstTestObserverService_TEMPLATE= XPCOMEXE
1224tstTestObserverService_SOURCES = xpcom/tests/TestObserverService.cpp
1225tstTestPermanentAtoms_TEMPLATE = XPCOMEXE
1226tstTestPermanentAtoms_SOURCES = xpcom/tests/TestPermanentAtoms.cpp
1227tstTestPipes_TEMPLATE = XPCOMEXE
1228tstTestPipes_SOURCES = xpcom/tests/TestPipes.cpp
1229tstTestServMgr_TEMPLATE = XPCOMEXE
1230tstTestServMgr_SOURCES = xpcom/tests/TestServMgr.cpp
1231tstTestServMgr_INCS = xpcom/tests/services
1232tstTestThreads_TEMPLATE = XPCOMEXE
1233tstTestThreads_SOURCES = xpcom/tests/TestThreads.cpp
1234tstTestXPIDLString_TEMPLATE = XPCOMEXE
1235tstTestXPIDLString_SOURCES = xpcom/tests/TestXPIDLString.cpp
1236tstTestDeque_TEMPLATE = XPCOMEXE
1237tstTestDeque_SOURCES = xpcom/tests/TestDeque.cpp
1238tstTestAutoPtr_TEMPLATE = XPCOMEXE
1239tstTestAutoPtr_SOURCES = xpcom/tests/TestAutoPtr.cpp
1240tstTestMinStringAPI_TEMPLATE = XPCOMEXE
1241tstTestMinStringAPI_SOURCES = xpcom/tests/TestMinStringAPI.cpp
1242tstTestStrings_TEMPLATE = XPCOMEXE
1243tstTestStrings_SOURCES = xpcom/tests/TestStrings.cpp
1244tstPrimitiveTest_TEMPLATE = XPCOMEXE
1245tstPrimitiveTest_SOURCES = xpcom/typelib/xpt/tests/PrimitiveTest.c
1246tstSimpleTypeLib_TEMPLATE = XPCOMEXE
1247tstSimpleTypeLib_SOURCES = xpcom/typelib/xpt/tests/SimpleTypeLib.c
1248tstXptDump_TEMPLATE = XPCOMEXE
1249tstXptDump_SOURCES = xpcom/typelib/xpt/tools/xpt_dump.c
1250tstXptLink_TEMPLATE = XPCOMEXE
1251tstXptLink_SOURCES = xpcom/typelib/xpt/tools/xpt_link.c
1252
1253
1254
1255
1256IDLFILES = \
1257 xpcom/base/nsIDebug.idl \
1258 xpcom/base/nsIInterfaceRequestor.idl \
1259 xpcom/base/nsIMemory.idl \
1260 xpcom/base/nsIProgrammingLanguage.idl \
1261 xpcom/base/nsISupports.idl \
1262 xpcom/base/nsITraceRefcnt.idl \
1263 xpcom/base/nsIWeakReference.idl \
1264 xpcom/base/nsIConsoleMessage.idl \
1265 xpcom/base/nsIConsoleService.idl \
1266 xpcom/base/nsIConsoleListener.idl \
1267 xpcom/base/nsIErrorService.idl \
1268 xpcom/base/nsIException.idl \
1269 xpcom/base/nsIExceptionService.idl \
1270 xpcom/base/nsrootidl.idl \
1271 xpcom/components/nsIClassInfo.idl \
1272 xpcom/components/nsIComponentRegistrar.idl \
1273 xpcom/components/nsIFactory.idl \
1274 xpcom/components/nsIModule.idl \
1275 xpcom/components/nsIServiceManager.idl \
1276 xpcom/components/nsIComponentManager.idl \
1277 xpcom/components/nsICategoryManager.idl \
1278 xpcom/components/nsIComponentLoader.idl \
1279 xpcom/components/nsINativeComponentLoader.idl \
1280 xpcom/components/nsIComponentManagerObsolete.idl \
1281 xpcom/components/nsIComponentLoaderManager.idl \
1282 xpcom/ds/nsISupportsArray.idl \
1283 xpcom/ds/nsICollection.idl \
1284 xpcom/ds/nsISerializable.idl \
1285 xpcom/ds/nsIEnumerator.idl \
1286 xpcom/ds/nsISimpleEnumerator.idl \
1287 xpcom/ds/nsIObserverService.idl \
1288 xpcom/ds/nsIObserver.idl \
1289 xpcom/ds/nsIAtom.idl \
1290 xpcom/ds/nsIAtomService.idl \
1291 xpcom/ds/nsIProperties.idl \
1292 xpcom/ds/nsIPersistentProperties2.idl \
1293 xpcom/ds/nsIRecyclingAllocator.idl \
1294 xpcom/ds/nsIStringEnumerator.idl \
1295 xpcom/ds/nsISupportsPrimitives.idl \
1296 xpcom/ds/nsISupportsIterators.idl \
1297 xpcom/ds/nsIVariant.idl \
1298 xpcom/ds/nsITimelineService.idl \
1299 xpcom/ds/nsIArray.idl \
1300 xpcom/ds/nsIPropertyBag.idl \
1301 xpcom/ds/nsIHashable.idl \
1302 xpcom/io/nsIDirectoryService.idl \
1303 xpcom/io/nsIDirectoryEnumerator.idl \
1304 xpcom/io/nsIFile.idl \
1305 xpcom/io/nsILocalFile.idl \
1306 xpcom/io/nsILocalFileMac.idl \
1307 xpcom/io/nsIInputStream.idl \
1308 xpcom/io/nsIObjectInputStream.idl \
1309 xpcom/io/nsIBinaryInputStream.idl \
1310 xpcom/io/nsIObjectOutputStream.idl \
1311 xpcom/io/nsIBinaryOutputStream.idl \
1312 xpcom/io/nsIOutputStream.idl \
1313 xpcom/io/nsIStreamBufferAccess.idl \
1314 xpcom/io/nsIByteArrayInputStream.idl \
1315 xpcom/io/nsISeekableStream.idl \
1316 xpcom/io/nsIFastLoadFileControl.idl \
1317 xpcom/io/nsIFastLoadService.idl \
1318 xpcom/io/nsIInputStreamTee.idl \
1319 xpcom/io/nsIMultiplexInputStream.idl \
1320 xpcom/io/nsIPipe.idl \
1321 xpcom/io/nsIAsyncInputStream.idl \
1322 xpcom/io/nsIAsyncOutputStream.idl \
1323 xpcom/io/nsIScriptableInputStream.idl \
1324 xpcom/io/nsIStorageStream.idl \
1325 xpcom/io/nsIStringStream.idl \
1326 xpcom/io/nsILineInputStream.idl \
1327 xpcom/proxy/public/nsIProxyObjectManager.idl \
1328 xpcom/threads/nsIEventQueueService.idl \
1329 xpcom/threads/nsIEventQueue.idl \
1330 xpcom/threads/nsIEventTarget.idl \
1331 xpcom/threads/nsIRunnable.idl \
1332 xpcom/threads/nsIThread.idl \
1333 xpcom/threads/nsITimer.idl \
1334 xpcom/threads/nsIEnvironment.idl \
1335 xpcom/threads/nsITimerInternal.idl \
1336 xpcom/threads/nsITimerManager.idl \
1337 xpcom/threads/nsIProcess.idl \
1338 xpcom/reflect/xptinfo/public/nsIInterfaceInfo.idl \
1339 xpcom/reflect/xptinfo/public/nsIInterfaceInfoManager.idl \
1340 xpcom/reflect/xptinfo/public/nsIXPTLoader.idl \
1341 ipc/ipcd/client/public/ipcIService.idl \
1342 ipc/ipcd/client/public/ipcIMessageObserver.idl \
1343 ipc/ipcd/client/public/ipcIClientObserver.idl \
1344 ipc/ipcd/extensions/lock/public/ipcILockService.idl \
1345 ipc/ipcd/extensions/transmngr/public/ipcITransactionService.idl \
1346 ipc/ipcd/extensions/dconnect/public/ipcIDConnectService.idl \
1347 ipc/ipcd/extensions/transmngr/public/ipcITransactionObserver.idl
1348
1349
1350OTHER_CLEAN += \
1351 $(PATH_VBox-xpcom-string)/idl_ts \
1352 $(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.h,$(IDLFILES)))) \
1353 $(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.xpt,$(IDLFILES)))) \
1354 $(addprefix $(VBOX_PATH_SDK)/idl/,$(notdir $(IDLFILES))) \
1355 $(addprefix $(PATH_TARGET)/,$(notdir $(subst .idl,.xpt,$(IDLFILES))))
1356
1357
1358# generate rules
1359include $(PATH_KBUILD)/footer.kmk
1360
1361
1362
1363XPTFILES = $(addprefix $(PATH_TARGET)/, \
1364 nsIConsoleListener.xpt \
1365 nsIConsoleMessage.xpt \
1366 nsIConsoleService.xpt \
1367 nsIErrorService.xpt \
1368 nsIException.xpt \
1369 nsIExceptionService.xpt \
1370 nsIDebug.xpt \
1371 nsIInterfaceRequestor.xpt \
1372 nsIMemory.xpt \
1373 nsIProgrammingLanguage.xpt \
1374 nsISupports.xpt \
1375 nsITraceRefcnt.xpt \
1376 nsIWeakReference.xpt \
1377 nsrootidl.xpt \
1378 nsIAtom.xpt \
1379 nsIAtomService.xpt \
1380 nsICollection.xpt \
1381 nsIEnumerator.xpt \
1382 nsIPersistentProperties2.xpt \
1383 nsIPropertyBag.xpt \
1384 nsIRecyclingAllocator.xpt \
1385 nsIVariant.xpt \
1386 nsISerializable.xpt \
1387 nsIStringEnumerator.xpt \
1388 nsISupportsArray.xpt \
1389 nsISupportsIterators.xpt \
1390 nsITimelineService.xpt \
1391 nsIArray.xpt \
1392 nsIObserverService.xpt \
1393 nsIObserver.xpt \
1394 nsIProperties.xpt \
1395 nsISimpleEnumerator.xpt \
1396 nsISupportsPrimitives.xpt \
1397 nsIBinaryInputStream.xpt \
1398 nsIBinaryOutputStream.xpt \
1399 nsIByteArrayInputStream.xpt \
1400 nsIFastLoadFileControl.xpt \
1401 nsIFastLoadService.xpt \
1402 nsIInputStreamTee.xpt \
1403 nsILineInputStream.xpt \
1404 nsIMultiplexInputStream.xpt \
1405 nsIObjectInputStream.xpt \
1406 nsIObjectOutputStream.xpt \
1407 nsIPipe.xpt \
1408 nsISeekableStream.xpt \
1409 nsIStorageStream.xpt \
1410 nsIStringStream.xpt \
1411 nsIStreamBufferAccess.xpt \
1412 nsIAsyncInputStream.xpt \
1413 nsIAsyncOutputStream.xpt \
1414 nsIDirectoryService.xpt \
1415 nsIFile.xpt \
1416 nsILocalFile.xpt \
1417 nsIInputStream.xpt \
1418 nsIOutputStream.xpt \
1419 nsIScriptableInputStream.xpt \
1420 nsIComponentLoader.xpt \
1421 nsIComponentLoaderManager.xpt \
1422 nsIComponentManagerObsolete.xpt \
1423 nsINativeComponentLoader.xpt \
1424 nsIClassInfo.xpt \
1425 nsIComponentRegistrar.xpt \
1426 nsIFactory.xpt \
1427 nsIModule.xpt \
1428 nsIServiceManager.xpt \
1429 nsIComponentManager.xpt \
1430 nsICategoryManager.xpt \
1431 nsIThread.xpt \
1432 nsITimer.xpt \
1433 nsITimerInternal.xpt \
1434 nsITimerManager.xpt \
1435 nsIRunnable.xpt \
1436 nsIEventTarget.xpt \
1437 nsIEventQueue.xpt \
1438 nsIEventQueueService.xpt \
1439 nsIEnvironment.xpt \
1440 nsIProcess.xpt \
1441 nsIInterfaceInfo.xpt \
1442 nsIInterfaceInfoManager.xpt \
1443 nsIXPTLoader.xpt)
1444
1445OTHER_CLEAN += \
1446 $(XPTFILES)
1447
1448# combined typelib library
1449$(XPCOM_TYPELIB): $(XPTFILES) | $(TARGET_xp_link)
1450 $(call MSG_LINK,XPCOM_TYPELIB,$@)
1451 $(QUIET)$(TARGET_xpt_link) $@ $^
1452
1453# generate build stamps
1454$(PATH_VBox-xpcom-nspr)/_pr_bld.h:
1455 $(call MSG_GENERATE,,$@)
1456 $(QUIET)echo '#define _BUILD_STRING "$(shell date "+%Y-%m-%d %T")"' > $@
1457
1458$(PATH_VBox-xpcom-nspr)/_pl_bld.h:
1459 $(call MSG_GENERATE,,$@)
1460 $(QUIET)echo '#define _BUILD_STRING "$(shell date "+%Y-%m-%d %T")"' > $@
1461
1462#
1463# Generate IDL rules.
1464#
1465
1466##
1467# Define for compiling one IDL into a header and a typelib
1468# @param idl The filename with everything.
1469XPIDL_INCS = -I xpcom/base/ -I xpcom/ds/ -I xpcom/components/ -I xpcom/io/ -I xpcom/threads/ -I xpcom/reflect/xptinfo/public/
1470define def_IDL
1471$(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.h,$(idl)))) \
1472 $(PATH_TARGET)/$(notdir $(subst .idl,.xpt,$(idl))): $(idl) | $(TARGET_xpidl)
1473 $$(call MSG_TOOL,xpidl,XPCOM,$$<,$$@)
1474 $$(QUIET)$(MKDIR) -p $(VBOX_PATH_SDK)/include $(VBOX_PATH_SDK)/idl
1475 $$(QUIET)$$(VBOX_XPIDL) -m header $(XPIDL_INCS) -e $$@ $$<
1476 $$(QUIET)$$(VBOX_XPIDL) -m typelib $(XPIDL_INCS) -e $(addprefix $(PATH_TARGET)/,$(notdir $(subst .idl,.xpt,$(idl)))) $$<
1477 $$(QUIET)$(CP) $$< $$(VBOX_PATH_SDK)/idl
1478endef
1479
1480$(foreach idl, $(IDLFILES), $(eval $(def_IDL)))
1481
1482# dummy target.
1483$(PATH_VBox-xpcom-string)/idl_ts: $(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.h,$(IDLFILES))))
1484 $(call MSG_L1,IDL processing completed.)
1485 $(QUIET)$(MKDIR) -p $(dir $@)
1486 $(QUIET)$(ECHO_EXT) > $@
1487
1488# Manual dependency...
1489xpcom/string/src/nsAString.cpp: $(PATH_VBox-xpcom-string)/idl_ts
1490
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use