VirtualBox

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

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

with gcc, mark all ELF symbols with visibility=hidden by default and mark symbols which should be exported as visibility=default

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