VirtualBox

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

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

XPCOMBLDPROG should extend VBOXBLDPROG not the non-existing BLDPROG template.

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