VirtualBox

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

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

TARGET_CARBON=1 to do like firefox does and get the better eventqueue implementation.

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