VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/Config.kmk@ 102241

Last change on this file since 102241 was 102229, checked in by vboxsync, 18 months ago

libs/xpcom: Remove individual *.cfg files and merge relevant stuff into vbox.cfg, bugref:10545 [build fix]

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 21.8 KB
Line 
1# $Id: Config.kmk 102229 2023-11-22 09:14:10Z 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.
29ifndef VBOX_ROOT_CONFIG_KMK_INCLUDED
30 include $(PATH_ROOT)/Config.kmk
31endif
32
33#
34# Globals.
35#
36VBOX_PATH_XPCOM_SRC := $(PATH_ROOT)/src/libs/xpcom18a4
37
38
39#
40# Template for building the XPCOM libraries (shared).
41#
42TEMPLATE_XPComDll = XPCOM libraries (shared)
43TEMPLATE_XPComDll_EXTENDS = VBoxR3DllNonPedantic
44## @todo correct inheritance here to make it use all the VBoxR3DllNonPedantic settings instead of overriding all of them.
45TEMPLATE_XPComDll_ASTOOL = $(TEMPLATE_VBoxR3DllNonPedantic_TOOL)
46TEMPLATE_XPComDll_ASFLAGS = $(NO_SUCH_VARIABLE)
47TEMPLATE_XPComDll_ASFLAGS.x86 = -m32
48TEMPLATE_XPComDll_ASFLAGS.amd64 = -m64
49TEMPLATE_XPComDll_ASDEFS = $(NO_SUCH_VARIABLE)
50TEMPLATE_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)
56ifndef 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
60endif
61TEMPLATE_XPComDll_CXXFLAGS.x86 = -m32
62TEMPLATE_XPComDll_CXXFLAGS.amd64 = -m64
63TEMPLATE_XPComDll_CXXFLAGS.arm64 = -m64
64TEMPLATE_XPComDll_CXXFLAGS.darwin = -fpascal-strings -fshort-wchar -fno-common -fno-rtti $(VBOX_DARWIN_DEF_SDK_CXXFLAGS)
65TEMPLATE_XPComDll_CXXFLAGS.freebsd = -pthread
66TEMPLATE_XPComDll_CXXFLAGS.linux = -pthread
67TEMPLATE_XPComDll_CXXFLAGS.solaris = -fno-omit-frame-pointer # for now anyway.
68TEMPLATE_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)
70TEMPLATE_XPComDll_CFLAGS.x86 = -m32
71TEMPLATE_XPComDll_CFLAGS.amd64 = -m64
72TEMPLATE_XPComDll_CFLAGS.arm64 = -m64
73TEMPLATE_XPComDll_CFLAGS.freebsd = -pthread
74TEMPLATE_XPComDll_CFLAGS.linux = -pthread -ansi
75TEMPLATE_XPComDll_CFLAGS.solaris = -fno-omit-frame-pointer # for now anyway.
76TEMPLATE_XPComDll_DEFS = \
77 MOZILLA_CLIENT=1 \
78 NDEBUG=1 \
79 _IMPL_NS_COM \
80 IN_RING3 \
81 VBOX_USE_IPRT_IN_XPCOM
82ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
83 TEMPLATE_XPComDll_DEFS += \
84 XPCOM_DLL_BASE="$(basename $(notdir $(LIB_XPCOM)))" \
85 MOZ_DLL_SUFFIX="$(suffix $(LIB_XPCOM))"
86else
87 TEMPLATE_XPComDll_DEFS += \
88 XPCOM_DLL_BASE=\"$(basename $(notdir $(LIB_XPCOM)))\" \
89 MOZ_DLL_SUFFIX=\"$(suffix $(LIB_XPCOM))\"
90endif
91
92ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
93 TEMPLATE_XPComDll_DEFS += VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
94endif
95TEMPLATE_XPComDll_DEFS.x86 = i386=1
96ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
97 TEMPLATE_XPComDll_DEFS.amd64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY(a,b)=__builtin_va_copy(a,b)
98else
99 TEMPLATE_XPComDll_DEFS.amd64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY\(a\,b\)=__builtin_va_copy\(a\,b\)
100endif
101ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
102 TEMPLATE_XPComDll_DEFS.arm64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY(a,b)=__builtin_va_copy(a,b)
103else
104 TEMPLATE_XPComDll_DEFS.arm64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY\(a\,b\)=__builtin_va_copy\(a\,b\)
105endif
106ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
107 TEMPLATE_XPComDll_DEFS.darwin = XP_UNIX=1 XP_MACOSX=1 TARGET_CARBON=1 HAVE_VISIBILITY_ATTRIBUTE=1 $(TEMPLATE_VBoxR3DllNonPedantic_DEFS.darwin)
108else
109 TEMPLATE_XPComDll_DEFS.darwin = XP_UNIX=1 XP_MACOSX=1 TARGET_CARBON=1 HAVE_VISIBILITY_ATTRIBUTE=1 $(TEMPLATE_VBoxR3DllNonPedantic_DEFS.darwin)
110endif
111TEMPLATE_XPComDll_DEFS.darwin.amd64 = VBOX_MACOSX_FOLLOWS_UNIX_IO
112TEMPLATE_XPComDll_DEFS.darwin.arm64 = VBOX_MACOSX_FOLLOWS_UNIX_IO
113ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
114 TEMPLATE_XPComDll_DEFS.freebsd = XP_UNIX=1 HAVE_VISIBILITY_ATTRIBUTE=1
115else
116 TEMPLATE_XPComDll_DEFS.freebsd = XP_UNIX=1 HAVE_VISIBILITY_ATTRIBUTE=1
117endif
118ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
119 TEMPLATE_XPComDll_DEFS.linux = XP_UNIX=1 _GNU_SOURCE HAVE_VISIBILITY_ATTRIBUTE=1
120else
121 TEMPLATE_XPComDll_DEFS.linux = XP_UNIX=1 _GNU_SOURCE HAVE_VISIBILITY_ATTRIBUTE=1
122endif
123ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
124 TEMPLATE_XPComDll_DEFS.solaris = XP_UNIX=1 HAVE_LIBDL=1 HAVE_SENDFILEV=1 _REENTRANT
125else
126 TEMPLATE_XPComDll_DEFS.solaris = XP_UNIX=1 HAVE_LIBDL=1 HAVE_SENDFILEV=1 _REENTRANT
127endif
128TEMPLATE_XPComDll_LDFLAGS = $(TEMPLATE_VBoxR3DllNonPedantic_LDFLAGS)
129ifdef VBOX_WITH_RUNPATH
130 TEMPLATE_XPComDll_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)'
131else ifdef VBOX_WITH_RELATIVE_RUNPATH
132 TEMPLATE_XPComDll_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)'
133endif
134TEMPLATE_XPComDll_LDFLAGS.x86 = -m32
135TEMPLATE_XPComDll_LDFLAGS.amd64 = -m64
136TEMPLATE_XPComDll_LDFLAGS.arm64 = -m64
137TEMPLATE_XPComDll_LDFLAGS.darwin = $(TEMPLATE_VBoxR3DllNonPedantic_LDFLAGS.darwin) \
138 -fshort-wchar -fno-rtti -fno-exceptions -fpascal-strings \
139 -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \
140 -compatibility_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \
141 -framework CoreServices \
142 -framework CoreFoundation \
143 -framework Foundation \
144 -framework AppKit \
145 -framework Carbon
146## @todo why is -fno-exceptions here.
147ifn1of ($(KBUILD_TARGET), os2 win)
148 TEMPLATE_XPComDll_CXXFLAGS += -fPIC
149 TEMPLATE_XPComDll_CFLAGS += -fPIC
150 TEMPLATE_XPComDll_LDFLAGS += -fPIC
151 TEMPLATE_XPComDll_DEFS += MOZ_PRESERVE_PIC
152endif
153TEMPLATE_XPComDll_INCS = $(VBOX_PATH_XPCOM_SRC)/xpcom/build \
154 $(VBOX_PATH_XPCOM_SRC)/xpcom/ds \
155 $(VBOX_PATH_XPCOM_SRC)/xpcom/io \
156 $(VBOX_PATH_XPCOM_SRC)/xpcom/base \
157 $(VBOX_PATH_XPCOM_SRC)/xpcom/components \
158 $(VBOX_PATH_XPCOM_SRC)/xpcom/threads \
159 $(VBOX_PATH_XPCOM_SRC)/xpcom/proxy/src \
160 $(VBOX_PATH_XPCOM_SRC)/xpcom/reflect/xptcall/src \
161 $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/client/src \
162 $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/shared/src \
163 $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/extensions/lock/src \
164 $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/extensions/transmngr/src \
165 $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/extensions/dconnect/src \
166 $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/extensions/transmngr/common \
167 $(VBOX_PATH_SDK)/bindings/xpcom/include \
168 $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
169 $(VBOX_PATH_SDK)/bindings/xpcom/include/string \
170 $(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
171 $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd \
172 .
173ifn1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.4 10.5 10.6 10.7) # FlatCarbon is gone starting 10.8 (or Xcode 5.0).
174 TEMPLATE_XPComDll_DEFS.darwin += VBOX_WITH_NEWER_OSX_SDK
175 TEMPLATE_XPComDll_INCS.darwin = \
176 $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/ \
177 $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/ \
178 $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/Headers/
179else
180 TEMPLATE_XPComDll_INCS.darwin = $(VBOX_PATH_MACOSX_SDK)/Developer/Headers/FlatCarbon
181endif
182TEMPLATE_XPComDll_LIBS.solaris = sendfile
183TEMPLATE_XPComDll_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $($(hdrinst)_1_TARGET)) \
184 $(PATH_TARGET)/VBox-xpcom-idl-timestamp
185ifeq ($(KBUILD_TARGET),os2)
186 ifndef USE_OS2_TOOLKIT_HEADERS
187 TEMPLATE_XPComDll_DEFS.os2 += OS2EMX_PLAIN_CHAR
188 endif
189 TEMPLATE_XPComDll_DEFS.os2 += XP_OS2_EMX OS2=4
190 # this is at least for strnicmp()
191 TEMPLATE_XPComDll_DEFS.os2 += _EMX_SOURCE
192 # @@todo shouldn't this be somehow default for ASTOOL?
193 TEMPLATE_XPComDll_ASFLAGS.os2 += -Zomf
194endif
195
196# When using IPRT in NSRP or/and using IPRT for logging, link with IPRT.
197TEMPLATE_XPComDll_LIBS += $(LIB_RUNTIME)
198
199
200#
201# Same as XPCOM except using YASM/NASM instead of the gnu/unix assembler.
202#
203TEMPLATE_XPComDllYasm := XPCOM w/ yasm
204TEMPLATE_XPComDllYasm_EXTENDS := XPComDll
205TEMPLATE_XPComDllYasm_ASTOOL = $(TEMPLATE_VBoxR3DllNonPedantic_ASTOOL)
206TEMPLATE_XPComDllYasm_ASFLAGS = $(TEMPLATE_VBoxR3DllNonPedantic_ASFLAGS)
207TEMPLATE_XPComDllYasm_ASFLAGS.x86 = $(TEMPLATE_VBoxR3DllNonPedantic_ASFLAGS.x86)
208TEMPLATE_XPComDllYasm_ASFLAGS.amd64 = $(TEMPLATE_VBoxR3DllNonPedantic_ASFLAGS.amd64)
209TEMPLATE_XPComDllYasm_ASDEFS = $(TEMPLATE_VBoxR3DllNonPedantic_DEFS)
210
211
212#
213# Template for building the XPCOM executables.
214# Used as a base template by XPComTstExe and XPComIpcExe.
215#
216TEMPLATE_XPComExe := XPCOM executable files
217TEMPLATE_XPComExe_EXTENDS := XPComDll
218## @todo undo -fPIC.
219TEMPLATE_XPComExe_INCS = ipc/ipcd/shared/src \
220 $(VBOX_PATH_SDK)/bindings/xpcom/include \
221 $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
222 $(VBOX_PATH_SDK)/bindings/xpcom/include/string \
223 $(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
224 $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd \
225 .
226TEMPLATE_XPComExe_LIBS = \
227 $(VBox-xpcom-ipcshared_1_TARGET) \
228 $(VBoxXPCOM_1_TARGET) \
229 $(TEMPLATE_XPComDll_LIBS)
230TEMPLATE_XPComExe_LIBS.freebsd = $(LIB_PTHREAD)
231TEMPLATE_XPComExe_LIBS.linux = dl $(LIB_PTHREAD)
232TEMPLATE_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))
233
234
235#
236# Template for building the XPCOM testcase executables
237#
238TEMPLATE_XPComTstExe = XPCOM executable files (testcases)
239TEMPLATE_XPComTstExe_EXTENDS = XPComExe
240TEMPLATE_XPComTstExe_CXXFLAGS = $(TEMPLATE_XPComExe_CXXFLAGS) -Wno-format
241TEMPLATE_XPComTstExe_CFLAGS = $(TEMPLATE_XPComExe_CFLAGS) -Wno-format
242TEMPLATE_XPComTstExe_INST = $(INST_TESTCASE)
243ifdef VBOX_WITH_RUNPATH
244 TEMPLATE_XPComTstExe_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' $(TEMPLATE_XPComExe_LDFLAGS)
245else ifdef VBOX_WITH_RELATIVE_RUNPATH
246 TEMPLATE_XPComTstExe_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..' $(TEMPLATE_XPComExe_LDFLAGS)
247endif
248if "$(KBUILD_TARGET)" == "win" && defined(VBOX_SIGNING_MODE)
249 TEMPLATE_XPComTstExe_POST_CMDS =
250endif
251
252
253#
254# Template for building XPCOM executables for running at build time.
255#
256# It extends the BLDPROG template in config.kmk but overrides CFLAGS
257# and CXXFLAGS completely at the moment.
258#
259TEMPLATE_XPComBldProg = XPCOM Build programs executables
260TEMPLATE_XPComBldProg_EXTENDS = VBoxBldProg
261## @todo Verify that this doesn't blow up because of template inheriance ordering. (we're assuming XPComExe is expanded when this is being used.)
262TEMPLATE_XPComBldProg_DEFS = \
263 $(TEMPLATE_VBoxBldProg_DEFS) \
264 $(filter-out VBOX_USE_IPRT_IN_XPCOM, $(TEMPLATE_XPComExe_DEFS))
265TEMPLATE_XPComBldProg_DEFS.$(KBUILD_HOST) = $(TEMPLATE_VBoxBldProg_DEFS.$(KBUILD_HOST)) $(TEMPLATE_XPComExe_DEFS.$(KBUILD_HOST))
266TEMPLATE_XPComBldProg_DEFS.x86 = $(TEMPLATE_VBoxBldProg_DEFS.x86) $(TEMPLATE_XPComExe_DEFS.x86)
267TEMPLATE_XPComBldProg_DEFS.amd64 = $(TEMPLATE_VBoxBldProg_DEFS.amd64) $(TEMPLATE_XPComExe_DEFS.amd64)
268TEMPLATE_XPComBldProg_INCS = \
269 $(VBOX_PATH_SDK)/bindings/xpcom/include \
270 $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
271 $(VBOX_PATH_SDK)/bindings/xpcom/include/string \
272 $(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
273 $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd
274TEMPLATE_XPComBldProg_CFLAGS = $(filter-out $(VBOX_GCC_PEDANTIC_C), $(TEMPLATE_VBoxBldProg_CFLAGS)) \
275 $(VBOX_GCC_Wno-int-to-pointer-cast) $(VBOX_GCC_Wno-pointer-to-int-cast) $(VBOX_GCC_NON_PEDANTIC_C)
276TEMPLATE_XPComBldProg_CXXFLAGS.darwin = $(TEMPLATE_VBoxBldProg_CXXFLAGS.darwin) -fpascal-strings -fshort-wchar -fno-common -fno-rtti
277TEMPLATE_XPComBldProg_CXXFLAGS.solaris = $(TEMPLATE_VBoxBldProg_CXXFLAGS.solaris) -fno-omit-frame-pointer # for now anyway.
278TEMPLATE_XPComBldProg_LDFLAGS.darwin = $(TEMPLATE_VBoxBldProg_LDFLAGS.darwin) -fpascal-strings -fshort-wchar -fno-rtti -fno-exceptions
279TEMPLATE_XPComBldProg_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $($(hdrinst)_1_TARGET))
280
281
282ifeq ($(VBOX_DEF_MACOSX_VERSION_MIN),10.4)
283 #
284 # Template for building VBoxPython against the Mac OS X 10.4 SDK.
285 # ASSUMES that the SDK bits are in the .darwin properties we're overriding below.
286 #
287 TEMPLATE_XPComDllOSX104 = XPCOM libraries (shared) built against the Mac OS X 10.4 SDK
288 TEMPLATE_XPComDllOSX104_EXTENDS = XPComDll
289 TEMPLATE_XPComDllOSX104_CXXFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CXXFLAGS),$(TEMPLATE_XPComDll_CXXFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_4_CXXFLAGS)
290 TEMPLATE_XPComDllOSX104_CFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CFLAGS),$(TEMPLATE_XPComDll_CFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_4_CFLAGS)
291 TEMPLATE_XPComDllOSX104_LDFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_LDFLAGS),$(TEMPLATE_XPComDll_LDFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_4_LDFLAGS)
292 TEMPLATE_XPComDllOSX104_DEFS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_XPComDll_DEFS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_4_DEFS)
293 TEMPLATE_XPComDllOSX104_INCS.darwin = $(VBOX_PATH_MACOSX_SDK_10_4)/Developer/Headers/FlatCarbon
294endif
295
296#
297# Template for building VBoxPython against the Mac OS X 10.5 SDK.
298# ASSUMES that the SDK bits are in the .darwin properties we're overriding below.
299#
300TEMPLATE_XPComDllOSX105 = XPCOM libraries (shared) built against the Mac OS X 10.5 SDK
301TEMPLATE_XPComDllOSX105_EXTENDS = XPComDll
302TEMPLATE_XPComDllOSX105_CXXFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CXXFLAGS),$(TEMPLATE_XPComDll_CXXFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_CXXFLAGS)
303TEMPLATE_XPComDllOSX105_CFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CFLAGS),$(TEMPLATE_XPComDll_CFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_CFLAGS)
304TEMPLATE_XPComDllOSX105_LDFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_LDFLAGS),$(TEMPLATE_XPComDll_LDFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_LDFLAGS)
305TEMPLATE_XPComDllOSX105_DEFS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_XPComDll_DEFS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_DEFS)
306TEMPLATE_XPComDllOSX105_INCS.darwin = $(VBOX_PATH_MACOSX_SDK_10_5)/Developer/Headers/FlatCarbon
307
308#
309# Template for building VBoxPython against the Mac OS X 10.6 SDK.
310# ASSUMES that the SDK bits are in the .darwin properties we're overriding below.
311#
312TEMPLATE_XPComDllOSX106 = XPCOM libraries (shared) built against the Mac OS X 10.6 SDK
313TEMPLATE_XPComDllOSX106_EXTENDS = XPComDll
314TEMPLATE_XPComDllOSX106_CXXFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CXXFLAGS),$(TEMPLATE_XPComDll_CXXFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_6_CXXFLAGS)
315TEMPLATE_XPComDllOSX106_CFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CFLAGS),$(TEMPLATE_XPComDll_CFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_6_CFLAGS)
316TEMPLATE_XPComDllOSX106_LDFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_LDFLAGS),$(TEMPLATE_XPComDll_LDFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_6_LDFLAGS)
317TEMPLATE_XPComDllOSX106_DEFS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_XPComDll_DEFS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_6_DEFS)
318TEMPLATE_XPComDllOSX106_INCS.darwin = $(VBOX_PATH_MACOSX_SDK_10_6)/Developer/Headers/FlatCarbon
319
320#
321# Template for building VBoxPython against the Mac OS X 10.7 SDK.
322# ASSUMES that the SDK bits are in the .darwin properties we're overriding below.
323#
324TEMPLATE_XPComDllOSX107 = XPCOM libraries (shared) built against the Mac OS X 10.7 SDK
325TEMPLATE_XPComDllOSX107_EXTENDS = XPComDll
326TEMPLATE_XPComDllOSX107_TOOL = LLVMGXX42MACHO
327TEMPLATE_XPComDllOSX107_CXXFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CXXFLAGS),$(TEMPLATE_XPComDll_CXXFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_7_CXXFLAGS)
328TEMPLATE_XPComDllOSX107_CFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CFLAGS),$(TEMPLATE_XPComDll_CFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_7_CFLAGS)
329TEMPLATE_XPComDllOSX107_LDFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_LDFLAGS),$(TEMPLATE_XPComDll_LDFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_7_LDFLAGS)
330TEMPLATE_XPComDllOSX107_DEFS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_XPComDll_DEFS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_7_DEFS)
331TEMPLATE_XPComDllOSX107_INCS.darwin = $(VBOX_PATH_MACOSX_SDK_10_7)/Developer/Headers/FlatCarbon
332
333
334#
335# Creates a x86 target for an XPCOM target if so desired.
336# The target is specified as the first argument: $(evalcall VBOX_XPCOM_X86,target).
337#
338ifdef VBOX_WITH_32_ON_64_MAIN_API
339 define VBOX_XPCOM_X86
340 $(1)-x86_TEMPLATE := $(strip $($(1)_TEMPLATE))-x86
341 $(1)-x86_EXTENDS := $(1)
342 endef
343else
344 define VBOX_XPCOM_X86
345 endef
346endif
347
348# Corresponding 32-bit template(s).
349TEMPLATE_XPComDll-x86 = 32-bit XPCOM libraries (shared)
350TEMPLATE_XPComDll-x86_EXTENDS = XPComDll
351TEMPLATE_XPComDll-x86_BLD_TRG_ARCH = x86
352TEMPLATE_XPComDll-x86_DEFS = $(TEMPLATE_XPComDll_DEFS) VBOX_IN_32_ON_64_MAIN_API
353TEMPLATE_XPComDll-x86_LIBS = $(subst $(LIB_RUNTIME),$(VBOX_LIB_RUNTIME_X86),$(TEMPLATE_XPComDll_LIBS))
354
355TEMPLATE_XPComDllYasm-x86 = 32-bit XPCOM libraries (shared) with YASM as assembler.
356TEMPLATE_XPComDllYasm-x86_EXTENDS = XPComDllYasm
357TEMPLATE_XPComDllYasm-x86_BLD_TRG_ARCH = x86
358TEMPLATE_XPComDllYasm-x86_DEFS = $(TEMPLATE_XPComDllYasm_DEFS) VBOX_IN_32_ON_64_MAIN_API
359TEMPLATE_XPComDllYasm-x86_LIBS = $(subst $(LIB_RUNTIME),$(VBOX_LIB_RUNTIME_X86),$(TEMPLATE_XPComDllYasm_LIBS))
360
361
362#
363# The list of XPCOM's IDL files.
364# This is used by the java bindings as well as the XPCOM build.
365#
366XPCOM_IDLFILES = \
367 xpcom/base/nsIDebug.idl \
368 xpcom/base/nsIInterfaceRequestor.idl \
369 xpcom/base/nsIProgrammingLanguage.idl \
370 xpcom/base/nsISupports.idl \
371 xpcom/base/nsITraceRefcnt.idl \
372 xpcom/base/nsIWeakReference.idl \
373 xpcom/base/nsIErrorService.idl \
374 xpcom/base/nsIException.idl \
375 xpcom/base/nsIExceptionService.idl \
376 xpcom/base/nsrootidl.idl \
377 xpcom/components/nsIClassInfo.idl \
378 xpcom/components/nsIComponentRegistrar.idl \
379 xpcom/components/nsIFactory.idl \
380 xpcom/components/nsIModule.idl \
381 xpcom/components/nsIServiceManager.idl \
382 xpcom/components/nsIComponentManager.idl \
383 xpcom/components/nsICategoryManager.idl \
384 xpcom/components/nsIComponentLoader.idl \
385 xpcom/components/nsINativeComponentLoader.idl \
386 xpcom/components/nsIComponentManagerObsolete.idl \
387 xpcom/components/nsIComponentLoaderManager.idl \
388 xpcom/ds/nsISupportsArray.idl \
389 xpcom/ds/nsICollection.idl \
390 xpcom/ds/nsISerializable.idl \
391 xpcom/ds/nsIEnumerator.idl \
392 xpcom/ds/nsISimpleEnumerator.idl \
393 xpcom/ds/nsIObserverService.idl \
394 xpcom/ds/nsIObserver.idl \
395 xpcom/ds/nsIAtom.idl \
396 xpcom/ds/nsIAtomService.idl \
397 xpcom/ds/nsIProperties.idl \
398 xpcom/ds/nsIStringEnumerator.idl \
399 xpcom/ds/nsISupportsPrimitives.idl \
400 xpcom/ds/nsISupportsIterators.idl \
401 xpcom/ds/nsIVariant.idl \
402 xpcom/ds/nsIArray.idl \
403 xpcom/ds/nsIPropertyBag.idl \
404 xpcom/ds/nsIHashable.idl \
405 xpcom/io/nsIDirectoryService.idl \
406 xpcom/io/nsIDirectoryEnumerator.idl \
407 xpcom/io/nsIFile.idl \
408 xpcom/io/nsILocalFile.idl \
409 xpcom/io/nsILocalFileMac.idl \
410 xpcom/io/nsIInputStream.idl \
411 xpcom/io/nsIObjectInputStream.idl \
412 xpcom/io/nsIBinaryInputStream.idl \
413 xpcom/io/nsIObjectOutputStream.idl \
414 xpcom/io/nsIBinaryOutputStream.idl \
415 xpcom/io/nsIOutputStream.idl \
416 xpcom/io/nsIStreamBufferAccess.idl \
417 xpcom/io/nsIByteArrayInputStream.idl \
418 xpcom/io/nsISeekableStream.idl \
419 xpcom/io/nsIInputStreamTee.idl \
420 xpcom/io/nsIAsyncInputStream.idl \
421 xpcom/io/nsIAsyncOutputStream.idl \
422 xpcom/io/nsIScriptableInputStream.idl \
423 xpcom/io/nsILineInputStream.idl \
424 xpcom/proxy/public/nsIProxyObjectManager.idl \
425 xpcom/threads/nsIEventQueueService.idl \
426 xpcom/threads/nsIEventQueue.idl \
427 xpcom/threads/nsIEventTarget.idl \
428 xpcom/threads/nsIRunnable.idl \
429 xpcom/reflect/xptinfo/public/nsIInterfaceInfo.idl \
430 xpcom/reflect/xptinfo/public/nsIInterfaceInfoManager.idl \
431 xpcom/reflect/xptinfo/public/nsIXPTLoader.idl \
432 ipc/ipcd/client/public/ipcIService.idl \
433 ipc/ipcd/client/public/ipcIMessageObserver.idl \
434 ipc/ipcd/client/public/ipcIClientObserver.idl \
435 ipc/ipcd/extensions/lock/public/ipcILockService.idl \
436 ipc/ipcd/extensions/transmngr/public/ipcITransactionService.idl \
437 ipc/ipcd/extensions/dconnect/public/ipcIDConnectService.idl \
438 ipc/ipcd/extensions/transmngr/public/ipcITransactionObserver.idl
439
440#
441# The include path for the XPCOM IDL files above.
442#
443XPIDL_INCS = \
444 -I $(VBOX_PATH_XPCOM_SRC)/xpcom/base/ \
445 -I $(VBOX_PATH_XPCOM_SRC)/xpcom/ds/ \
446 -I $(VBOX_PATH_XPCOM_SRC)/xpcom/components/ \
447 -I $(VBOX_PATH_XPCOM_SRC)/xpcom/io/ \
448 -I $(VBOX_PATH_XPCOM_SRC)/xpcom/threads/ \
449 -I $(VBOX_PATH_XPCOM_SRC)/xpcom/reflect/xptinfo/public/
450
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette