VirtualBox

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

Last change on this file since 2426 was 2366, checked in by vboxsync, 18 years ago

use kBuild-provided msg macros

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 46.2 KB
Line 
1#
2# Makefile for XPCOM.
3#
4
5#
6# Copyright (C) 2006 InnoTek Systemberatung GmbH
7#
8# This file is part of VirtualBox Open Source Edition (OSE), as
9# available from http://www.virtualbox.org. This file is free software;
10# you can redistribute it and/or modify it under the terms of the GNU
11# General Public License as published by the Free Software Foundation,
12# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
13# distribution. VirtualBox OSE is distributed in the hope that it will
14# be useful, but WITHOUT ANY WARRANTY of any kind.
15#
16# If you received this file as part of a commercial VirtualBox
17# distribution, then only the terms of your commercial VirtualBox
18# license agreement apply instead of the previous paragraph.
19#
20
21DEPTH = ../../..
22include $(PATH_KBUILD)/header.kmk
23
24
25#
26# Template for building the XPCOM libraries (shared).
27#
28TEMPLATE_XPCOM = XPCOM libraries (shared)
29TEMPLATE_XPCOM_EXTENDS = VBOXR3NP
30TEMPLATE_XPCOM_ASTOOL = $(TEMPLATE_VBOXR3NP_TOOL)
31TEMPLATE_XPCOM_ASFLAGS = $(NO_SUCH_VARIABLE)
32TEMPLATE_XPCOM_ASDEFS = $(NO_SUCH_VARIABLE)
33TEMPLATE_XPCOM_CXXFLAGS = -pipe -ansi -Wall -Wno-unused -Wno-non-virtual-dtor \
34 $(VBOX_GCC_Wno-invalid-offsetof) -Wno-sign-compare -Wno-unused -Wno-ctor-dtor-privacy
35
36TEMPLATE_XPCOM_CXXFLAGS.debug = -fno-inline
37TEMPLATE_XPCOM_CXXFLAGS.release = -O
38TEMPLATE_XPCOM_CXXFLAGS.profile = -O
39TEMPLATE_XPCOM_CXXFLAGS.darwin = -fpascal-strings -fshort-wchar -fno-common -fno-rtti
40TEMPLATE_XPCOM_CXXFLAGS.l4 = -fno-exceptions -nostdinc
41TEMPLATE_XPCOM_CXXFLAGS.linux = -pthread
42TEMPLATE_XPCOM_CFLAGS = -pipe -Wall -Wno-unused -Wno-parentheses -Wno-uninitialized
43TEMPLATE_XPCOM_CFLAGS.debug = -fno-inline
44TEMPLATE_XPCOM_CFLAGS.release = -O
45TEMPLATE_XPCOM_CFLAGS.profile = -O
46TEMPLATE_XPCOM_CFLAGS.l4 = -nostdinc
47TEMPLATE_XPCOM_CFLAGS.linux = -pthread -ansi
48TEMPLATE_XPCOM_DEFS = MOZILLA_CLIENT=1 NDEBUG=1
49TEMPLATE_XPCOM_DEFS.x86 = i386=1
50TEMPLATE_XPCOM_DEFS.amd64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY\(a\,b\)=__builtin_va_copy\(a\,b\)
51TEMPLATE_XPCOM_DEFS.darwin = OSTYPE=\"Darwin8.8.1\" OSARCH=\"Darwin\" MOZ_DLL_SUFFIX=\".dylib\" XP_UNIX=1 XP_MACOSX=1 TARGET_CARBON=1
52TEMPLATE_XPCOM_DEFS.linux = OSTYPE=\"Linux2.6\" OSARCH=\"Linux\" MOZ_DLL_SUFFIX=\".so\" XP_UNIX=1 _GNU_SOURCE
53TEMPLATE_XPCOM_DEFS.l4 = OSTYPE=\"L4ENV\" OSARCH=\"L4\" MOZ_DLL_SUFFIX=\".s.so\" XP_UNIX=1 L4ENV
54TEMPLATE_XPCOM_DEFS.os2 = OSTYPE=\"OS/2 4.5\" OSARCH=\"OS/2\" MOZ_DLL_SUFFIX=\".dll\" XP_UNIX=1
55TEMPLATE_XPCOM_LDFLAGS.darwin = $(VBOXR3NP_LDFLAGS.darwin) \
56 -fshort-wchar -fno-rtti -fno-exceptions -fpascal-strings \
57 -framework CoreServices -framework CoreFoundation -framework Foundation -framework AppKit -framework Carbon
58ifeq ($(filter os2 win,$(BUILD_TARGET)),)
59 TEMPLATE_XPCOM_CXXFLAGS += -fPIC
60 TEMPLATE_XPCOM_CFLAGS += -fPIC
61 TEMPLATE_XPCOM_LDFLAGS += -fPIC
62 TEMPLATE_XPCOM_DEFS += MOZ_PRESERVE_PIC
63endif
64TEMPLATE_XPCOM_INCS = $(PATH_TARGET) \
65 xpcom/build \
66 xpcom/ds \
67 xpcom/io \
68 xpcom/base \
69 xpcom/components \
70 xpcom/threads \
71 xpcom/proxy/src \
72 xpcom/reflect/xptcall/src \
73 ipc/ipcd/client/src \
74 ipc/ipcd/shared/src \
75 ipc/ipcd/extensions/lock/src \
76 ipc/ipcd/extensions/transmngr/src \
77 ipc/ipcd/extensions/dconnect/src \
78 ipc/ipcd/extensions/transmngr/common \
79 $(VBOX_PATH_SDK)/include \
80 $(VBOX_PATH_SDK)/include/xpcom \
81 $(VBOX_PATH_SDK)/include/xpcom/nsprpub \
82 $(VBOX_PATH_SDK)/include/xpcom/string \
83 $(VBOX_PATH_SDK)/include/xpcom/xpcom \
84 $(VBOX_PATH_SDK)/include/xpcom/ipcd
85TEMPLATE_XPCOM_INCS.darwin = /Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon
86TEMPLATE_XPCOM_INCS.l4 = $(L4_INCDIR) $(VBOX_L4_GCC3_INCS)
87TEMPLATE_XPCOM_LDFLAGS.l4 = $(L4_DIR)/lib/x86_586/crt0.o \
88 -T$(L4_DIR)/lib/x86_586/main_rel.ld -nostdlib \
89 # -Wl,--whole-archive,--no-allow-shlib-undefined
90TEMPLATE_XPCOM_LIBS.l4 = $(VBOX_GCC_LIBGCC)
91TEMPLATE_XPCOM_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $(TARGET_$(hdrinst))) \
92 $(PATH_VBox-xpcom-string)/idl_ts
93
94
95#
96# Template for building the XPCOM executables
97#
98TEMPLATE_XPCOMEXE = XPCOM executable files (testcases)
99TEMPLATE_XPCOMEXE_EXTENDS = XPCOM
100## @todo undo -fPIC.
101TEMPLATE_XPCOMEXE_INCS = $(PATH_TARGET) \
102 ipc/ipcd/shared/src \
103 $(VBOX_PATH_SDK)/include \
104 $(VBOX_PATH_SDK)/include/xpcom \
105 $(VBOX_PATH_SDK)/include/xpcom/nsprpub \
106 $(VBOX_PATH_SDK)/include/xpcom/string \
107 $(VBOX_PATH_SDK)/include/xpcom/xpcom \
108 $(VBOX_PATH_SDK)/include/xpcom/ipcd
109TEMPLATE_XPCOMEXE_LIBS = \
110 $(TARGET_VBox-xpcom-ipcshared) \
111 $(TARGET_VBoxXPCOM)
112TEMPLATE_XPCOMEXE_LIBS.linux = dl $(LIB_PTHREAD)
113TEMPLATE_XPCOMEXE_LIBS.l4 = $(LIB_RUNTIME) $(VBOX_GCC_LIBGCC)
114TEMPLATE_XPCOMEXE_LDFLAGS.darwin = -bind_at_load $(TEMPLATE_XPCOM_LDFLAGS.darwin)
115TEMPLATE_XPCOMEXE_LDFLAGS.l4 = $(L4_DIR)/lib/x86_586/crt0.o \
116 -T$(L4_DIR)/lib/x86_586/main_dyn.ld -nostdlib -lgcc \
117 -Wl,--export-dynamic,--dynamic-linker=libld-l4.s.so \
118 -Wl,--rpath-link,$(L4_LIBDIR) \
119 # -Wl,--whole-archive,--no-allow-shlib-undefined
120
121#
122# Template for building XPCOM executables for running at build time.
123#
124# It extends the BLDPROG template in config.kmk but overrides CFLAGS
125# and CXXFLAGS completely at the moment.
126#
127TEMPLATE_XPCOMBLDPROG = XPCOM Build programs executables
128TEMPLATE_XPCOMBLDPROG_EXTENDS = BLDPROG
129
130TEMPLATE_XPCOMBLDPROG_DEFS = $(TEMPLATE_BLDPROG_DEFS) $(TEMPLATE_XPCOMEXE_DEFS)
131TEMPLATE_XPCOMBLDPROG_DEFS.$(BUILD_TARGET) = $(TEMPLATE_BLDPROG_DEFS.$(BUILD_TARGET)) $(TEMPLATE_XPCOMEXE_DEFS.$(BUILD_TARGET))
132TEMPLATE_XPCOMBLDPROG_DEFS.$(BUILD_TARGET_ARCH) = $(TEMPLATE_BLDPROG_DEFS.$(BUILD_TARGET_ARCH)) $(TEMPLATE_XPCOMEXE_DEFS.$(BUILD_TARGET_ARCH))
133TEMPLATE_XPCOMBLDPROG_CXXFLAGS = -ansi -Wall -Wno-non-virtual-dtor
134TEMPLATE_XPCOMBLDPROG_CXXFLAGS.linux = -pthread
135TEMPLATE_XPCOMBLDPROG_CXXFLAGS.release = -O
136TEMPLATE_XPCOMBLDPROG_CXXFLAGS.profile = -O
137TEMPLATE_XPCOMBLDPROG_CFLAGS = -pipe -ansi -Wall -Wno-unused
138TEMPLATE_XPCOMBLDPROG_CFLAGS.linux = -pthread
139TEMPLATE_XPCOMBLDPROG_CFLAGS.release = -O
140TEMPLATE_XPCOMBLDPROG_CFLAGS.profile = -O
141TEMPLATE_XPCOMBLDPROG_INCS = $(VBOX_PATH_SDK)/include \
142 $(VBOX_PATH_SDK)/include/xpcom \
143 $(VBOX_PATH_SDK)/include/xpcom/nsprpub \
144 $(VBOX_PATH_SDK)/include/xpcom/string \
145 $(VBOX_PATH_SDK)/include/xpcom/xpcom \
146 $(VBOX_PATH_SDK)/include/xpcom/ipcd
147TEMPLATE_XPCOMBLDPROG_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $(TARGET_$(hdrinst)))
148
149
150#
151# Header installs.
152#
153INSTALLS = \
154 NSPRPUB-HEADERS \
155 NSPRPUB-MD-HEADERS \
156 NSPRPUB-OBS-HEADERS \
157 NSPRPUB-PRIV-HEADERS \
158 STRING-HEADERS \
159 XPCOM-HEADERS \
160 IPCD-HEADERS
161
162#
163# The IDL compiler and typelib linker.
164#
165BLDPROGS = \
166 xpidl \
167 xpt_link
168
169#
170# We build several libraries so that any linker command line
171# length restrictions limit will be avoided. (Solaris, Mac?)
172#
173LIBRARIES = \
174 VBox-xpcom-nspr \
175 VBox-xpcom-typelib \
176 VBox-xpcom-string \
177 VBox-xpcom-base \
178 VBox-xpcom-ds \
179 VBox-xpcom-io \
180 VBox-xpcom-components \
181 VBox-xpcom-threads \
182 VBox-xpcom-xptinfo \
183 VBox-xpcom-xptcall \
184 VBox-xpcom-proxy \
185 VBoxXPCOMGlue \
186 VBox-xpcom-ipcutils \
187 VBox-xpcom-ipcshared \
188 VBox-xpcom-ipcdlock \
189 VBox-xpcom-ipctransmgr \
190 VBox-xcpom-ipctmgrcom
191
192DLLS = \
193 VBoxXPCOM \
194 VBoxXPCOMIPCC
195
196ifdef VBOX_WITH_TESTCASES
197PROGRAMS = \
198 tstnsIFileEnumerator \
199 tstnsIFileTest \
200 tstTestArray \
201 tstTestAtoms \
202 tstTestAutoLock \
203 tstTestCallTemplates \
204 tstTestCOMPtr \
205 tstTestCOMPtrEq \
206 tstTestCRT \
207 tstTestFactory \
208 tstTestHashtables \
209 tstTestID \
210 tstTestObserverService \
211 tstTestPipes \
212 tstTestServMgr \
213 tstTestThreads \
214 tstTestXPIDLString \
215 tstTestDeque \
216 tstTestAutoPtr \
217 tstTestMinStringAPI \
218 tstTestStrings \
219 tstPrimitiveTest \
220 tstSimpleTypeLib \
221 tstXptDump \
222 tstXptLink
223# tstTestPermanentAtoms
224endif # VBOX_WITH_TESTCASES
225PROGRAMS += VBoxXPCOMIPCD
226
227ifeq ($(BUILD_TARGET),linux)
228 XPCOM_TYPELIB = $(PATH_BIN)/VBoxXPCOMBase.xpt
229else
230 XPCOM_TYPELIB = $(PATH_BIN)/components/VBoxXPCOMBase.xpt
231endif
232OTHERS = $(XPCOM_TYPELIB)
233OTHER_CLEAN = \
234 $(PATH_TARGET)/VBox-xpcom-nspr/_pr_bld.h \
235 $(PATH_TARGET)/VBox-xpcom-nspr/_pl_bld.h \
236 $(XPCOM_TYPELIB)
237
238
239
240#
241# SDK headers - lot's of files to install...
242#
243# Tip: If you are going to remove files here, you might
244# wish to do a `kmk uninstall' first to avoid have
245# obsoleted files in the $(INST_SDK) directory.
246#
247
248NSPRPUB-HEADERS_INST = $(INST_SDK)/include/xpcom/nsprpub/
249NSPRPUB-HEADERS_IFFLAGS = -m 644
250NSPRPUB-HEADERS_SOURCES = \
251 nsprpub/pr/include/nspr.h \
252 nsprpub/lib/ds/plarena.h \
253 nsprpub/lib/ds/plarenas.h \
254 nsprpub/lib/libc/include/plbase64.h \
255 nsprpub/lib/libc/include/plerror.h \
256 nsprpub/lib/libc/include/plgetopt.h \
257 nsprpub/lib/ds/plhash.h \
258 nsprpub/lib/libc/include/plresolv.h \
259 nsprpub/lib/libc/include/plstr.h \
260 nsprpub/pr/include/pratom.h \
261 nsprpub/pr/include/prbit.h \
262 nsprpub/pr/include/prclist.h \
263 nsprpub/pr/include/prcmon.h \
264 nsprpub/pr/include/prcountr.h \
265 nsprpub/pr/include/prcvar.h \
266 nsprpub/pr/include/prdtoa.h \
267 nsprpub/pr/include/prenv.h \
268 nsprpub/pr/include/prerr.h \
269 nsprpub/pr/include/prerror.h \
270 nsprpub/pr/include/prinet.h \
271 nsprpub/pr/include/prinit.h \
272 nsprpub/pr/include/prinrval.h \
273 nsprpub/pr/include/prio.h \
274 nsprpub/pr/include/pripcsem.h \
275 nsprpub/pr/include/prlink.h \
276 nsprpub/pr/include/prlock.h \
277 nsprpub/pr/include/prlog.h \
278 nsprpub/pr/include/prlong.h \
279 nsprpub/pr/include/prmem.h \
280 nsprpub/pr/include/prmon.h \
281 nsprpub/pr/include/prmwait.h \
282 nsprpub/pr/include/prnetdb.h \
283 nsprpub/pr/include/prolock.h \
284 nsprpub/pr/include/prpdce.h \
285 nsprpub/pr/include/prprf.h \
286 nsprpub/pr/include/prproces.h \
287 nsprpub/pr/include/prrng.h \
288 nsprpub/pr/include/prrwlock.h \
289 nsprpub/pr/include/prshm.h \
290 nsprpub/pr/include/prshma.h \
291 nsprpub/pr/include/prsystem.h \
292 nsprpub/pr/include/prthread.h \
293 nsprpub/pr/include/prtime.h \
294 nsprpub/pr/include/prtpool.h \
295 nsprpub/pr/include/prtrace.h \
296 nsprpub/pr/include/prtypes.h \
297 nsprpub/pr/include/prvrsion.h \
298 nsprpub/pr/include/prwin16.h \
299 nsprpub/pr/include/md/_vbox.cfg=>prcpucfg.h \
300
301NSPRPUB-MD-HEADERS_INST = $(INST_SDK)/include/xpcom/nsprpub/md
302NSPRPUB-MD-HEADERS_IFFLAGS = -m 644
303NSPRPUB-MD-HEADERS_SOURCES = \
304 nsprpub/pr/include/md/_darwin.h \
305 nsprpub/pr/include/md/_freebsd.h \
306 nsprpub/pr/include/md/_l4v2.h \
307 nsprpub/pr/include/md/_linux.h \
308 nsprpub/pr/include/md/_macos.h \
309 nsprpub/pr/include/md/_netbsd.h \
310 nsprpub/pr/include/md/_openbsd.h \
311 nsprpub/pr/include/md/_os2.h \
312 nsprpub/pr/include/md/_solaris.h \
313 nsprpub/pr/include/md/_unix_errors.h \
314 nsprpub/pr/include/md/_unixos.h \
315 nsprpub/pr/include/md/_pth.h \
316 nsprpub/pr/include/md/prosdep.h \
317 \
318 nsprpub/pr/include/md/_freebsd.cfg \
319 nsprpub/pr/include/md/_linux.cfg \
320 nsprpub/pr/include/md/_darwin.cfg \
321 nsprpub/pr/include/md/_netbsd.cfg \
322 nsprpub/pr/include/md/_openbsd.cfg \
323 nsprpub/pr/include/md/_os2.cfg \
324 nsprpub/pr/include/md/_solaris32.cfg \
325 nsprpub/pr/include/md/_solaris64.cfg \
326 nsprpub/pr/include/md/_l4v2.cfg
327
328NSPRPUB-OBS-HEADERS_INST = $(INST_SDK)/include/xpcom/nsprpub/obsolete
329NSPRPUB-OBS-HEADERS_IFFLAGS = -m 644
330NSPRPUB-OBS-HEADERS_SOURCES = \
331 nsprpub/pr/include/obsolete/pralarm.h \
332 nsprpub/pr/include/obsolete/probslet.h \
333 nsprpub/pr/include/obsolete/protypes.h \
334 nsprpub/pr/include/obsolete/prsem.h
335
336NSPRPUB-PRIV-HEADERS_INST = $(INST_SDK)/include/xpcom/nsprpub/private
337NSPRPUB-PRIV-HEADERS_IFFLAGS = -m 644
338NSPRPUB-PRIV-HEADERS_SOURCES = \
339 nsprpub/pr/include/private/pprio.h \
340 nsprpub/pr/include/private/pprthred.h \
341 nsprpub/pr/include/private/prpriv.h
342
343STRING-HEADERS_INST = $(INST_SDK)/include/xpcom/string
344STRING-HEADERS_IFFLAGS = -m 644
345STRING-HEADERS_SOURCES = \
346 xpcom/string/public/nsAString.h \
347 xpcom/string/public/nsAlgorithm.h \
348 xpcom/string/public/nsCharTraits.h \
349 xpcom/string/public/nsDependentString.h \
350 xpcom/string/public/nsDependentSubstring.h \
351 xpcom/string/public/nsEmbedString.h \
352 xpcom/string/public/nsLiteralString.h \
353 xpcom/string/public/nsObsoleteAString.h \
354 xpcom/string/public/nsPrintfCString.h \
355 xpcom/string/public/nsPromiseFlatString.h \
356 xpcom/string/public/nsReadableUtils.h \
357 xpcom/string/public/nsString.h \
358 xpcom/string/public/nsStringAPI.h \
359 xpcom/string/public/nsStringFwd.h \
360 xpcom/string/public/nsStringIterator.h \
361 xpcom/string/public/nsSubstring.h \
362 xpcom/string/public/nsSubstringTuple.h \
363 xpcom/string/public/nsTAString.h \
364 xpcom/string/public/nsTDependentString.h \
365 xpcom/string/public/nsTDependentSubstring.h \
366 xpcom/string/public/nsTObsoleteAString.h \
367 xpcom/string/public/nsTPromiseFlatString.h \
368 xpcom/string/public/nsTString.h \
369 xpcom/string/public/nsTSubstring.h \
370 xpcom/string/public/nsTSubstringTuple.h \
371 xpcom/string/public/nsUTF8Utils.h \
372 xpcom/string/public/nsXPIDLString.h \
373 xpcom/string/public/string-template-def-char.h \
374 xpcom/string/public/string-template-def-unichar.h \
375 xpcom/string/public/string-template-undef.h
376
377XPCOM-HEADERS_INST = $(INST_SDK)/include/xpcom/xpcom
378XPCOM-HEADERS_IFFLAGS = -m 644
379XPCOM-HEADERS_SOURCES = \
380 xpcom/base/nsAgg.h \
381 xpcom/io/nsAppDirectoryServiceDefs.h \
382 xpcom/ds/nsArray.h \
383 xpcom/ds/nsArrayEnumerator.h \
384 xpcom/ds/nsAtomService.h \
385 xpcom/ds/nsAutoBuffer.h \
386 xpcom/threads/nsAutoLock.h \
387 xpcom/base/nsAutoPtr.h \
388 xpcom/ds/nsBaseHashtable.h \
389 xpcom/ds/nsCOMArray.h \
390 xpcom/glue/nsCOMPtr.h \
391 xpcom/ds/nsCRT.h \
392 xpcom/components/nsCategoryManagerUtils.h \
393 xpcom/ds/nsCheapSets.h \
394 xpcom/ds/nsClassHashtable.h \
395 xpcom/base/nsCom.h \
396 xpcom/components/nsComponentManagerObsolete.h \
397 xpcom/components/nsComponentManagerUtils.h \
398 xpcom/ds/nsCppSharedAllocator.h \
399 xpcom/ds/nsDataHashtable.h \
400 xpcom/glue/nsDebug.h \
401 xpcom/base/nsDebugImpl.h \
402 xpcom/ds/nsDeque.h \
403 xpcom/io/nsDirectoryService.h \
404 xpcom/io/nsDirectoryServiceDefs.h \
405 xpcom/io/nsDirectoryServiceUtils.h \
406 xpcom/ds/nsDoubleHashtable.h \
407 xpcom/ds/nsEnumeratorUtils.h \
408 xpcom/base/nsError.h \
409 xpcom/io/nsEscape.h \
410 xpcom/threads/nsEventQueueUtils.h \
411 xpcom/io/nsFastLoadPtr.h \
412 xpcom/io/nsFastLoadService.h \
413 xpcom/ds/nsFixedSizeAllocator.h \
414 xpcom/glue/nsGenericFactory.h \
415 xpcom/ds/nsHashKeys.h \
416 xpcom/ds/nsHashSets.h \
417 xpcom/ds/nsHashtable.h \
418 xpcom/base/nsIAllocator.h \
419 xpcom/ds/nsIByteBuffer.h \
420 xpcom/base/nsID.h \
421 xpcom/glue/nsIGenericFactory.h \
422 xpcom/base/nsIID.h \
423 xpcom/glue/nsIInterfaceRequestorUtils.h \
424 xpcom/components/nsIServiceManagerObsolete.h \
425 xpcom/components/nsIServiceManagerUtils.h \
426 xpcom/base/nsISupportsBase.h \
427 xpcom/glue/nsISupportsImpl.h \
428 xpcom/base/nsISupportsObsolete.h \
429 xpcom/glue/nsISupportsUtils.h \
430 xpcom/ds/nsIUnicharBuffer.h \
431 xpcom/io/nsIUnicharInputStream.h \
432 xpcom/glue/nsIWeakReferenceUtils.h \
433 xpcom/ds/nsInt64.h \
434 xpcom/ds/nsInterfaceHashtable.h \
435 xpcom/io/nsLinebreakConverter.h \
436 xpcom/io/nsLocalFile.h \
437 xpcom/io/nsLocalFileUnix.h \
438 xpcom/io/nsLocalFileOS2.h \
439 xpcom/io/nsLocalFileOSX.h \
440 xpcom/glue/nsMemory.h \
441 xpcom/components/nsModule.h \
442 xpcom/io/nsMultiplexInputStream.h \
443 xpcom/io/nsNativeCharsetUtils.h \
444 xpcom/components/nsNativeComponentLoader.h \
445 xpcom/ds/nsObserverService.h \
446 xpcom/components/nsObsoleteModuleLoading.h \
447 xpcom/threads/nsProcess.h \
448 xpcom/proxy/public/nsProxiedService.h \
449 xpcom/proxy/public/nsProxyEvent.h \
450 xpcom/proxy/public/nsProxyRelease.h \
451 xpcom/ds/nsQuickSort.h \
452 xpcom/ds/nsRecyclingAllocator.h \
453 xpcom/ds/nsRefPtrHashtable.h \
454 xpcom/io/nsScriptableInputStream.h \
455 xpcom/ds/nsStaticAtom.h \
456 xpcom/components/nsStaticComponent.h \
457 xpcom/ds/nsStaticNameTable.h \
458 xpcom/io/nsStorageStream.h \
459 xpcom/io/nsStreamUtils.h \
460 xpcom/ds/nsStringEnumerator.h \
461 xpcom/io/nsStringIO.h \
462 xpcom/io/nsStringStream.h \
463 xpcom/ds/nsSupportsArray.h \
464 xpcom/ds/nsSupportsPrimitives.h \
465 xpcom/ds/nsTHashtable.h \
466 xpcom/ds/nsTextFormatter.h \
467 xpcom/ds/nsTime.h \
468 xpcom/glue/nsTraceRefcnt.h \
469 xpcom/base/nsTraceRefcntImpl.h \
470 xpcom/ds/nsUnitConversion.h \
471 xpcom/ds/nsValueArray.h \
472 xpcom/ds/nsVariant.h \
473 xpcom/ds/nsVoidArray.h \
474 xpcom/base/nsWeakPtr.h \
475 xpcom/glue/nsWeakReference.h \
476 xpcom/build/nsXPCOM.h \
477 xpcom/build/nsXPCOMCID.h \
478 xpcom/glue/standalone/nsXPCOMGlue.h \
479 xpcom/base/nscore.h \
480 xpcom/ds/pldhash.h \
481 xpcom/threads/plevent.h \
482 xpcom/components/xcDll.h \
483 xpcom/typelib/xpt/public/xpt_arena.h \
484 xpcom/typelib/xpt/public/xpt_struct.h \
485 xpcom/typelib/xpt/public/xpt_xdr.h \
486 xpcom/reflect/xptcall/public/xptcall.h \
487 xpcom/reflect/xptcall/public/xptcstubsdecl.inc \
488 xpcom/reflect/xptcall/public/xptcstubsdef.inc \
489 xpcom/reflect/xptinfo/public/xptinfo.h \
490 xpcom-config.h
491
492IPCD-HEADERS_INST = $(INST_SDK)/include/xpcom/ipcd
493IPCD-HEADERS_IFFLAGS = -m 644
494IPCD-HEADERS_SOURCES = \
495 ipc/ipcd/client/public/ipcCID.h \
496 ipc/ipcd/extensions/lock/public/ipcLockCID.h \
497 ipc/ipcd/util/public/ipcMessageReader.h \
498 ipc/ipcd/util/public/ipcMessageWriter.h \
499 ipc/ipcd/daemon/public/ipcModule.h \
500 ipc/ipcd/daemon/public/ipcModuleUtil.h \
501 ipc/ipcd/client/public/ipcdclient.h
502
503
504#
505# The IDL compiler.
506#
507# We build it statically because we cannot rely on additional .a files
508# like in the original build
509#
510xpidl_TEMPLATE = XPCOMBLDPROG
511xpidl_DEFS = EXPORT_XPT_API
512## @todo This assumes HOST == TARGET.
513xpidl_INST = $(INST_SDK)/bin/
514xpidl_SOURCES = \
515 xpcom/typelib/xpidl/xpidl.c \
516 xpcom/typelib/xpidl/xpidl_idl.c \
517 xpcom/typelib/xpidl/xpidl_util.c \
518 xpcom/typelib/xpidl/xpidl_header.c \
519 xpcom/typelib/xpidl/xpidl_typelib.c \
520 xpcom/typelib/xpidl/xpidl_doc.c \
521 xpcom/typelib/xpidl/xpidl_java.c \
522 xpcom/typelib/xpt/src/xpt_arena.c \
523 xpcom/typelib/xpt/src/xpt_struct.c \
524 xpcom/typelib/xpt/src/xpt_xdr.c
525
526# We do these ONCE.
527libIDL_config_cflags := $(shell $(VBOX_LIBIDL_CONFIG) --cflags)
528libIDL_config_libs := $(shell $(VBOX_LIBIDL_CONFIG) --libs)
529xpidl_CFLAGS = \
530 $(libIDL_config_cflags)
531xpidl_LDFLAGS = \
532 $(libIDL_config_libs)
533
534#
535# The XPT linker.
536#
537xpt_link_TEMPLATE = XPCOMBLDPROG
538xpt_link_SOURCES = \
539 xpcom/typelib/xpt/tools/xpt_link.c \
540 xpcom/typelib/xpt/src/xpt_arena.c \
541 xpcom/typelib/xpt/src/xpt_struct.c \
542 xpcom/typelib/xpt/src/xpt_xdr.c
543
544
545#
546# The NSPR Library.
547#
548VBox-xpcom-nspr_TEMPLATE = XPCOM
549VBox-xpcom-nspr_NOINST = 1
550VBox-xpcom-nspr_DEFS = \
551 _NSPR_BUILD_ \
552 HAVE_LCHOWN=1 \
553 HAVE_STRERROR=1 \
554 FORCE_PR_LOG
555VBox-xpcom-nspr_DEFS.darwin = \
556 HAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 \
557 HAVE_BSD_FLOCK=1 \
558 _PR_PTHREADS
559VBox-xpcom-nspr_DEFS.freebsd = \
560 HAVE_CVAR_BUILT_ON_SEM \
561 _PR_PTHREADS
562# FIXME: LINUX should be defined by _linux.cfg
563VBox-xpcom-nspr_DEFS.linux = \
564 LINUX=1 \
565 _POSIX_SOURCE=1 \
566 _BSD_SOURCE=1 \
567 _SVID_SOURCE=1 \
568 _REENTRANT=1 \
569 _LARGEFILE64_SOURCE=1 \
570 HAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 \
571 HAVE_VISIBILITY_PRAGMA=1 \
572 HAVE_FCNTL_FILE_LOCKING=1 \
573 HAVE_CVAR_BUILT_ON_SEM \
574 _PR_PTHREADS
575# _BSD_SOURCE is here to keep the Glibc header files happy and make them include the right things
576# FIXME: L4 should be defined by _linux.cfg
577VBox-xpcom-nspr_DEFS.l4 = \
578 L4=1 \
579 _REENTRANT=1 \
580 _LARGEFILE64_SOURCE=1 \
581 _POSIX_SOURCE=1 \
582 _BSD_SOURCE=1 \
583 HAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 \
584 HAVE_VISIBILITY_PRAGMA=1 \
585 HAVE_FCNTL_FILE_LOCKING=1 \
586 HAVE_CVAR_BUILT_ON_SEM
587VBox-xpcom-nspr_DEFS.netbsd = \
588 _PR_PTHREADS
589VBox-xpcom-nspr_DEFS.openbsd = \
590 _PR_PTHREADS
591VBox-xpcom-nspr_DEFS.os2 =
592VBox-xpcom-nspr_DEFS.solaris = \
593 _PR_PTHREADS
594VBox-xpcom-nspr_INCS = \
595 nsprpub/pr/include/private \
596 $(PATH_TARGET)/VBox-xpcom-nspr
597
598VBox-xpcom-nspr_SOURCES = \
599 nsprpub/pr/src/io/prfdcach.c \
600 nsprpub/pr/src/io/prmwait.c \
601 nsprpub/pr/src/io/priometh.c \
602 nsprpub/pr/src/io/pripv6.c \
603 nsprpub/pr/src/io/prmapopt.c \
604 nsprpub/pr/src/io/prlayer.c \
605 nsprpub/pr/src/io/prlog.c \
606 nsprpub/pr/src/io/prmmap.c \
607 nsprpub/pr/src/io/prpolevt.c \
608 nsprpub/pr/src/io/prprf.c \
609 nsprpub/pr/src/io/prscanf.c \
610 nsprpub/pr/src/io/prstdio.c \
611 nsprpub/pr/src/linking/prlink.c \
612 nsprpub/pr/src/malloc/prmalloc.c \
613 nsprpub/pr/src/malloc/prmem.c \
614 nsprpub/pr/src/md/prosdep.c \
615 nsprpub/pr/src/memory/prseg.c \
616 nsprpub/pr/src/memory/prshm.c \
617 nsprpub/pr/src/memory/prshma.c \
618 nsprpub/pr/src/misc/pralarm.c \
619 nsprpub/pr/src/misc/pratom.c \
620 nsprpub/pr/src/misc/prcountr.c \
621 nsprpub/pr/src/misc/prdtoa.c \
622 nsprpub/pr/src/misc/prenv.c \
623 nsprpub/pr/src/misc/prerr.c \
624 nsprpub/pr/src/misc/prerror.c \
625 nsprpub/pr/src/misc/prerrortable.c \
626 nsprpub/pr/src/misc/prinit.c \
627 nsprpub/pr/src/misc/prinrval.c \
628 nsprpub/pr/src/misc/pripc.c \
629 nsprpub/pr/src/misc/prlog2.c \
630 nsprpub/pr/src/misc/prlong.c \
631 nsprpub/pr/src/misc/prnetdb.c \
632 nsprpub/pr/src/misc/prolock.c \
633 nsprpub/pr/src/misc/prrng.c \
634 nsprpub/pr/src/misc/prsystem.c \
635 nsprpub/pr/src/misc/prtime.c \
636 nsprpub/pr/src/misc/prthinfo.c \
637 nsprpub/pr/src/misc/prtpool.c \
638 nsprpub/pr/src/misc/prtrace.c \
639 nsprpub/pr/src/threads/prcmon.c \
640 nsprpub/pr/src/threads/prrwlock.c \
641 nsprpub/pr/src/threads/prtpd.c \
642 nsprpub/pr/src/prvrsion.c \
643 nsprpub/lib/ds/plarena.c \
644 nsprpub/lib/ds/plhash.c \
645 nsprpub/lib/libc/src/strlen.c \
646 nsprpub/lib/libc/src/strcpy.c \
647 nsprpub/lib/libc/src/strdup.c \
648 nsprpub/lib/libc/src/strcat.c \
649 nsprpub/lib/libc/src/strcmp.c \
650 nsprpub/lib/libc/src/strccmp.c \
651 nsprpub/lib/libc/src/strchr.c \
652 nsprpub/lib/libc/src/strpbrk.c \
653 nsprpub/lib/libc/src/strstr.c \
654 nsprpub/lib/libc/src/strcstr.c \
655 nsprpub/lib/libc/src/strtok.c \
656 nsprpub/lib/libc/src/base64.c \
657 nsprpub/lib/libc/src/plerror.c \
658 nsprpub/lib/libc/src/plgetopt.c
659
660VBox-xpcom-nspr_SOURCES.darwin = \
661 nsprpub/pr/src/md/unix/unix.c \
662 nsprpub/pr/src/md/unix/unix_errors.c \
663 nsprpub/pr/src/md/unix/uxproces.c \
664 nsprpub/pr/src/md/unix/uxrng.c \
665 nsprpub/pr/src/md/unix/uxshm.c \
666 nsprpub/pr/src/md/unix/uxwrap.c \
667 nsprpub/pr/src/md/unix/darwin.c \
668 nsprpub/pr/src/pthreads/ptio.c \
669 nsprpub/pr/src/pthreads/ptsynch.c \
670 nsprpub/pr/src/pthreads/ptthread.c \
671 nsprpub/pr/src/pthreads/ptmisc.c
672VBox-xpcom-nspr_SOURCES.darwin.x86 = nsprpub/pr/src/md/unix/os_Darwin_x86.s
673
674VBox-xpcom-nspr_SOURCES.l4 = \
675 nsprpub/pr/src/io/prfile.c /* why not for Linux? */ \
676 nsprpub/pr/src/io/prio.c /* "" "" "" "" */ \
677 nsprpub/pr/src/io/prsocket.c \
678 nsprpub/pr/src/md/unix/unix.c \
679 nsprpub/pr/src/md/unix/unix_errors.c \
680 nsprpub/pr/src/md/unix/uxpoll.c \
681 nsprpub/pr/src/md/unix/uxproces.c \
682 nsprpub/pr/src/md/unix/uxrng.c \
683 nsprpub/pr/src/md/unix/uxshm.c \
684 nsprpub/pr/src/md/unix/uxwrap.c \
685 nsprpub/pr/src/md/unix/l4env.c \
686 nsprpub/pr/src/threads/prcthr.c \
687 nsprpub/pr/src/threads/prmon.c \
688 nsprpub/pr/src/threads/combined/prucpu.c \
689 nsprpub/pr/src/threads/combined/prucv.c \
690 nsprpub/pr/src/threads/combined/prulock.c \
691 nsprpub/pr/src/threads/combined/prustack.c \
692 nsprpub/pr/src/threads/combined/pruthr.c
693# nsprpub/pr/src/md/l4env/prnetdb.c \
694# nsprpub/pr/src/md/l4env/threads.c
695VBox-xpcom-nspr_SOURCES.l4.x86 = nsprpub/pr/src/md/unix/os_Linux_x86.s
696VBox-xpcom-nspr_SOURCES.l4.amd64 = nsprpub/pr/src/md/unix/os_Linux_x86_64.s
697
698VBox-xpcom-nspr_SOURCES.linux = \
699 nsprpub/pr/src/md/unix/unix.c \
700 nsprpub/pr/src/md/unix/unix_errors.c \
701 nsprpub/pr/src/md/unix/uxproces.c \
702 nsprpub/pr/src/md/unix/uxrng.c \
703 nsprpub/pr/src/md/unix/uxshm.c \
704 nsprpub/pr/src/md/unix/uxwrap.c \
705 nsprpub/pr/src/md/unix/linux.c \
706 nsprpub/pr/src/pthreads/ptio.c \
707 nsprpub/pr/src/pthreads/ptsynch.c \
708 nsprpub/pr/src/pthreads/ptthread.c \
709 nsprpub/pr/src/pthreads/ptmisc.c
710VBox-xpcom-nspr_SOURCES.linux.x86 = nsprpub/pr/src/md/unix/os_Linux_x86.s
711VBox-xpcom-nspr_SOURCES.linux.amd64 = nsprpub/pr/src/md/unix/os_Linux_x86_64.s
712
713
714nsprpub/pr/src/prvrsion.c_DEPS = $(PATH_VBox-xpcom-nspr)/_pr_bld.h
715nsprpub/lib/ds/plvrsion.c_DEPS = $(PATH_VBox-xpcom-nspr)/_pl_bld.h
716
717
718VBox-xpcom-typelib_TEMPLATE = XPCOM
719VBox-xpcom-typelib_NOINST = 1
720VBox-xpcom-typelib_SOURCES = \
721 xpcom/typelib/xpt/src/xpt_arena.c \
722 xpcom/typelib/xpt/src/xpt_struct.c \
723 xpcom/typelib/xpt/src/xpt_xdr.c
724
725VBox-xpcom-string_TEMPLATE = XPCOM
726VBox-xpcom-string_NOINST = 1
727VBox-xpcom-string_DEFS = _IMPL_NS_COM
728VBox-xpcom-string_SOURCES = \
729 xpcom/string/src/nsAString.cpp \
730 xpcom/string/src/nsDependentSubstring.cpp \
731 xpcom/string/src/nsObsoleteAStringThunk.cpp \
732 xpcom/string/src/nsPrintfCString.cpp \
733 xpcom/string/src/nsPromiseFlatString.cpp \
734 xpcom/string/src/nsReadableUtils.cpp \
735 xpcom/string/src/nsSubstring.cpp \
736 xpcom/string/src/nsSubstringTuple.cpp \
737 xpcom/string/src/nsString.cpp \
738 xpcom/string/src/nsStringComparator.cpp \
739 xpcom/string/src/nsStringObsolete.cpp
740
741VBox-xpcom-base_TEMPLATE = XPCOM
742VBox-xpcom-base_NOINST = 1
743VBox-xpcom-base_SOURCES = \
744 xpcom/base/nsAllocator.cpp \
745 xpcom/base/nsConsoleMessage.cpp \
746 xpcom/base/nsConsoleService.cpp \
747 xpcom/base/nsDebugImpl.cpp \
748 xpcom/base/nsErrorService.cpp \
749 xpcom/base/nsExceptionService.cpp \
750 xpcom/base/nsID.cpp \
751 xpcom/base/nsMemoryImpl.cpp \
752 xpcom/base/nsTraceRefcntImpl.cpp \
753 xpcom/base/nsStackFrameUnix.cpp
754
755VBox-xpcom-ds_TEMPLATE = XPCOM
756VBox-xpcom-ds_NOINST = 1
757VBox-xpcom-ds_SOURCES = \
758 xpcom/ds/pldhash.c \
759 xpcom/ds/nsAtomTable.cpp \
760 xpcom/ds/nsAtomService.cpp \
761 xpcom/ds/nsByteBuffer.cpp \
762 xpcom/ds/nsCheapSets.cpp \
763 xpcom/ds/nsCRT.cpp \
764 xpcom/ds/nsDeque.cpp \
765 xpcom/ds/nsEmptyEnumerator.cpp \
766 xpcom/ds/nsEnumeratorUtils.cpp \
767 xpcom/ds/nsFixedSizeAllocator.cpp \
768 xpcom/ds/nsHashSets.cpp \
769 xpcom/ds/nsHashtable.cpp \
770 xpcom/ds/nsObserverList.cpp \
771 xpcom/ds/nsObserverService.cpp \
772 xpcom/ds/nsProperties.cpp \
773 xpcom/ds/nsPersistentProperties.cpp \
774 xpcom/ds/nsQuickSort.cpp \
775 xpcom/ds/nsRecyclingAllocator.cpp \
776 xpcom/ds/nsStaticNameTable.cpp \
777 xpcom/ds/nsStringEnumerator.cpp \
778 xpcom/ds/nsSupportsArray.cpp \
779 xpcom/ds/nsSupportsArrayEnumerator.cpp \
780 xpcom/ds/nsSupportsPrimitives.cpp \
781 xpcom/ds/nsTHashtable.cpp \
782 xpcom/ds/nsUnicharBuffer.cpp \
783 xpcom/ds/nsVariant.cpp \
784 xpcom/ds/nsVoidArray.cpp \
785 xpcom/ds/nsTextFormatter.cpp \
786 xpcom/ds/nsTimelineService.cpp \
787 xpcom/ds/nsValueArray.cpp \
788 xpcom/ds/nsCOMArray.cpp \
789 xpcom/ds/nsArray.cpp \
790 xpcom/ds/nsArrayEnumerator.cpp
791# xpcom/ds/nsHashPropertyBag.cpp
792
793# @todo what about MOZ_USER_DIR?
794VBox-xpcom-io_TEMPLATE = XPCOM
795VBox-xpcom-io_NOINST = 1
796VBox-xpcom-io_DEFS = MOZ_USER_DIR=\".mozilla\"
797VBox-xpcom-io_INCS.darwin = \
798 xpcom/MoreFiles
799VBox-xpcom-io_SOURCES = \
800 xpcom/io/nsAppFileLocationProvider.cpp \
801 xpcom/io/nsBinaryStream.cpp \
802 xpcom/io/nsByteArrayInputStream.cpp \
803 xpcom/io/nsDirectoryService.cpp \
804 xpcom/io/nsEscape.cpp \
805 xpcom/io/nsFastLoadFile.cpp \
806 xpcom/io/nsFastLoadService.cpp \
807 xpcom/io/nsInputStreamTee.cpp \
808 xpcom/io/nsLinebreakConverter.cpp \
809 xpcom/io/nsLocalFileCommon.cpp \
810 xpcom/io/nsMultiplexInputStream.cpp \
811 xpcom/io/nsPipe3.cpp \
812 xpcom/io/nsStreamUtils.cpp \
813 xpcom/io/nsScriptableInputStream.cpp \
814 xpcom/io/nsSegmentedBuffer.cpp \
815 xpcom/io/SpecialSystemDirectory.cpp \
816 xpcom/io/nsStorageStream.cpp \
817 xpcom/io/nsStringStream.cpp \
818 xpcom/io/nsUnicharInputStream.cpp \
819 xpcom/io/nsNativeCharsetUtils.cpp
820VBox-xpcom-io_SOURCES.darwin = \
821 xpcom/io/nsLocalFileOSX.cpp \
822 xpcom/MoreFiles/FSCopyObject.c \
823 xpcom/MoreFiles/MoreFilesX.c
824VBox-xpcom-io_SOURCES.l4 = \
825 xpcom/io/nsLocalFileL4.cpp
826ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),)
827VBox-xpcom-io_SOURCES += \
828 xpcom/io/nsLocalFileUnix.cpp
829endif
830VBox-xpcom-io_SOURCES.os2 = \
831 xpcom/io/nsLocalFileOS2.cpp
832
833VBox-xpcom-components_TEMPLATE = XPCOM
834VBox-xpcom-components_NOINST = 1
835VBox-xpcom-components_DEFS = EXPORT_XPTI_API
836VBox-xpcom-components_SOURCES = \
837 xpcom/components/nsCategoryManager.cpp \
838 xpcom/components/nsComponentManager.cpp \
839 xpcom/components/nsComponentManagerObsolete.cpp \
840 xpcom/components/nsNativeComponentLoader.cpp \
841 xpcom/components/nsServiceManagerObsolete.cpp \
842 xpcom/components/xcDll.cpp \
843 xpcom/components/nsStaticComponentLoader.cpp
844
845VBox-xpcom-threads_TEMPLATE = XPCOM
846VBox-xpcom-threads_NOINST = 1
847VBox-xpcom-threads_SOURCES = \
848 xpcom/threads/plevent.c \
849 xpcom/threads/nsAutoLock.cpp \
850 xpcom/threads/nsEnvironment.cpp \
851 xpcom/threads/nsEventQueue.cpp \
852 xpcom/threads/nsEventQueueService.cpp \
853 xpcom/threads/nsThread.cpp \
854 xpcom/threads/nsTimerImpl.cpp \
855 xpcom/threads/nsProcessCommon.cpp \
856 xpcom/threads/TimerThread.cpp
857
858VBox-xpcom-xptinfo_TEMPLATE = XPCOM
859VBox-xpcom-xptinfo_NOINST = 1
860VBox-xpcom-xptinfo_DEFS = EXPORT_XPTI_API
861VBox-xpcom-xptinfo_SOURCES = \
862 xpcom/reflect/xptinfo/src/xptiFile.cpp \
863 xpcom/reflect/xptinfo/src/xptiInterfaceInfo.cpp \
864 xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp \
865 xpcom/reflect/xptinfo/src/xptiManifest.cpp \
866 xpcom/reflect/xptinfo/src/xptiMisc.cpp \
867 xpcom/reflect/xptinfo/src/xptiTypelibGuts.cpp \
868 xpcom/reflect/xptinfo/src/xptiWorkingSet.cpp \
869 xpcom/reflect/xptinfo/src/xptiZipItem.cpp \
870 xpcom/reflect/xptinfo/src/xptiZipLoader.cpp
871
872
873VBox-xpcom-xptcall_TEMPLATE = XPCOM
874VBox-xpcom-xptcall_NOINST = 1
875VBox-xpcom-xptcall_DEFS = EXPORT_XPTC_API
876VBox-xpcom-xptcall_DEFS.darwin = KEEP_STACK_16_BYTE_ALIGNED
877VBox-xpcom-xptcall_DEFS.l4 = L4
878VBox-xpcom-xptcall_SOURCES = xpcom/reflect/xptcall/src/xptcall.cpp
879VBox-xpcom-xptcall_SOURCES.darwin.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_unixish_x86.cpp \
880 xpcom/reflect/xptcall/src/md/unix/xptcstubs_unixish_x86.cpp
881VBox-xpcom-xptcall_SOURCES.linux.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_gcc_x86_unix.cpp \
882 xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp
883VBox-xpcom-xptcall_SOURCES.linux.amd64 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_linux.cpp \
884 xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp
885
886VBox-xpcom-proxy_TEMPLATE = XPCOM
887VBox-xpcom-proxy_NOINST = 1
888VBox-xpcom-proxy_SOURCES = xpcom/proxy/src/nsProxyEvent.cpp \
889 xpcom/proxy/src/nsProxyEventClass.cpp \
890 xpcom/proxy/src/nsProxyEventObject.cpp \
891 xpcom/proxy/src/nsProxyObjectManager.cpp \
892 xpcom/proxy/src/nsProxyRelease.cpp
893
894# glue library which all client apps will link with
895VBoxXPCOMGlue_TEMPLATE = XPCOM
896VBoxXPCOMGlue_DEFS = XPCOM_GLUE
897VBoxXPCOMGlue_SOURCES = xpcom/glue/nsCOMPtr.cpp \
898 xpcom/glue/nsComponentManagerUtils.cpp \
899 xpcom/glue/nsDebug.cpp \
900 xpcom/glue/nsGenericFactory.cpp \
901 xpcom/glue/nsIInterfaceRequestorUtils.cpp \
902 xpcom/glue/nsMemory.cpp \
903 xpcom/glue/nsTraceRefcnt.cpp \
904 xpcom/glue/nsWeakReference.cpp \
905 xpcom/glue/standalone/nsXPCOMGlue.cpp \
906 xpcom/glue/standalone/nsGREDirServiceProvider.cpp
907VBoxXPCOMGlue_INST = lib/ $(INST_SDK)/lib/
908
909
910#
911# The VBoxXPCOM Shared Object, assembling all lib files.
912#
913VBoxXPCOM_TEMPLATE = XPCOM
914VBoxXPCOM_DEFS = BUILD_DCONNECT="1"
915VBoxXPCOM_SOURCES = \
916 xpcom/glue/nsCOMPtr.cpp \
917 xpcom/glue/nsComponentManagerUtils.cpp \
918 xpcom/glue/nsDebug.cpp \
919 xpcom/glue/nsGenericFactory.cpp \
920 xpcom/glue/nsIInterfaceRequestorUtils.cpp \
921 xpcom/glue/nsMemory.cpp \
922 xpcom/glue/nsTraceRefcnt.cpp \
923 xpcom/glue/nsWeakReference.cpp \
924 xpcom/build/nsXPComInit.cpp \
925 xpcom/build/nsStringAPI.cpp
926VBoxXPCOM_SOURCES.darwin = \
927 darwindeps.cpp
928VBoxXPCOM_LIBS = \
929 $(TARGET_VBox-xpcom-typelib) \
930 $(TARGET_VBox-xpcom-string) \
931 $(TARGET_VBox-xpcom-base) \
932 $(TARGET_VBox-xpcom-ds) \
933 $(TARGET_VBox-xpcom-io) \
934 $(TARGET_VBox-xpcom-components) \
935 $(TARGET_VBox-xpcom-threads) \
936 $(TARGET_VBox-xpcom-xptinfo) \
937 $(TARGET_VBox-xpcom-xptcall) \
938 $(TARGET_VBox-xpcom-proxy) \
939 $(TARGET_VBox-xpcom-nspr)
940
941VBoxXPCOM_LDFLAGS.linux = -Wl,--whole-archive \
942 $(TARGET_VBox-xpcom-typelib) \
943 $(TARGET_VBox-xpcom-string) \
944 $(TARGET_VBox-xpcom-base) \
945 $(TARGET_VBox-xpcom-ds) \
946 $(TARGET_VBox-xpcom-io) \
947 $(TARGET_VBox-xpcom-components) \
948 $(TARGET_VBox-xpcom-threads) \
949 $(TARGET_VBox-xpcom-xptinfo) \
950 $(TARGET_VBox-xpcom-xptcall) \
951 $(TARGET_VBox-xpcom-proxy) \
952 $(TARGET_VBox-xpcom-nspr) \
953 -Wl,--no-whole-archive
954#VBoxXPCOM_LIBS.l4 = $(L4_LIBDIR)/libxpcomstubs.a $(L4_LIBDIR)/../libuc_c++.a \
955# $(VBOX_PATH_L4_GCC3_INSTALL)/libsupc++.a $(VBOX_PATH_L4_GCC3_INSTALL)/libgcc_eh.a
956# EF heap
957#VBoxXPCOM_LIBS += $(LIB_RUNTIME_EF)
958#VBoxXPCOM_LDFLAGS = -Wl,--whole-archive $(VBoxXPCOM_LIBS) -Wl,--no-whole-archive $(LIB_RUNTIME)
959VBoxXPCOM_LDFLAGS.darwin = -install_name @executable_path/VBoxXPCOM.dylib
960
961ifdef VBOX_IPC_RELEASE_LOG
962IPC_LOGGING = 1
963else ifneq ($(BUILD_TYPE),release)
964IPC_LOGGING = 1
965endif
966
967TEMPLATE_XPCOMIPC = XPCOM IPC libraries
968TEMPLATE_XPCOMIPC_EXTENDS = XPCOM
969TEMPLATE_XPCOMIPC_DEFS = $(TEMPLATE_XPCOM_DEFS) BUILD_DCONNECT="1"
970ifdef IPC_LOGGING
971 TEMPLATE_XPCOMIPC_DEFS += IN_RING3 IPC_LOGGING
972 TEMPLATE_XPCOMIPC_LIBS = $(TEMPLATE_XPCOM_LIBS) $(LIB_RUNTIME)
973endif
974TEMPLATE_XPCOMIPC_LIBS.darwin = $(TARGET_VBoxXPCOM)
975
976TEMPLATE_XPCOMIPCEXE = XPCOM IPC executables
977TEMPLATE_XPCOMIPCEXE_EXTENDS = XPCOMEXE
978TEMPLATE_XPCOMIPCEXE_DEFS = $(TEMPLATE_XPCOMEXE_DEFS) BUILD_DCONNECT="1"
979ifdef IPC_LOGGING
980 TEMPLATE_XPCOMIPCEXE_DEFS += IN_RING3 IPC_LOGGING
981 TEMPLATE_XPCOMIPCEXE_LIBS = $(TEMPLATE_XPCOMEXE_LIBS) $(LIB_RUNTIME)
982endif
983
984VBox-xpcom-ipcutils_TEMPLATE = XPCOMIPC
985VBox-xpcom-ipcutils_NOINST = 1
986VBox-xpcom-ipcutils_SOURCES = \
987 ipc/ipcd/util/src/ipcMessageReader.cpp \
988 ipc/ipcd/util/src/ipcMessageWriter.cpp
989
990VBox-xpcom-ipcshared_TEMPLATE = XPCOMIPC
991VBox-xpcom-ipcshared_NOINST = 1
992VBox-xpcom-ipcshared_SOURCES = \
993 ipc/ipcd/shared/src/ipcLog.cpp \
994 ipc/ipcd/shared/src/ipcConfig.cpp \
995 ipc/ipcd/shared/src/ipcMessage.cpp \
996 ipc/ipcd/shared/src/ipcMessagePrimitives.cpp \
997 ipc/ipcd/shared/src/ipcStringList.cpp \
998 ipc/ipcd/shared/src/ipcIDList.cpp \
999 ipc/ipcd/shared/src/ipcm.cpp
1000
1001VBox-xpcom-ipcdlock_TEMPLATE = XPCOMIPC
1002VBox-xpcom-ipcdlock_NOINST = 1
1003VBox-xpcom-ipcdlock_SOURCES = \
1004 ipc/ipcd/extensions/lock/src/ipcLockProtocol.cpp \
1005 ipc/ipcd/extensions/lock/src/ipcLockService.cpp
1006
1007VBox-xpcom-ipctransmgr_TEMPLATE = XPCOMIPC
1008VBox-xpcom-ipctransmgr_NOINST = 1
1009VBox-xpcom-ipctransmgr_SOURCES = \
1010 ipc/ipcd/extensions/transmngr/src/tmTransactionService.cpp
1011
1012VBox-xcpom-ipctmgrcom_TEMPLATE = XPCOMIPC
1013VBox-xcpom-ipctmgrcom_NOINST = 1
1014VBox-xcpom-ipctmgrcom_SOURCES = \
1015 ipc/ipcd/extensions/transmngr/common/tmTransaction.cpp \
1016 ipc/ipcd/extensions/transmngr/common/tmVector.cpp
1017
1018
1019# DCONNECT client shared object
1020VBoxXPCOMIPCC_TEMPLATE = XPCOMIPC
1021ifneq ($(BUILD_TARGET),linux)
1022VBoxXPCOMIPCC_INST = $(INST_BIN)components/
1023endif
1024VBoxXPCOMIPCC_DEFS = HAVE_DEPENDENT_LIBS
1025VBoxXPCOMIPCC_SOURCES = \
1026 ipc/ipcd/client/src/ipcdclient.cpp \
1027 ipc/ipcd/client/src/ipcService.cpp \
1028 ipc/ipcd/client/src/ipcModuleFactory.cpp \
1029 ipc/ipcd/client/src/ipcConnectionUnix.cpp \
1030 ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp
1031VBoxXPCOMIPCC_LDFLAGS.darwin = -install_name @executable_path/components/VBoxXPCOMIPCC.dylib
1032VBoxXPCOMIPCC_LIBS = \
1033 $(TARGET_VBox-xpcom-ipcutils) \
1034 $(TARGET_VBox-xpcom-ipcshared) \
1035 $(TARGET_VBox-xpcom-ipcdlock) \
1036 $(TARGET_VBox-xpcom-ipctransmgr) \
1037 $(TARGET_VBox-xcpom-ipctmgrcom)
1038# EF
1039#VBoxXPCOMIPCC_LIBS += $(LIB_RUNTIME)
1040
1041# DCONNECT daemon executable
1042VBoxXPCOMIPCD_TEMPLATE = XPCOMIPCEXE
1043VBoxXPCOMIPCD_SOURCES = \
1044 ipc/ipcd/daemon/src/ipcd.cpp \
1045 ipc/ipcd/daemon/src/ipcClient.cpp \
1046 ipc/ipcd/daemon/src/ipcModuleReg.cpp \
1047 ipc/ipcd/daemon/src/ipcCommandModule.cpp \
1048 ipc/ipcd/daemon/src/ipcdUnix.cpp
1049
1050#
1051# testcases
1052#
1053tstnsIFileEnumerator_TEMPLATE = XPCOMEXE
1054tstnsIFileEnumerator_SOURCES = xpcom/tests/nsIFileEnumerator.cpp
1055tstnsIFileTest_TEMPLATE = XPCOMEXE
1056tstnsIFileTest_SOURCES = xpcom/tests/nsIFileTest.cpp
1057tstTestArray_TEMPLATE = XPCOMEXE
1058tstTestArray_SOURCES = xpcom/tests/TestArray.cpp
1059tstTestAtoms_TEMPLATE = XPCOMEXE
1060tstTestAtoms_SOURCES = xpcom/tests/TestAtoms.cpp
1061tstTestAutoLock_TEMPLATE = XPCOMEXE
1062tstTestAutoLock_SOURCES = xpcom/tests/TestAutoLock.cpp
1063tstTestCallTemplates_TEMPLATE = XPCOMEXE
1064tstTestCallTemplates_SOURCES = xpcom/tests/TestCallTemplates.cpp
1065tstTestCOMPtr_TEMPLATE = XPCOMEXE
1066tstTestCOMPtr_SOURCES = xpcom/tests/TestCOMPtr.cpp
1067tstTestCOMPtrEq_TEMPLATE = XPCOMEXE
1068tstTestCOMPtrEq_SOURCES = xpcom/tests/TestCOMPtrEq.cpp
1069tstTestCRT_TEMPLATE = XPCOMEXE
1070tstTestCRT_SOURCES = xpcom/tests/TestCRT.cpp
1071tstTestFactory_TEMPLATE = XPCOMEXE
1072tstTestFactory_SOURCES = xpcom/tests/TestFactory.cpp
1073tstTestHashtables_TEMPLATE = XPCOMEXE
1074tstTestHashtables_SOURCES = xpcom/tests/TestHashtables.cpp
1075tstTestID_TEMPLATE = XPCOMEXE
1076tstTestID_SOURCES = xpcom/tests/TestID.cpp
1077tstTestObserverService_TEMPLATE= XPCOMEXE
1078tstTestObserverService_SOURCES = xpcom/tests/TestObserverService.cpp
1079tstTestPermanentAtoms_TEMPLATE = XPCOMEXE
1080tstTestPermanentAtoms_SOURCES = xpcom/tests/TestPermanentAtoms.cpp
1081tstTestPipes_TEMPLATE = XPCOMEXE
1082tstTestPipes_SOURCES = xpcom/tests/TestPipes.cpp
1083tstTestServMgr_TEMPLATE = XPCOMEXE
1084tstTestServMgr_SOURCES = xpcom/tests/TestServMgr.cpp
1085tstTestServMgr_INCS = xpcom/tests/services
1086tstTestThreads_TEMPLATE = XPCOMEXE
1087tstTestThreads_SOURCES = xpcom/tests/TestThreads.cpp
1088tstTestXPIDLString_TEMPLATE = XPCOMEXE
1089tstTestXPIDLString_SOURCES = xpcom/tests/TestXPIDLString.cpp
1090tstTestDeque_TEMPLATE = XPCOMEXE
1091tstTestDeque_SOURCES = xpcom/tests/TestDeque.cpp
1092tstTestAutoPtr_TEMPLATE = XPCOMEXE
1093tstTestAutoPtr_SOURCES = xpcom/tests/TestAutoPtr.cpp
1094tstTestMinStringAPI_TEMPLATE = XPCOMEXE
1095tstTestMinStringAPI_SOURCES = xpcom/tests/TestMinStringAPI.cpp
1096tstTestStrings_TEMPLATE = XPCOMEXE
1097tstTestStrings_SOURCES = xpcom/tests/TestStrings.cpp
1098tstPrimitiveTest_TEMPLATE = XPCOMEXE
1099tstPrimitiveTest_SOURCES = xpcom/typelib/xpt/tests/PrimitiveTest.c
1100tstSimpleTypeLib_TEMPLATE = XPCOMEXE
1101tstSimpleTypeLib_SOURCES = xpcom/typelib/xpt/tests/SimpleTypeLib.c
1102tstXptDump_TEMPLATE = XPCOMEXE
1103tstXptDump_SOURCES = xpcom/typelib/xpt/tools/xpt_dump.c
1104tstXptLink_TEMPLATE = XPCOMEXE
1105tstXptLink_SOURCES = xpcom/typelib/xpt/tools/xpt_link.c
1106
1107
1108
1109
1110IDLFILES = \
1111 xpcom/base/nsIDebug.idl \
1112 xpcom/base/nsIInterfaceRequestor.idl \
1113 xpcom/base/nsIMemory.idl \
1114 xpcom/base/nsIProgrammingLanguage.idl \
1115 xpcom/base/nsISupports.idl \
1116 xpcom/base/nsITraceRefcnt.idl \
1117 xpcom/base/nsIWeakReference.idl \
1118 xpcom/base/nsIConsoleMessage.idl \
1119 xpcom/base/nsIConsoleService.idl \
1120 xpcom/base/nsIConsoleListener.idl \
1121 xpcom/base/nsIErrorService.idl \
1122 xpcom/base/nsIException.idl \
1123 xpcom/base/nsIExceptionService.idl \
1124 xpcom/base/nsrootidl.idl \
1125 xpcom/components/nsIClassInfo.idl \
1126 xpcom/components/nsIComponentRegistrar.idl \
1127 xpcom/components/nsIFactory.idl \
1128 xpcom/components/nsIModule.idl \
1129 xpcom/components/nsIServiceManager.idl \
1130 xpcom/components/nsIComponentManager.idl \
1131 xpcom/components/nsICategoryManager.idl \
1132 xpcom/components/nsIComponentLoader.idl \
1133 xpcom/components/nsINativeComponentLoader.idl \
1134 xpcom/components/nsIComponentManagerObsolete.idl \
1135 xpcom/components/nsIComponentLoaderManager.idl \
1136 xpcom/ds/nsISupportsArray.idl \
1137 xpcom/ds/nsICollection.idl \
1138 xpcom/ds/nsISerializable.idl \
1139 xpcom/ds/nsIEnumerator.idl \
1140 xpcom/ds/nsISimpleEnumerator.idl \
1141 xpcom/ds/nsIObserverService.idl \
1142 xpcom/ds/nsIObserver.idl \
1143 xpcom/ds/nsIAtom.idl \
1144 xpcom/ds/nsIAtomService.idl \
1145 xpcom/ds/nsIProperties.idl \
1146 xpcom/ds/nsIPersistentProperties2.idl \
1147 xpcom/ds/nsIRecyclingAllocator.idl \
1148 xpcom/ds/nsIStringEnumerator.idl \
1149 xpcom/ds/nsISupportsPrimitives.idl \
1150 xpcom/ds/nsISupportsIterators.idl \
1151 xpcom/ds/nsIVariant.idl \
1152 xpcom/ds/nsITimelineService.idl \
1153 xpcom/ds/nsIArray.idl \
1154 xpcom/ds/nsIPropertyBag.idl \
1155 xpcom/ds/nsIHashable.idl \
1156 xpcom/io/nsIDirectoryService.idl \
1157 xpcom/io/nsIDirectoryEnumerator.idl \
1158 xpcom/io/nsIFile.idl \
1159 xpcom/io/nsILocalFile.idl \
1160 xpcom/io/nsILocalFileMac.idl \
1161 xpcom/io/nsIInputStream.idl \
1162 xpcom/io/nsIObjectInputStream.idl \
1163 xpcom/io/nsIBinaryInputStream.idl \
1164 xpcom/io/nsIObjectOutputStream.idl \
1165 xpcom/io/nsIBinaryOutputStream.idl \
1166 xpcom/io/nsIOutputStream.idl \
1167 xpcom/io/nsIStreamBufferAccess.idl \
1168 xpcom/io/nsIByteArrayInputStream.idl \
1169 xpcom/io/nsISeekableStream.idl \
1170 xpcom/io/nsIFastLoadFileControl.idl \
1171 xpcom/io/nsIFastLoadService.idl \
1172 xpcom/io/nsIInputStreamTee.idl \
1173 xpcom/io/nsIMultiplexInputStream.idl \
1174 xpcom/io/nsIPipe.idl \
1175 xpcom/io/nsIAsyncInputStream.idl \
1176 xpcom/io/nsIAsyncOutputStream.idl \
1177 xpcom/io/nsIScriptableInputStream.idl \
1178 xpcom/io/nsIStorageStream.idl \
1179 xpcom/io/nsIStringStream.idl \
1180 xpcom/io/nsILineInputStream.idl \
1181 xpcom/proxy/public/nsIProxyObjectManager.idl \
1182 xpcom/threads/nsIEventQueueService.idl \
1183 xpcom/threads/nsIEventQueue.idl \
1184 xpcom/threads/nsIEventTarget.idl \
1185 xpcom/threads/nsIRunnable.idl \
1186 xpcom/threads/nsIThread.idl \
1187 xpcom/threads/nsITimer.idl \
1188 xpcom/threads/nsIEnvironment.idl \
1189 xpcom/threads/nsITimerInternal.idl \
1190 xpcom/threads/nsITimerManager.idl \
1191 xpcom/threads/nsIProcess.idl \
1192 xpcom/reflect/xptinfo/public/nsIInterfaceInfo.idl \
1193 xpcom/reflect/xptinfo/public/nsIInterfaceInfoManager.idl \
1194 xpcom/reflect/xptinfo/public/nsIXPTLoader.idl \
1195 ipc/ipcd/client/public/ipcIService.idl \
1196 ipc/ipcd/client/public/ipcIMessageObserver.idl \
1197 ipc/ipcd/client/public/ipcIClientObserver.idl \
1198 ipc/ipcd/extensions/lock/public/ipcILockService.idl \
1199 ipc/ipcd/extensions/transmngr/public/ipcITransactionService.idl \
1200 ipc/ipcd/extensions/dconnect/public/ipcIDConnectService.idl \
1201 ipc/ipcd/extensions/transmngr/public/ipcITransactionObserver.idl
1202
1203
1204OTHER_CLEAN += \
1205 $(PATH_VBox-xpcom-string)/idl_ts \
1206 $(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.h,$(IDLFILES)))) \
1207 $(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.xpt,$(IDLFILES)))) \
1208 $(addprefix $(VBOX_PATH_SDK)/idl/,$(notdir $(IDLFILES)))
1209
1210
1211# generate rules
1212include $(PATH_KBUILD)/footer.kmk
1213
1214
1215
1216XPTFILES = $(addprefix $(PATH_TARGET)/, \
1217 nsIConsoleListener.xpt \
1218 nsIConsoleMessage.xpt \
1219 nsIConsoleService.xpt \
1220 nsIErrorService.xpt \
1221 nsIException.xpt \
1222 nsIExceptionService.xpt \
1223 nsIDebug.xpt \
1224 nsIInterfaceRequestor.xpt \
1225 nsIMemory.xpt \
1226 nsIProgrammingLanguage.xpt \
1227 nsISupports.xpt \
1228 nsITraceRefcnt.xpt \
1229 nsIWeakReference.xpt \
1230 nsrootidl.xpt \
1231 nsIAtom.xpt \
1232 nsIAtomService.xpt \
1233 nsICollection.xpt \
1234 nsIEnumerator.xpt \
1235 nsIPersistentProperties2.xpt \
1236 nsIPropertyBag.xpt \
1237 nsIRecyclingAllocator.xpt \
1238 nsIVariant.xpt \
1239 nsISerializable.xpt \
1240 nsIStringEnumerator.xpt \
1241 nsISupportsArray.xpt \
1242 nsISupportsIterators.xpt \
1243 nsITimelineService.xpt \
1244 nsIArray.xpt \
1245 nsIObserverService.xpt \
1246 nsIObserver.xpt \
1247 nsIProperties.xpt \
1248 nsISimpleEnumerator.xpt \
1249 nsISupportsPrimitives.xpt \
1250 nsIBinaryInputStream.xpt \
1251 nsIBinaryOutputStream.xpt \
1252 nsIByteArrayInputStream.xpt \
1253 nsIFastLoadFileControl.xpt \
1254 nsIFastLoadService.xpt \
1255 nsIInputStreamTee.xpt \
1256 nsILineInputStream.xpt \
1257 nsIMultiplexInputStream.xpt \
1258 nsIObjectInputStream.xpt \
1259 nsIObjectOutputStream.xpt \
1260 nsIPipe.xpt \
1261 nsISeekableStream.xpt \
1262 nsIStorageStream.xpt \
1263 nsIStringStream.xpt \
1264 nsIStreamBufferAccess.xpt \
1265 nsIAsyncInputStream.xpt \
1266 nsIAsyncOutputStream.xpt \
1267 nsIDirectoryService.xpt \
1268 nsIFile.xpt \
1269 nsILocalFile.xpt \
1270 nsIInputStream.xpt \
1271 nsIOutputStream.xpt \
1272 nsIScriptableInputStream.xpt \
1273 nsIComponentLoader.xpt \
1274 nsIComponentLoaderManager.xpt \
1275 nsIComponentManagerObsolete.xpt \
1276 nsINativeComponentLoader.xpt \
1277 nsIClassInfo.xpt \
1278 nsIComponentRegistrar.xpt \
1279 nsIFactory.xpt \
1280 nsIModule.xpt \
1281 nsIServiceManager.xpt \
1282 nsIComponentManager.xpt \
1283 nsICategoryManager.xpt \
1284 nsIThread.xpt \
1285 nsITimer.xpt \
1286 nsITimerInternal.xpt \
1287 nsITimerManager.xpt \
1288 nsIRunnable.xpt \
1289 nsIEventTarget.xpt \
1290 nsIEventQueue.xpt \
1291 nsIEventQueueService.xpt \
1292 nsIEnvironment.xpt \
1293 nsIProcess.xpt \
1294 nsIInterfaceInfo.xpt \
1295 nsIInterfaceInfoManager.xpt \
1296 nsIXPTLoader.xpt)
1297
1298OTHER_CLEAN += \
1299 $(XPTFILES)
1300
1301# combined typelib library
1302$(XPCOM_TYPELIB): $(XPTFILES) | $(TARGET_xp_link)
1303 $(call MSG_LINK,XPCOM_TYPELIB,$@)
1304 $(QUIET)$(TARGET_xpt_link) $@ $^
1305
1306# generate build stamps
1307$(PATH_VBox-xpcom-nspr)/_pr_bld.h:
1308 $(call MSG_L1,Generating $@)
1309 $(QUIET)echo '#define _BUILD_STRING "$(shell date "+%Y-%m-%d %T")"' > $@
1310
1311$(PATH_VBox-xpcom-nspr)/_pl_bld.h:
1312 $(call MSG_L1,Generating $@)
1313 $(QUIET)echo '#define _BUILD_STRING "$(shell date "+%Y-%m-%d %T")"' > $@
1314
1315#
1316# Generate IDL rules.
1317#
1318
1319##
1320# Define for compiling one IDL into a header and a typelib
1321# @param idl The filename with everything.
1322XPIDL_INCS = -I xpcom/base/ -I xpcom/ds/ -I xpcom/components/ -I xpcom/io/ -I xpcom/threads/ -I xpcom/reflect/xptinfo/public/
1323define def_IDL
1324$(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.h,$(idl)))) \
1325 $(PATH_TARGET)/$(notdir $(subst .idl,.xpt,$(idl))): $(idl) | $(TARGET_xpidl)
1326 $$(call MSG_L1,xpidl $$<)
1327 $$(QUIET)$(MKDIR) -p $(VBOX_PATH_SDK)/include $(VBOX_PATH_SDK)/idl
1328 $$(QUIET)$$(TARGET_xpidl) -m header $(XPIDL_INCS) -e $$@ $$<
1329 $$(QUIET)$$(TARGET_xpidl) -m typelib $(XPIDL_INCS) -e $(addprefix $(PATH_TARGET)/,$(notdir $(subst .idl,.xpt,$(idl)))) $$<
1330 $$(QUIET)$(CP) $$< $$(VBOX_PATH_SDK)/idl
1331endef
1332
1333$(foreach idl, $(IDLFILES), $(eval $(def_IDL)))
1334
1335# dummy target.
1336$(PATH_VBox-xpcom-string)/idl_ts: $(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.h,$(IDLFILES))))
1337 $(call MSG_L1,IDL processing completed.)
1338 $(QUIET)$(MKDIR) -p $(dir $@)
1339 $(QUIET)$(ECHO_EXT) > $@
1340
1341# Manual dependency...
1342xpcom/string/src/nsAString.cpp: $(PATH_VBox-xpcom-string)/idl_ts
1343
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