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