1 | # $Id: Config.kmk 104031 2024-03-24 18:52:47Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # XPCOM kBuild Configuration file.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | # Include the top-level configure file.
|
---|
29 | ifndef VBOX_ROOT_CONFIG_KMK_INCLUDED
|
---|
30 | include $(PATH_ROOT)/Config.kmk
|
---|
31 | endif
|
---|
32 |
|
---|
33 | #
|
---|
34 | # Globals.
|
---|
35 | #
|
---|
36 | VBOX_PATH_XPCOM_SRC := $(PATH_ROOT)/src/libs/xpcom18a4
|
---|
37 |
|
---|
38 |
|
---|
39 | #
|
---|
40 | # Template for building the XPCOM libraries (shared).
|
---|
41 | #
|
---|
42 | TEMPLATE_XPComDll = XPCOM libraries (shared)
|
---|
43 | TEMPLATE_XPComDll_EXTENDS = VBoxR3DllNonPedantic
|
---|
44 | ## @todo correct inheritance here to make it use all the VBoxR3DllNonPedantic settings instead of overriding all of them.
|
---|
45 | TEMPLATE_XPComDll_ASTOOL = $(TEMPLATE_VBoxR3DllNonPedantic_TOOL)
|
---|
46 | TEMPLATE_XPComDll_ASFLAGS = $(NO_SUCH_VARIABLE)
|
---|
47 | TEMPLATE_XPComDll_ASFLAGS.x86 = -m32
|
---|
48 | TEMPLATE_XPComDll_ASFLAGS.amd64 = -m64
|
---|
49 | TEMPLATE_XPComDll_ASDEFS = $(NO_SUCH_VARIABLE)
|
---|
50 | TEMPLATE_XPComDll_CXXFLAGS = -g -pipe -ansi -Wall -Wno-unused -Wno-non-virtual-dtor \
|
---|
51 | $(VBOX_GCC_Wno-invalid-offsetof) -Wno-sign-compare -Wno-unused -Wno-ctor-dtor-privacy \
|
---|
52 | $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) \
|
---|
53 | $(VBOX_GCC_Wno-delete-non-virtual-dtor) $(VBOX_GCC_Wno-multistatement-macros) $(VBOX_GCC_fdiagnostics-show-option) \
|
---|
54 | $(VBOX_GCC_SANITIZER_FLAGS) $(VBOX_GCC_OPT) $(VBOX_GCC_FP)
|
---|
55 | #if !defined(VBOX_GCC_Wno-delete-non-virtual-dtor) && defined(VBOX_GCC_Wno-non-virtual-dtor)
|
---|
56 | ifndef VBOX_GCC_Wno-delete-non-virtual-dtor
|
---|
57 | ifdef VBOX_GCC_Wno-non-virtual-dtor
|
---|
58 | TEMPLATE_XPComDll_CXXFLAGS += $(VBOX_GCC_Wno-non-virtual-dtor)
|
---|
59 | endif
|
---|
60 | endif
|
---|
61 | TEMPLATE_XPComDll_CXXFLAGS.x86 = -m32
|
---|
62 | TEMPLATE_XPComDll_CXXFLAGS.amd64 = -m64
|
---|
63 | TEMPLATE_XPComDll_CXXFLAGS.darwin = -fpascal-strings -fshort-wchar -fno-common -fno-rtti $(VBOX_DARWIN_DEF_SDK_CXXFLAGS)
|
---|
64 | TEMPLATE_XPComDll_CXXFLAGS.freebsd = -pthread
|
---|
65 | TEMPLATE_XPComDll_CXXFLAGS.linux = -pthread
|
---|
66 | TEMPLATE_XPComDll_CXXFLAGS.solaris = -fno-omit-frame-pointer # for now anyway.
|
---|
67 | TEMPLATE_XPComDll_CFLAGS = -g -pipe -Wall -Wno-unused -Wno-parentheses -Wno-uninitialized $(VBOX_GCC_fvisibility-hidden) \
|
---|
68 | $(VBOX_GCC_Wno-multistatement-macros) $(VBOX_GCC_fdiagnostics-show-option) $(VBOX_GCC_SANITIZER_FLAGS) $(VBOX_GCC_OPT) $(VBOX_GCC_FP)
|
---|
69 | TEMPLATE_XPComDll_CFLAGS.x86 = -m32
|
---|
70 | TEMPLATE_XPComDll_CFLAGS.amd64 = -m64
|
---|
71 | TEMPLATE_XPComDll_CFLAGS.freebsd = -pthread
|
---|
72 | TEMPLATE_XPComDll_CFLAGS.linux = -pthread -ansi
|
---|
73 | TEMPLATE_XPComDll_CFLAGS.solaris = -fno-omit-frame-pointer # for now anyway.
|
---|
74 | TEMPLATE_XPComDll_DEFS = \
|
---|
75 | MOZILLA_CLIENT=1 \
|
---|
76 | NDEBUG=1 \
|
---|
77 | _IMPL_NS_COM \
|
---|
78 | IN_RING3
|
---|
79 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
80 | TEMPLATE_XPComDll_DEFS += \
|
---|
81 | XPCOM_DLL_BASE="$(basename $(notdir $(LIB_XPCOM)))" \
|
---|
82 | MOZ_DLL_SUFFIX="$(suffix $(LIB_XPCOM))"
|
---|
83 | else
|
---|
84 | TEMPLATE_XPComDll_DEFS += \
|
---|
85 | XPCOM_DLL_BASE=\"$(basename $(notdir $(LIB_XPCOM)))\" \
|
---|
86 | MOZ_DLL_SUFFIX=\"$(suffix $(LIB_XPCOM))\"
|
---|
87 | endif
|
---|
88 |
|
---|
89 | ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
|
---|
90 | TEMPLATE_XPComDll_DEFS += VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
|
---|
91 | endif
|
---|
92 | TEMPLATE_XPComDll_DEFS.x86 = i386=1
|
---|
93 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
94 | TEMPLATE_XPComDll_DEFS.amd64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY(a,b)=__builtin_va_copy(a,b)
|
---|
95 | else
|
---|
96 | TEMPLATE_XPComDll_DEFS.amd64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY\(a\,b\)=__builtin_va_copy\(a\,b\)
|
---|
97 | endif
|
---|
98 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
99 | TEMPLATE_XPComDll_DEFS.arm64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY(a,b)=__builtin_va_copy(a,b)
|
---|
100 | else
|
---|
101 | TEMPLATE_XPComDll_DEFS.arm64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY\(a\,b\)=__builtin_va_copy\(a\,b\)
|
---|
102 | endif
|
---|
103 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
104 | TEMPLATE_XPComDll_DEFS.darwin = XP_UNIX=1 XP_MACOSX=1 TARGET_CARBON=1 HAVE_VISIBILITY_ATTRIBUTE=1 $(TEMPLATE_VBoxR3DllNonPedantic_DEFS.darwin)
|
---|
105 | else
|
---|
106 | TEMPLATE_XPComDll_DEFS.darwin = XP_UNIX=1 XP_MACOSX=1 TARGET_CARBON=1 HAVE_VISIBILITY_ATTRIBUTE=1 $(TEMPLATE_VBoxR3DllNonPedantic_DEFS.darwin)
|
---|
107 | endif
|
---|
108 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
109 | TEMPLATE_XPComDll_DEFS.freebsd = XP_UNIX=1 HAVE_VISIBILITY_ATTRIBUTE=1
|
---|
110 | else
|
---|
111 | TEMPLATE_XPComDll_DEFS.freebsd = XP_UNIX=1 HAVE_VISIBILITY_ATTRIBUTE=1
|
---|
112 | endif
|
---|
113 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
114 | TEMPLATE_XPComDll_DEFS.linux = XP_UNIX=1 _GNU_SOURCE HAVE_VISIBILITY_ATTRIBUTE=1
|
---|
115 | else
|
---|
116 | TEMPLATE_XPComDll_DEFS.linux = XP_UNIX=1 _GNU_SOURCE HAVE_VISIBILITY_ATTRIBUTE=1
|
---|
117 | endif
|
---|
118 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
119 | TEMPLATE_XPComDll_DEFS.solaris = XP_UNIX=1 HAVE_LIBDL=1 HAVE_SENDFILEV=1 _REENTRANT
|
---|
120 | else
|
---|
121 | TEMPLATE_XPComDll_DEFS.solaris = XP_UNIX=1 HAVE_LIBDL=1 HAVE_SENDFILEV=1 _REENTRANT
|
---|
122 | endif
|
---|
123 | TEMPLATE_XPComDll_LDFLAGS = $(TEMPLATE_VBoxR3DllNonPedantic_LDFLAGS)
|
---|
124 | ifdef VBOX_WITH_RUNPATH
|
---|
125 | TEMPLATE_XPComDll_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)'
|
---|
126 | else ifdef VBOX_WITH_RELATIVE_RUNPATH
|
---|
127 | TEMPLATE_XPComDll_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)'
|
---|
128 | endif
|
---|
129 | TEMPLATE_XPComDll_LDFLAGS.x86 = -m32
|
---|
130 | TEMPLATE_XPComDll_LDFLAGS.amd64 = -m64
|
---|
131 | TEMPLATE_XPComDll_LDFLAGS.darwin = $(TEMPLATE_VBoxR3DllNonPedantic_LDFLAGS.darwin) \
|
---|
132 | -fshort-wchar -fno-rtti -fno-exceptions -fpascal-strings \
|
---|
133 | -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \
|
---|
134 | -compatibility_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \
|
---|
135 | -framework CoreServices \
|
---|
136 | -framework CoreFoundation \
|
---|
137 | -framework Foundation \
|
---|
138 | -framework AppKit \
|
---|
139 | -framework Carbon
|
---|
140 | ## @todo why is -fno-exceptions here.
|
---|
141 | ifn1of ($(KBUILD_TARGET), os2 win)
|
---|
142 | TEMPLATE_XPComDll_CXXFLAGS += -fPIC
|
---|
143 | TEMPLATE_XPComDll_CFLAGS += -fPIC
|
---|
144 | TEMPLATE_XPComDll_LDFLAGS += -fPIC
|
---|
145 | TEMPLATE_XPComDll_DEFS += MOZ_PRESERVE_PIC
|
---|
146 | endif
|
---|
147 | TEMPLATE_XPComDll_INCS = $(VBOX_PATH_XPCOM_SRC)/xpcom/build \
|
---|
148 | $(VBOX_PATH_XPCOM_SRC)/xpcom/ds \
|
---|
149 | $(VBOX_PATH_XPCOM_SRC)/xpcom/io \
|
---|
150 | $(VBOX_PATH_XPCOM_SRC)/xpcom/base \
|
---|
151 | $(VBOX_PATH_XPCOM_SRC)/xpcom/components \
|
---|
152 | $(VBOX_PATH_XPCOM_SRC)/xpcom/threads \
|
---|
153 | $(VBOX_PATH_XPCOM_SRC)/xpcom/proxy/src \
|
---|
154 | $(VBOX_PATH_XPCOM_SRC)/xpcom/reflect/xptcall/src \
|
---|
155 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/client/src \
|
---|
156 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/shared/src \
|
---|
157 | $(VBOX_PATH_SDK)/bindings/xpcom/include \
|
---|
158 | $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
|
---|
159 | $(VBOX_PATH_SDK)/bindings/xpcom/include/string \
|
---|
160 | $(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
|
---|
161 | $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd \
|
---|
162 | .
|
---|
163 | TEMPLATE_XPComDll_DEFS.darwin += VBOX_WITH_NEWER_OSX_SDK
|
---|
164 | TEMPLATE_XPComDll_INCS.darwin = \
|
---|
165 | $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/ \
|
---|
166 | $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/ \
|
---|
167 | $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/Headers/
|
---|
168 |
|
---|
169 | TEMPLATE_XPComDll_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $($(hdrinst)_1_TARGET)) \
|
---|
170 | $(PATH_TARGET)/VBox-xpcom-idl-timestamp
|
---|
171 |
|
---|
172 | # When using IPRT in NSRP or/and using IPRT for logging, link with IPRT.
|
---|
173 | TEMPLATE_XPComDll_LIBS += $(LIB_RUNTIME)
|
---|
174 |
|
---|
175 |
|
---|
176 | #
|
---|
177 | # Same as XPCOM except using YASM/NASM instead of the gnu/unix assembler.
|
---|
178 | #
|
---|
179 | TEMPLATE_XPComDllYasm := XPCOM w/ yasm
|
---|
180 | TEMPLATE_XPComDllYasm_EXTENDS := XPComDll
|
---|
181 | TEMPLATE_XPComDllYasm_ASTOOL = $(TEMPLATE_VBoxR3DllNonPedantic_ASTOOL)
|
---|
182 | TEMPLATE_XPComDllYasm_ASFLAGS = $(TEMPLATE_VBoxR3DllNonPedantic_ASFLAGS)
|
---|
183 | TEMPLATE_XPComDllYasm_ASFLAGS.x86 = $(TEMPLATE_VBoxR3DllNonPedantic_ASFLAGS.x86)
|
---|
184 | TEMPLATE_XPComDllYasm_ASFLAGS.amd64 = $(TEMPLATE_VBoxR3DllNonPedantic_ASFLAGS.amd64)
|
---|
185 | TEMPLATE_XPComDllYasm_ASDEFS = $(TEMPLATE_VBoxR3DllNonPedantic_DEFS)
|
---|
186 |
|
---|
187 |
|
---|
188 | #
|
---|
189 | # Template for building the XPCOM executables.
|
---|
190 | # Used as a base template by XPComTstExe and XPComIpcExe.
|
---|
191 | #
|
---|
192 | TEMPLATE_XPComExe := XPCOM executable files
|
---|
193 | TEMPLATE_XPComExe_EXTENDS := XPComDll
|
---|
194 | ## @todo undo -fPIC.
|
---|
195 | TEMPLATE_XPComExe_INCS = ipc/ipcd/shared/src \
|
---|
196 | $(VBOX_PATH_SDK)/bindings/xpcom/include \
|
---|
197 | $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
|
---|
198 | $(VBOX_PATH_SDK)/bindings/xpcom/include/string \
|
---|
199 | $(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
|
---|
200 | $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd \
|
---|
201 | .
|
---|
202 | TEMPLATE_XPComExe_LIBS = \
|
---|
203 | $(VBox-xpcom-ipcshared_1_TARGET) \
|
---|
204 | $(VBoxXPCOM_1_TARGET) \
|
---|
205 | $(TEMPLATE_XPComDll_LIBS)
|
---|
206 | TEMPLATE_XPComExe_LIBS.freebsd = $(LIB_PTHREAD)
|
---|
207 | TEMPLATE_XPComExe_LIBS.linux = dl $(LIB_PTHREAD)
|
---|
208 | TEMPLATE_XPComExe_LDFLAGS.darwin = -bind_at_load $(filter-out -current_version -compatibility_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD),$(TEMPLATE_XPComDll_LDFLAGS.darwin))
|
---|
209 |
|
---|
210 |
|
---|
211 | #
|
---|
212 | # Template for building the XPCOM testcase executables
|
---|
213 | #
|
---|
214 | TEMPLATE_XPComTstExe = XPCOM executable files (testcases)
|
---|
215 | TEMPLATE_XPComTstExe_EXTENDS = XPComExe
|
---|
216 | TEMPLATE_XPComTstExe_CXXFLAGS = $(TEMPLATE_XPComExe_CXXFLAGS) -Wno-format
|
---|
217 | TEMPLATE_XPComTstExe_CFLAGS = $(TEMPLATE_XPComExe_CFLAGS) -Wno-format
|
---|
218 | TEMPLATE_XPComTstExe_INST = $(INST_TESTCASE)
|
---|
219 | ifdef VBOX_WITH_RUNPATH
|
---|
220 | TEMPLATE_XPComTstExe_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' $(TEMPLATE_XPComExe_LDFLAGS)
|
---|
221 | else ifdef VBOX_WITH_RELATIVE_RUNPATH
|
---|
222 | TEMPLATE_XPComTstExe_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..' $(TEMPLATE_XPComExe_LDFLAGS)
|
---|
223 | endif
|
---|
224 | if "$(KBUILD_TARGET)" == "win" && defined(VBOX_SIGNING_MODE)
|
---|
225 | TEMPLATE_XPComTstExe_POST_CMDS =
|
---|
226 | endif
|
---|
227 |
|
---|
228 |
|
---|
229 | #
|
---|
230 | # Template for building XPCOM executables for running at build time.
|
---|
231 | #
|
---|
232 | # It extends the BLDPROG template in config.kmk but overrides CFLAGS
|
---|
233 | # and CXXFLAGS completely at the moment.
|
---|
234 | #
|
---|
235 | TEMPLATE_XPComBldProg = XPCOM Build programs executables
|
---|
236 | TEMPLATE_XPComBldProg_EXTENDS = VBoxAdvBldProg
|
---|
237 | TEMPLATE_XPComBldProg_DEFS.$(KBUILD_HOST) = $(TEMPLATE_VBoxAdvBldProg_DEFS.$(KBUILD_HOST)) $(TEMPLATE_XPComExe_DEFS.$(KBUILD_HOST))
|
---|
238 | TEMPLATE_XPComBldProg_DEFS.x86 = $(TEMPLATE_VBoxAdvBldProg_DEFS.x86) $(TEMPLATE_XPComExe_DEFS.x86)
|
---|
239 | TEMPLATE_XPComBldProg_DEFS.amd64 = $(TEMPLATE_VBoxAdvBldProg_DEFS.amd64) $(TEMPLATE_XPComExe_DEFS.amd64)
|
---|
240 | TEMPLATE_XPComBldProg_DEFS.arm64 = $(TEMPLATE_VBoxAdvBldProg_DEFS.arm64) $(TEMPLATE_XPComExe_DEFS.arm64)
|
---|
241 | TEMPLATE_XPComBldProg_INCS = \
|
---|
242 | $(VBOX_PATH_SDK)/bindings/xpcom/include \
|
---|
243 | $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
|
---|
244 | $(VBOX_PATH_SDK)/bindings/xpcom/include/string \
|
---|
245 | $(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
|
---|
246 | $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd
|
---|
247 | TEMPLATE_XPComBldProg_CFLAGS = $(filter-out $(VBOX_GCC_PEDANTIC_C), $(TEMPLATE_VBoxAdvBldProg_CFLAGS)) \
|
---|
248 | $(VBOX_GCC_Wno-int-to-pointer-cast) $(VBOX_GCC_Wno-pointer-to-int-cast) $(VBOX_GCC_NON_PEDANTIC_C)
|
---|
249 | TEMPLATE_XPComBldProg_CXXFLAGS.darwin = $(TEMPLATE_VBoxAdvBldProg_CXXFLAGS.darwin) -fpascal-strings -fshort-wchar -fno-common -fno-rtti
|
---|
250 | TEMPLATE_XPComBldProg_CXXFLAGS.solaris = $(TEMPLATE_VBoxAdvBldProg_CXXFLAGS.solaris) -fno-omit-frame-pointer # for now anyway.
|
---|
251 | TEMPLATE_XPComBldProg_LDFLAGS.darwin = $(TEMPLATE_VBoxAdvBldProg_LDFLAGS.darwin) -fpascal-strings -fshort-wchar -fno-rtti -fno-exceptions
|
---|
252 | TEMPLATE_XPComBldProg_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $($(hdrinst)_1_TARGET))
|
---|
253 | TEMPLATE_XPComBldProg_LIBS.darwin = \
|
---|
254 | iconv
|
---|
255 |
|
---|
256 | #
|
---|
257 | # Creates a x86 target for an XPCOM target if so desired.
|
---|
258 | # The target is specified as the first argument: $(evalcall VBOX_XPCOM_X86,target).
|
---|
259 | #
|
---|
260 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
261 | define VBOX_XPCOM_X86
|
---|
262 | $(1)-x86_TEMPLATE := $(strip $($(1)_TEMPLATE))-x86
|
---|
263 | $(1)-x86_EXTENDS := $(1)
|
---|
264 | endef
|
---|
265 | else
|
---|
266 | define VBOX_XPCOM_X86
|
---|
267 | endef
|
---|
268 | endif
|
---|
269 |
|
---|
270 | # Corresponding 32-bit template(s).
|
---|
271 | TEMPLATE_XPComDll-x86 = 32-bit XPCOM libraries (shared)
|
---|
272 | TEMPLATE_XPComDll-x86_EXTENDS = XPComDll
|
---|
273 | TEMPLATE_XPComDll-x86_BLD_TRG_ARCH = x86
|
---|
274 | TEMPLATE_XPComDll-x86_DEFS = $(TEMPLATE_XPComDll_DEFS) VBOX_IN_32_ON_64_MAIN_API
|
---|
275 | TEMPLATE_XPComDll-x86_LIBS = $(subst $(LIB_RUNTIME),$(VBOX_LIB_RUNTIME_X86),$(TEMPLATE_XPComDll_LIBS))
|
---|
276 |
|
---|
277 | TEMPLATE_XPComDllYasm-x86 = 32-bit XPCOM libraries (shared) with YASM as assembler.
|
---|
278 | TEMPLATE_XPComDllYasm-x86_EXTENDS = XPComDllYasm
|
---|
279 | TEMPLATE_XPComDllYasm-x86_BLD_TRG_ARCH = x86
|
---|
280 | TEMPLATE_XPComDllYasm-x86_DEFS = $(TEMPLATE_XPComDllYasm_DEFS) VBOX_IN_32_ON_64_MAIN_API
|
---|
281 | TEMPLATE_XPComDllYasm-x86_LIBS = $(subst $(LIB_RUNTIME),$(VBOX_LIB_RUNTIME_X86),$(TEMPLATE_XPComDllYasm_LIBS))
|
---|
282 |
|
---|
283 |
|
---|
284 | #
|
---|
285 | # The list of XPCOM's IDL files.
|
---|
286 | # This is used by the java bindings as well as the XPCOM build.
|
---|
287 | #
|
---|
288 | XPCOM_IDLFILES = \
|
---|
289 | xpcom/base/nsIDebug.idl \
|
---|
290 | xpcom/base/nsIInterfaceRequestor.idl \
|
---|
291 | xpcom/base/nsIProgrammingLanguage.idl \
|
---|
292 | xpcom/base/nsISupports.idl \
|
---|
293 | xpcom/base/nsITraceRefcnt.idl \
|
---|
294 | xpcom/base/nsIWeakReference.idl \
|
---|
295 | xpcom/base/nsIErrorService.idl \
|
---|
296 | xpcom/base/nsIException.idl \
|
---|
297 | xpcom/base/nsIExceptionService.idl \
|
---|
298 | xpcom/base/nsrootidl.idl \
|
---|
299 | xpcom/components/nsIClassInfo.idl \
|
---|
300 | xpcom/components/nsIComponentRegistrar.idl \
|
---|
301 | xpcom/components/nsIFactory.idl \
|
---|
302 | xpcom/components/nsIModule.idl \
|
---|
303 | xpcom/components/nsIServiceManager.idl \
|
---|
304 | xpcom/components/nsIComponentManager.idl \
|
---|
305 | xpcom/components/nsICategoryManager.idl \
|
---|
306 | xpcom/components/nsIComponentLoader.idl \
|
---|
307 | xpcom/components/nsINativeComponentLoader.idl \
|
---|
308 | xpcom/components/nsIComponentManagerObsolete.idl \
|
---|
309 | xpcom/components/nsIComponentLoaderManager.idl \
|
---|
310 | xpcom/ds/nsISupportsArray.idl \
|
---|
311 | xpcom/ds/nsICollection.idl \
|
---|
312 | xpcom/ds/nsISerializable.idl \
|
---|
313 | xpcom/ds/nsIEnumerator.idl \
|
---|
314 | xpcom/ds/nsISimpleEnumerator.idl \
|
---|
315 | xpcom/ds/nsIObserverService.idl \
|
---|
316 | xpcom/ds/nsIObserver.idl \
|
---|
317 | xpcom/ds/nsIAtom.idl \
|
---|
318 | xpcom/ds/nsIAtomService.idl \
|
---|
319 | xpcom/ds/nsIProperties.idl \
|
---|
320 | xpcom/ds/nsIStringEnumerator.idl \
|
---|
321 | xpcom/ds/nsISupportsPrimitives.idl \
|
---|
322 | xpcom/ds/nsISupportsIterators.idl \
|
---|
323 | xpcom/ds/nsIVariant.idl \
|
---|
324 | xpcom/ds/nsIArray.idl \
|
---|
325 | xpcom/ds/nsIHashable.idl \
|
---|
326 | xpcom/io/nsIDirectoryService.idl \
|
---|
327 | xpcom/io/nsIDirectoryEnumerator.idl \
|
---|
328 | xpcom/io/nsIFile.idl \
|
---|
329 | xpcom/io/nsILocalFile.idl \
|
---|
330 | xpcom/io/nsILocalFileMac.idl \
|
---|
331 | xpcom/io/nsIInputStream.idl \
|
---|
332 | xpcom/io/nsIObjectInputStream.idl \
|
---|
333 | xpcom/io/nsIBinaryInputStream.idl \
|
---|
334 | xpcom/io/nsIObjectOutputStream.idl \
|
---|
335 | xpcom/io/nsIBinaryOutputStream.idl \
|
---|
336 | xpcom/io/nsIOutputStream.idl \
|
---|
337 | xpcom/proxy/public/nsIProxyObjectManager.idl \
|
---|
338 | xpcom/threads/nsIEventQueueService.idl \
|
---|
339 | xpcom/threads/nsIEventQueue.idl \
|
---|
340 | xpcom/threads/nsIEventTarget.idl \
|
---|
341 | xpcom/threads/nsIRunnable.idl \
|
---|
342 | xpcom/reflect/xptinfo/public/nsIInterfaceInfo.idl \
|
---|
343 | xpcom/reflect/xptinfo/public/nsIInterfaceInfoManager.idl \
|
---|
344 | xpcom/reflect/xptinfo/public/nsIXPTLoader.idl \
|
---|
345 | ipc/ipcd/client/public/ipcIService.idl \
|
---|
346 | ipc/ipcd/client/public/ipcIMessageObserver.idl \
|
---|
347 | ipc/ipcd/client/public/ipcIClientObserver.idl \
|
---|
348 | ipc/ipcd/client/public/ipcIDConnectService.idl
|
---|
349 |
|
---|
350 | #
|
---|
351 | # The include path for the XPCOM IDL files above.
|
---|
352 | #
|
---|
353 | XPIDL_INCS = \
|
---|
354 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/base/ \
|
---|
355 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/ds/ \
|
---|
356 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/components/ \
|
---|
357 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/io/ \
|
---|
358 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/threads/ \
|
---|
359 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/reflect/xptinfo/public/
|
---|
360 |
|
---|