VirtualBox

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

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

more checks if python headers indeed here

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