VirtualBox

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

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

64-bit solaris / use -m32/64

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