VirtualBox

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

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

OS/2: Changed the default path to glib and libIDL to $(PATH_DEVTOOLS_TRG)/glibidl/gcc335 (so that the .zip from hobbes can be just unpacked to $(PATH_DEVTOOLS_TRG)); made install glib and libIDL headers to the same directory as xpidl.exe.

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