VirtualBox

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

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

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette