VirtualBox

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

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

enabled python builds if headers found

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