VirtualBox

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

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

FreeBSD / cleanup.

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