VirtualBox

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

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

Made the rpath $ORIGIN feature available to everyone (was solaris specific) so developers can drop that annoying LD_LIBRARY_PATH stuff. (Make sure your ld.so groks $ORIGIN and add VBOX_WITH_ORIGIN=1 to LocalConfig.kmk.) Hope solaris still works...

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