VirtualBox

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

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

NSPR: build fixes and some makefile corresions/cleanups.

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