VirtualBox

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

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

Added a couple of missing build order dependencies. (kmk -j 4 did't work from xpcom18a4)

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