1 | # $Id: Config.kmk 102339 2023-11-27 17:48:01Z 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.arm64 = -m64
|
---|
64 | TEMPLATE_XPComDll_CXXFLAGS.darwin = -fpascal-strings -fshort-wchar -fno-common -fno-rtti $(VBOX_DARWIN_DEF_SDK_CXXFLAGS)
|
---|
65 | TEMPLATE_XPComDll_CXXFLAGS.freebsd = -pthread
|
---|
66 | TEMPLATE_XPComDll_CXXFLAGS.linux = -pthread
|
---|
67 | TEMPLATE_XPComDll_CXXFLAGS.solaris = -fno-omit-frame-pointer # for now anyway.
|
---|
68 | TEMPLATE_XPComDll_CFLAGS = -g -pipe -Wall -Wno-unused -Wno-parentheses -Wno-uninitialized $(VBOX_GCC_fvisibility-hidden) \
|
---|
69 | $(VBOX_GCC_Wno-multistatement-macros) $(VBOX_GCC_fdiagnostics-show-option) $(VBOX_GCC_SANITIZER_FLAGS) $(VBOX_GCC_OPT) $(VBOX_GCC_FP)
|
---|
70 | TEMPLATE_XPComDll_CFLAGS.x86 = -m32
|
---|
71 | TEMPLATE_XPComDll_CFLAGS.amd64 = -m64
|
---|
72 | TEMPLATE_XPComDll_CFLAGS.arm64 = -m64
|
---|
73 | TEMPLATE_XPComDll_CFLAGS.freebsd = -pthread
|
---|
74 | TEMPLATE_XPComDll_CFLAGS.linux = -pthread -ansi
|
---|
75 | TEMPLATE_XPComDll_CFLAGS.solaris = -fno-omit-frame-pointer # for now anyway.
|
---|
76 | TEMPLATE_XPComDll_DEFS = \
|
---|
77 | MOZILLA_CLIENT=1 \
|
---|
78 | NDEBUG=1 \
|
---|
79 | _IMPL_NS_COM \
|
---|
80 | IN_RING3
|
---|
81 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
82 | TEMPLATE_XPComDll_DEFS += \
|
---|
83 | XPCOM_DLL_BASE="$(basename $(notdir $(LIB_XPCOM)))" \
|
---|
84 | MOZ_DLL_SUFFIX="$(suffix $(LIB_XPCOM))"
|
---|
85 | else
|
---|
86 | TEMPLATE_XPComDll_DEFS += \
|
---|
87 | XPCOM_DLL_BASE=\"$(basename $(notdir $(LIB_XPCOM)))\" \
|
---|
88 | MOZ_DLL_SUFFIX=\"$(suffix $(LIB_XPCOM))\"
|
---|
89 | endif
|
---|
90 |
|
---|
91 | ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
|
---|
92 | TEMPLATE_XPComDll_DEFS += VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
|
---|
93 | endif
|
---|
94 | TEMPLATE_XPComDll_DEFS.x86 = i386=1
|
---|
95 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
96 | TEMPLATE_XPComDll_DEFS.amd64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY(a,b)=__builtin_va_copy(a,b)
|
---|
97 | else
|
---|
98 | TEMPLATE_XPComDll_DEFS.amd64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY\(a\,b\)=__builtin_va_copy\(a\,b\)
|
---|
99 | endif
|
---|
100 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
101 | TEMPLATE_XPComDll_DEFS.arm64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY(a,b)=__builtin_va_copy(a,b)
|
---|
102 | else
|
---|
103 | TEMPLATE_XPComDll_DEFS.arm64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY\(a\,b\)=__builtin_va_copy\(a\,b\)
|
---|
104 | endif
|
---|
105 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
106 | TEMPLATE_XPComDll_DEFS.darwin = XP_UNIX=1 XP_MACOSX=1 TARGET_CARBON=1 HAVE_VISIBILITY_ATTRIBUTE=1 $(TEMPLATE_VBoxR3DllNonPedantic_DEFS.darwin)
|
---|
107 | else
|
---|
108 | TEMPLATE_XPComDll_DEFS.darwin = XP_UNIX=1 XP_MACOSX=1 TARGET_CARBON=1 HAVE_VISIBILITY_ATTRIBUTE=1 $(TEMPLATE_VBoxR3DllNonPedantic_DEFS.darwin)
|
---|
109 | endif
|
---|
110 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
111 | TEMPLATE_XPComDll_DEFS.freebsd = XP_UNIX=1 HAVE_VISIBILITY_ATTRIBUTE=1
|
---|
112 | else
|
---|
113 | TEMPLATE_XPComDll_DEFS.freebsd = XP_UNIX=1 HAVE_VISIBILITY_ATTRIBUTE=1
|
---|
114 | endif
|
---|
115 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
116 | TEMPLATE_XPComDll_DEFS.linux = XP_UNIX=1 _GNU_SOURCE HAVE_VISIBILITY_ATTRIBUTE=1
|
---|
117 | else
|
---|
118 | TEMPLATE_XPComDll_DEFS.linux = XP_UNIX=1 _GNU_SOURCE HAVE_VISIBILITY_ATTRIBUTE=1
|
---|
119 | endif
|
---|
120 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
121 | TEMPLATE_XPComDll_DEFS.solaris = XP_UNIX=1 HAVE_LIBDL=1 HAVE_SENDFILEV=1 _REENTRANT
|
---|
122 | else
|
---|
123 | TEMPLATE_XPComDll_DEFS.solaris = XP_UNIX=1 HAVE_LIBDL=1 HAVE_SENDFILEV=1 _REENTRANT
|
---|
124 | endif
|
---|
125 | TEMPLATE_XPComDll_LDFLAGS = $(TEMPLATE_VBoxR3DllNonPedantic_LDFLAGS)
|
---|
126 | ifdef VBOX_WITH_RUNPATH
|
---|
127 | TEMPLATE_XPComDll_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)'
|
---|
128 | else ifdef VBOX_WITH_RELATIVE_RUNPATH
|
---|
129 | TEMPLATE_XPComDll_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)'
|
---|
130 | endif
|
---|
131 | TEMPLATE_XPComDll_LDFLAGS.x86 = -m32
|
---|
132 | TEMPLATE_XPComDll_LDFLAGS.amd64 = -m64
|
---|
133 | TEMPLATE_XPComDll_LDFLAGS.arm64 = -m64
|
---|
134 | TEMPLATE_XPComDll_LDFLAGS.darwin = $(TEMPLATE_VBoxR3DllNonPedantic_LDFLAGS.darwin) \
|
---|
135 | -fshort-wchar -fno-rtti -fno-exceptions -fpascal-strings \
|
---|
136 | -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \
|
---|
137 | -compatibility_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \
|
---|
138 | -framework CoreServices \
|
---|
139 | -framework CoreFoundation \
|
---|
140 | -framework Foundation \
|
---|
141 | -framework AppKit \
|
---|
142 | -framework Carbon
|
---|
143 | ## @todo why is -fno-exceptions here.
|
---|
144 | ifn1of ($(KBUILD_TARGET), os2 win)
|
---|
145 | TEMPLATE_XPComDll_CXXFLAGS += -fPIC
|
---|
146 | TEMPLATE_XPComDll_CFLAGS += -fPIC
|
---|
147 | TEMPLATE_XPComDll_LDFLAGS += -fPIC
|
---|
148 | TEMPLATE_XPComDll_DEFS += MOZ_PRESERVE_PIC
|
---|
149 | endif
|
---|
150 | TEMPLATE_XPComDll_INCS = $(VBOX_PATH_XPCOM_SRC)/xpcom/build \
|
---|
151 | $(VBOX_PATH_XPCOM_SRC)/xpcom/ds \
|
---|
152 | $(VBOX_PATH_XPCOM_SRC)/xpcom/io \
|
---|
153 | $(VBOX_PATH_XPCOM_SRC)/xpcom/base \
|
---|
154 | $(VBOX_PATH_XPCOM_SRC)/xpcom/components \
|
---|
155 | $(VBOX_PATH_XPCOM_SRC)/xpcom/threads \
|
---|
156 | $(VBOX_PATH_XPCOM_SRC)/xpcom/proxy/src \
|
---|
157 | $(VBOX_PATH_XPCOM_SRC)/xpcom/reflect/xptcall/src \
|
---|
158 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/client/src \
|
---|
159 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/shared/src \
|
---|
160 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/extensions/lock/src \
|
---|
161 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/extensions/transmngr/src \
|
---|
162 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/extensions/dconnect/src \
|
---|
163 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/extensions/transmngr/common \
|
---|
164 | $(VBOX_PATH_SDK)/bindings/xpcom/include \
|
---|
165 | $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
|
---|
166 | $(VBOX_PATH_SDK)/bindings/xpcom/include/string \
|
---|
167 | $(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
|
---|
168 | $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd \
|
---|
169 | .
|
---|
170 | TEMPLATE_XPComDll_DEFS.darwin += VBOX_WITH_NEWER_OSX_SDK
|
---|
171 | TEMPLATE_XPComDll_INCS.darwin = \
|
---|
172 | $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/ \
|
---|
173 | $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/ \
|
---|
174 | $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/Headers/
|
---|
175 |
|
---|
176 | TEMPLATE_XPComDll_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $($(hdrinst)_1_TARGET)) \
|
---|
177 | $(PATH_TARGET)/VBox-xpcom-idl-timestamp
|
---|
178 |
|
---|
179 | # When using IPRT in NSRP or/and using IPRT for logging, link with IPRT.
|
---|
180 | TEMPLATE_XPComDll_LIBS += $(LIB_RUNTIME)
|
---|
181 |
|
---|
182 |
|
---|
183 | #
|
---|
184 | # Same as XPCOM except using YASM/NASM instead of the gnu/unix assembler.
|
---|
185 | #
|
---|
186 | TEMPLATE_XPComDllYasm := XPCOM w/ yasm
|
---|
187 | TEMPLATE_XPComDllYasm_EXTENDS := XPComDll
|
---|
188 | TEMPLATE_XPComDllYasm_ASTOOL = $(TEMPLATE_VBoxR3DllNonPedantic_ASTOOL)
|
---|
189 | TEMPLATE_XPComDllYasm_ASFLAGS = $(TEMPLATE_VBoxR3DllNonPedantic_ASFLAGS)
|
---|
190 | TEMPLATE_XPComDllYasm_ASFLAGS.x86 = $(TEMPLATE_VBoxR3DllNonPedantic_ASFLAGS.x86)
|
---|
191 | TEMPLATE_XPComDllYasm_ASFLAGS.amd64 = $(TEMPLATE_VBoxR3DllNonPedantic_ASFLAGS.amd64)
|
---|
192 | TEMPLATE_XPComDllYasm_ASDEFS = $(TEMPLATE_VBoxR3DllNonPedantic_DEFS)
|
---|
193 |
|
---|
194 |
|
---|
195 | #
|
---|
196 | # Template for building the XPCOM executables.
|
---|
197 | # Used as a base template by XPComTstExe and XPComIpcExe.
|
---|
198 | #
|
---|
199 | TEMPLATE_XPComExe := XPCOM executable files
|
---|
200 | TEMPLATE_XPComExe_EXTENDS := XPComDll
|
---|
201 | ## @todo undo -fPIC.
|
---|
202 | TEMPLATE_XPComExe_INCS = ipc/ipcd/shared/src \
|
---|
203 | $(VBOX_PATH_SDK)/bindings/xpcom/include \
|
---|
204 | $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
|
---|
205 | $(VBOX_PATH_SDK)/bindings/xpcom/include/string \
|
---|
206 | $(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
|
---|
207 | $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd \
|
---|
208 | .
|
---|
209 | TEMPLATE_XPComExe_LIBS = \
|
---|
210 | $(VBox-xpcom-ipcshared_1_TARGET) \
|
---|
211 | $(VBoxXPCOM_1_TARGET) \
|
---|
212 | $(TEMPLATE_XPComDll_LIBS)
|
---|
213 | TEMPLATE_XPComExe_LIBS.freebsd = $(LIB_PTHREAD)
|
---|
214 | TEMPLATE_XPComExe_LIBS.linux = dl $(LIB_PTHREAD)
|
---|
215 | 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))
|
---|
216 |
|
---|
217 |
|
---|
218 | #
|
---|
219 | # Template for building the XPCOM testcase executables
|
---|
220 | #
|
---|
221 | TEMPLATE_XPComTstExe = XPCOM executable files (testcases)
|
---|
222 | TEMPLATE_XPComTstExe_EXTENDS = XPComExe
|
---|
223 | TEMPLATE_XPComTstExe_CXXFLAGS = $(TEMPLATE_XPComExe_CXXFLAGS) -Wno-format
|
---|
224 | TEMPLATE_XPComTstExe_CFLAGS = $(TEMPLATE_XPComExe_CFLAGS) -Wno-format
|
---|
225 | TEMPLATE_XPComTstExe_INST = $(INST_TESTCASE)
|
---|
226 | ifdef VBOX_WITH_RUNPATH
|
---|
227 | TEMPLATE_XPComTstExe_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' $(TEMPLATE_XPComExe_LDFLAGS)
|
---|
228 | else ifdef VBOX_WITH_RELATIVE_RUNPATH
|
---|
229 | TEMPLATE_XPComTstExe_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..' $(TEMPLATE_XPComExe_LDFLAGS)
|
---|
230 | endif
|
---|
231 | if "$(KBUILD_TARGET)" == "win" && defined(VBOX_SIGNING_MODE)
|
---|
232 | TEMPLATE_XPComTstExe_POST_CMDS =
|
---|
233 | endif
|
---|
234 |
|
---|
235 |
|
---|
236 | #
|
---|
237 | # Template for building XPCOM executables for running at build time.
|
---|
238 | #
|
---|
239 | # It extends the BLDPROG template in config.kmk but overrides CFLAGS
|
---|
240 | # and CXXFLAGS completely at the moment.
|
---|
241 | #
|
---|
242 | TEMPLATE_XPComBldProg = XPCOM Build programs executables
|
---|
243 | TEMPLATE_XPComBldProg_EXTENDS = VBoxAdvBldProg
|
---|
244 | TEMPLATE_XPComBldProg_DEFS.$(KBUILD_HOST) = $(TEMPLATE_VBoxAdvBldProg_DEFS.$(KBUILD_HOST)) $(TEMPLATE_XPComExe_DEFS.$(KBUILD_HOST))
|
---|
245 | TEMPLATE_XPComBldProg_DEFS.x86 = $(TEMPLATE_VBoxAdvBldProg_DEFS.x86) $(TEMPLATE_XPComExe_DEFS.x86)
|
---|
246 | TEMPLATE_XPComBldProg_DEFS.amd64 = $(TEMPLATE_VBoxAdvBldProg_DEFS.amd64) $(TEMPLATE_XPComExe_DEFS.amd64)
|
---|
247 | TEMPLATE_XPComBldProg_DEFS.arm64 = $(TEMPLATE_VBoxAdvBldProg_DEFS.arm64) $(TEMPLATE_XPComExe_DEFS.arm64)
|
---|
248 | TEMPLATE_XPComBldProg_INCS = \
|
---|
249 | $(VBOX_PATH_SDK)/bindings/xpcom/include \
|
---|
250 | $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
|
---|
251 | $(VBOX_PATH_SDK)/bindings/xpcom/include/string \
|
---|
252 | $(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
|
---|
253 | $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd
|
---|
254 | TEMPLATE_XPComBldProg_CFLAGS = $(filter-out $(VBOX_GCC_PEDANTIC_C), $(TEMPLATE_VBoxAdvBldProg_CFLAGS)) \
|
---|
255 | $(VBOX_GCC_Wno-int-to-pointer-cast) $(VBOX_GCC_Wno-pointer-to-int-cast) $(VBOX_GCC_NON_PEDANTIC_C)
|
---|
256 | TEMPLATE_XPComBldProg_CXXFLAGS.darwin = $(TEMPLATE_VBoxAdvBldProg_CXXFLAGS.darwin) -fpascal-strings -fshort-wchar -fno-common -fno-rtti
|
---|
257 | TEMPLATE_XPComBldProg_CXXFLAGS.solaris = $(TEMPLATE_VBoxAdvBldProg_CXXFLAGS.solaris) -fno-omit-frame-pointer # for now anyway.
|
---|
258 | TEMPLATE_XPComBldProg_LDFLAGS.darwin = $(TEMPLATE_VBoxAdvBldProg_LDFLAGS.darwin) -fpascal-strings -fshort-wchar -fno-rtti -fno-exceptions
|
---|
259 | TEMPLATE_XPComBldProg_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $($(hdrinst)_1_TARGET))
|
---|
260 | TEMPLATE_XPComBldProg_LIBS.darwin = \
|
---|
261 | iconv
|
---|
262 |
|
---|
263 | #
|
---|
264 | # Creates a x86 target for an XPCOM target if so desired.
|
---|
265 | # The target is specified as the first argument: $(evalcall VBOX_XPCOM_X86,target).
|
---|
266 | #
|
---|
267 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
268 | define VBOX_XPCOM_X86
|
---|
269 | $(1)-x86_TEMPLATE := $(strip $($(1)_TEMPLATE))-x86
|
---|
270 | $(1)-x86_EXTENDS := $(1)
|
---|
271 | endef
|
---|
272 | else
|
---|
273 | define VBOX_XPCOM_X86
|
---|
274 | endef
|
---|
275 | endif
|
---|
276 |
|
---|
277 | # Corresponding 32-bit template(s).
|
---|
278 | TEMPLATE_XPComDll-x86 = 32-bit XPCOM libraries (shared)
|
---|
279 | TEMPLATE_XPComDll-x86_EXTENDS = XPComDll
|
---|
280 | TEMPLATE_XPComDll-x86_BLD_TRG_ARCH = x86
|
---|
281 | TEMPLATE_XPComDll-x86_DEFS = $(TEMPLATE_XPComDll_DEFS) VBOX_IN_32_ON_64_MAIN_API
|
---|
282 | TEMPLATE_XPComDll-x86_LIBS = $(subst $(LIB_RUNTIME),$(VBOX_LIB_RUNTIME_X86),$(TEMPLATE_XPComDll_LIBS))
|
---|
283 |
|
---|
284 | TEMPLATE_XPComDllYasm-x86 = 32-bit XPCOM libraries (shared) with YASM as assembler.
|
---|
285 | TEMPLATE_XPComDllYasm-x86_EXTENDS = XPComDllYasm
|
---|
286 | TEMPLATE_XPComDllYasm-x86_BLD_TRG_ARCH = x86
|
---|
287 | TEMPLATE_XPComDllYasm-x86_DEFS = $(TEMPLATE_XPComDllYasm_DEFS) VBOX_IN_32_ON_64_MAIN_API
|
---|
288 | TEMPLATE_XPComDllYasm-x86_LIBS = $(subst $(LIB_RUNTIME),$(VBOX_LIB_RUNTIME_X86),$(TEMPLATE_XPComDllYasm_LIBS))
|
---|
289 |
|
---|
290 |
|
---|
291 | #
|
---|
292 | # The list of XPCOM's IDL files.
|
---|
293 | # This is used by the java bindings as well as the XPCOM build.
|
---|
294 | #
|
---|
295 | XPCOM_IDLFILES = \
|
---|
296 | xpcom/base/nsIDebug.idl \
|
---|
297 | xpcom/base/nsIInterfaceRequestor.idl \
|
---|
298 | xpcom/base/nsIProgrammingLanguage.idl \
|
---|
299 | xpcom/base/nsISupports.idl \
|
---|
300 | xpcom/base/nsITraceRefcnt.idl \
|
---|
301 | xpcom/base/nsIWeakReference.idl \
|
---|
302 | xpcom/base/nsIErrorService.idl \
|
---|
303 | xpcom/base/nsIException.idl \
|
---|
304 | xpcom/base/nsIExceptionService.idl \
|
---|
305 | xpcom/base/nsrootidl.idl \
|
---|
306 | xpcom/components/nsIClassInfo.idl \
|
---|
307 | xpcom/components/nsIComponentRegistrar.idl \
|
---|
308 | xpcom/components/nsIFactory.idl \
|
---|
309 | xpcom/components/nsIModule.idl \
|
---|
310 | xpcom/components/nsIServiceManager.idl \
|
---|
311 | xpcom/components/nsIComponentManager.idl \
|
---|
312 | xpcom/components/nsICategoryManager.idl \
|
---|
313 | xpcom/components/nsIComponentLoader.idl \
|
---|
314 | xpcom/components/nsINativeComponentLoader.idl \
|
---|
315 | xpcom/components/nsIComponentManagerObsolete.idl \
|
---|
316 | xpcom/components/nsIComponentLoaderManager.idl \
|
---|
317 | xpcom/ds/nsISupportsArray.idl \
|
---|
318 | xpcom/ds/nsICollection.idl \
|
---|
319 | xpcom/ds/nsISerializable.idl \
|
---|
320 | xpcom/ds/nsIEnumerator.idl \
|
---|
321 | xpcom/ds/nsISimpleEnumerator.idl \
|
---|
322 | xpcom/ds/nsIObserverService.idl \
|
---|
323 | xpcom/ds/nsIObserver.idl \
|
---|
324 | xpcom/ds/nsIAtom.idl \
|
---|
325 | xpcom/ds/nsIAtomService.idl \
|
---|
326 | xpcom/ds/nsIProperties.idl \
|
---|
327 | xpcom/ds/nsIStringEnumerator.idl \
|
---|
328 | xpcom/ds/nsISupportsPrimitives.idl \
|
---|
329 | xpcom/ds/nsISupportsIterators.idl \
|
---|
330 | xpcom/ds/nsIVariant.idl \
|
---|
331 | xpcom/ds/nsIArray.idl \
|
---|
332 | xpcom/ds/nsIHashable.idl \
|
---|
333 | xpcom/io/nsIDirectoryService.idl \
|
---|
334 | xpcom/io/nsIDirectoryEnumerator.idl \
|
---|
335 | xpcom/io/nsIFile.idl \
|
---|
336 | xpcom/io/nsILocalFile.idl \
|
---|
337 | xpcom/io/nsILocalFileMac.idl \
|
---|
338 | xpcom/io/nsIInputStream.idl \
|
---|
339 | xpcom/io/nsIObjectInputStream.idl \
|
---|
340 | xpcom/io/nsIBinaryInputStream.idl \
|
---|
341 | xpcom/io/nsIObjectOutputStream.idl \
|
---|
342 | xpcom/io/nsIBinaryOutputStream.idl \
|
---|
343 | xpcom/io/nsIOutputStream.idl \
|
---|
344 | xpcom/proxy/public/nsIProxyObjectManager.idl \
|
---|
345 | xpcom/threads/nsIEventQueueService.idl \
|
---|
346 | xpcom/threads/nsIEventQueue.idl \
|
---|
347 | xpcom/threads/nsIEventTarget.idl \
|
---|
348 | xpcom/threads/nsIRunnable.idl \
|
---|
349 | xpcom/reflect/xptinfo/public/nsIInterfaceInfo.idl \
|
---|
350 | xpcom/reflect/xptinfo/public/nsIInterfaceInfoManager.idl \
|
---|
351 | xpcom/reflect/xptinfo/public/nsIXPTLoader.idl \
|
---|
352 | ipc/ipcd/client/public/ipcIService.idl \
|
---|
353 | ipc/ipcd/client/public/ipcIMessageObserver.idl \
|
---|
354 | ipc/ipcd/client/public/ipcIClientObserver.idl \
|
---|
355 | ipc/ipcd/extensions/lock/public/ipcILockService.idl \
|
---|
356 | ipc/ipcd/extensions/transmngr/public/ipcITransactionService.idl \
|
---|
357 | ipc/ipcd/extensions/dconnect/public/ipcIDConnectService.idl \
|
---|
358 | ipc/ipcd/extensions/transmngr/public/ipcITransactionObserver.idl
|
---|
359 |
|
---|
360 | #
|
---|
361 | # The include path for the XPCOM IDL files above.
|
---|
362 | #
|
---|
363 | XPIDL_INCS = \
|
---|
364 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/base/ \
|
---|
365 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/ds/ \
|
---|
366 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/components/ \
|
---|
367 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/io/ \
|
---|
368 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/threads/ \
|
---|
369 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/reflect/xptinfo/public/
|
---|
370 |
|
---|