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