VirtualBox

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

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

python: cleanup.

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