VirtualBox

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

Last change on this file since 11569 was 11569, checked in by vboxsync, 16 years ago

rework of Python XPCOM to make it ready for production

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