1 | # $Id: Config.kmk 86354 2020-09-30 17:02:12Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # XPCOM kBuild Configuration file.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2017 Oracle Corporation
|
---|
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 |
|
---|
18 | # Include the top-level configure file.
|
---|
19 | ifndef VBOX_ROOT_CONFIG_KMK_INCLUDED
|
---|
20 | include $(PATH_ROOT)/Config.kmk
|
---|
21 | endif
|
---|
22 |
|
---|
23 | #
|
---|
24 | # Globals.
|
---|
25 | #
|
---|
26 | VBOX_PATH_XPCOM_SRC := $(PATH_ROOT)/src/libs/xpcom18a4
|
---|
27 |
|
---|
28 |
|
---|
29 | #
|
---|
30 | # Template for building the XPCOM libraries (shared).
|
---|
31 | #
|
---|
32 | TEMPLATE_XPCOM = XPCOM libraries (shared)
|
---|
33 | TEMPLATE_XPCOM_EXTENDS = VBOXR3NP
|
---|
34 | ## @todo correct inheritance here to make it use all the VBOXR3NP settings instead of overriding all of them.
|
---|
35 | TEMPLATE_XPCOM_ASTOOL = $(TEMPLATE_VBOXR3NP_TOOL)
|
---|
36 | TEMPLATE_XPCOM_ASFLAGS = $(NO_SUCH_VARIABLE)
|
---|
37 | TEMPLATE_XPCOM_ASFLAGS.x86 = -m32
|
---|
38 | TEMPLATE_XPCOM_ASFLAGS.amd64 = -m64
|
---|
39 | TEMPLATE_XPCOM_ASDEFS = $(NO_SUCH_VARIABLE)
|
---|
40 | TEMPLATE_XPCOM_CXXFLAGS = -g -pipe -ansi -Wall -Wno-unused -Wno-non-virtual-dtor \
|
---|
41 | $(VBOX_GCC_Wno-invalid-offsetof) -Wno-sign-compare -Wno-unused -Wno-ctor-dtor-privacy \
|
---|
42 | $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) \
|
---|
43 | $(VBOX_GCC_fdiagnostics-show-option) $(VBOX_GCC_Wno-delete-non-virtual-dtor) \
|
---|
44 | $(VBOX_GCC_SANITIZER_FLAGS) $(VBOX_GCC_OPT) $(VBOX_GCC_FP)
|
---|
45 | #if !defined(VBOX_GCC_Wno-delete-non-virtual-dtor) && defined(VBOX_GCC_Wno-non-virtual-dtor)
|
---|
46 | ifndef VBOX_GCC_Wno-delete-non-virtual-dtor
|
---|
47 | ifdef VBOX_GCC_Wno-non-virtual-dtor
|
---|
48 | TEMPLATE_XPCOM_CXXFLAGS += $(VBOX_GCC_Wno-non-virtual-dtor)
|
---|
49 | endif
|
---|
50 | endif
|
---|
51 | TEMPLATE_XPCOM_CXXFLAGS.x86 = -m32
|
---|
52 | TEMPLATE_XPCOM_CXXFLAGS.amd64 = -m64
|
---|
53 | TEMPLATE_XPCOM_CXXFLAGS.darwin = -fpascal-strings -fshort-wchar -fno-common -fno-rtti $(VBOX_DARWIN_DEF_SDK_CXXFLAGS)
|
---|
54 | TEMPLATE_XPCOM_CXXFLAGS.freebsd = -pthread
|
---|
55 | TEMPLATE_XPCOM_CXXFLAGS.linux = -pthread
|
---|
56 | TEMPLATE_XPCOM_CXXFLAGS.solaris = -fno-omit-frame-pointer # for now anyway.
|
---|
57 | TEMPLATE_XPCOM_CFLAGS = -g -pipe -Wall -Wno-unused -Wno-parentheses -Wno-uninitialized $(VBOX_GCC_fvisibility-hidden) \
|
---|
58 | $(VBOX_GCC_fdiagnostics-show-option) $(VBOX_GCC_SANITIZER_FLAGS) $(VBOX_GCC_OPT) $(VBOX_GCC_FP)
|
---|
59 | TEMPLATE_XPCOM_CFLAGS.x86 = -m32
|
---|
60 | TEMPLATE_XPCOM_CFLAGS.amd64 = -m64
|
---|
61 | TEMPLATE_XPCOM_CFLAGS.freebsd = -pthread
|
---|
62 | TEMPLATE_XPCOM_CFLAGS.linux = -pthread -ansi
|
---|
63 | TEMPLATE_XPCOM_CFLAGS.solaris = -fno-omit-frame-pointer # for now anyway.
|
---|
64 | TEMPLATE_XPCOM_DEFS = \
|
---|
65 | MOZILLA_CLIENT=1 \
|
---|
66 | NDEBUG=1 \
|
---|
67 | _IMPL_NS_COM \
|
---|
68 | XPCOM_DLL_BASE=\"$(basename $(notdir $(LIB_XPCOM)))\" \
|
---|
69 | MOZ_DLL_SUFFIX=\"$(suffix $(LIB_XPCOM))\" \
|
---|
70 | IN_RING3 \
|
---|
71 | VBOX_USE_IPRT_IN_XPCOM
|
---|
72 | ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
|
---|
73 | TEMPLATE_XPCOM_DEFS += VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
|
---|
74 | endif
|
---|
75 | TEMPLATE_XPCOM_DEFS.x86 = i386=1
|
---|
76 | TEMPLATE_XPCOM_DEFS.amd64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY\(a\,b\)=__builtin_va_copy\(a\,b\)
|
---|
77 | 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)
|
---|
78 | TEMPLATE_XPCOM_DEFS.darwin.amd64 = VBOX_MACOSX_FOLLOWS_UNIX_IO
|
---|
79 | TEMPLATE_XPCOM_DEFS.freebsd = OSTYPE=\"FreeBSD5+\" OSARCH=\"FreeBSD\" XP_UNIX=1 FREEBSD=1 HAVE_VISIBILITY_ATTRIBUTE=1
|
---|
80 | TEMPLATE_XPCOM_DEFS.linux = OSTYPE=\"Linux2.6\" OSARCH=\"Linux\" XP_UNIX=1 _GNU_SOURCE HAVE_VISIBILITY_ATTRIBUTE=1 ## @todo LINUX=1
|
---|
81 | # Don't define BSD_SELECT because bsdselect() from kLIBC <= 0.6.3 has problems on SMP
|
---|
82 | TEMPLATE_XPCOM_DEFS.os2 = OSTYPE=\"OS/2_4.5\" OSARCH=\"OS/2\" XP_OS2 XP_PC OS2=4
|
---|
83 | TEMPLATE_XPCOM_DEFS.solaris = OSTYPE=\"Solaris10\" OSARCH=\"Solaris\" XP_UNIX=1 XP_SOLARIS=1 HAVE_LIBDL=1 HAVE_SENDFILEV=1 SOLARIS=1 _REENTRANT
|
---|
84 | TEMPLATE_XPCOM_LDFLAGS = $(TEMPLATE_VBOXR3NP_LDFLAGS)
|
---|
85 | ifdef VBOX_WITH_RUNPATH
|
---|
86 | TEMPLATE_XPCOM_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)'
|
---|
87 | else ifdef VBOX_WITH_RELATIVE_RUNPATH
|
---|
88 | TEMPLATE_XPCOM_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)'
|
---|
89 | endif
|
---|
90 | TEMPLATE_XPCOM_LDFLAGS.x86 = -m32
|
---|
91 | TEMPLATE_XPCOM_LDFLAGS.amd64 = -m64
|
---|
92 | TEMPLATE_XPCOM_LDFLAGS.darwin = $(TEMPLATE_VBOXR3NP_LDFLAGS.darwin) \
|
---|
93 | -fshort-wchar -fno-rtti -fno-exceptions -fpascal-strings \
|
---|
94 | -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \
|
---|
95 | -compatibility_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \
|
---|
96 | -framework CoreServices \
|
---|
97 | -framework CoreFoundation \
|
---|
98 | -framework Foundation \
|
---|
99 | -framework AppKit \
|
---|
100 | -framework Carbon
|
---|
101 | ## @todo why is -fno-exceptions here.
|
---|
102 | ifn1of ($(KBUILD_TARGET), os2 win)
|
---|
103 | TEMPLATE_XPCOM_CXXFLAGS += -fPIC
|
---|
104 | TEMPLATE_XPCOM_CFLAGS += -fPIC
|
---|
105 | TEMPLATE_XPCOM_LDFLAGS += -fPIC
|
---|
106 | TEMPLATE_XPCOM_DEFS += MOZ_PRESERVE_PIC
|
---|
107 | endif
|
---|
108 | TEMPLATE_XPCOM_INCS = $(VBOX_PATH_XPCOM_SRC)/xpcom/build \
|
---|
109 | $(VBOX_PATH_XPCOM_SRC)/xpcom/ds \
|
---|
110 | $(VBOX_PATH_XPCOM_SRC)/xpcom/io \
|
---|
111 | $(VBOX_PATH_XPCOM_SRC)/xpcom/base \
|
---|
112 | $(VBOX_PATH_XPCOM_SRC)/xpcom/components \
|
---|
113 | $(VBOX_PATH_XPCOM_SRC)/xpcom/threads \
|
---|
114 | $(VBOX_PATH_XPCOM_SRC)/xpcom/proxy/src \
|
---|
115 | $(VBOX_PATH_XPCOM_SRC)/xpcom/reflect/xptcall/src \
|
---|
116 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/client/src \
|
---|
117 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/shared/src \
|
---|
118 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/extensions/lock/src \
|
---|
119 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/extensions/transmngr/src \
|
---|
120 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/extensions/dconnect/src \
|
---|
121 | $(VBOX_PATH_XPCOM_SRC)/ipc/ipcd/extensions/transmngr/common \
|
---|
122 | $(VBOX_PATH_SDK)/bindings/xpcom/include \
|
---|
123 | $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
|
---|
124 | $(VBOX_PATH_SDK)/bindings/xpcom/include/string \
|
---|
125 | $(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
|
---|
126 | $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd \
|
---|
127 | .
|
---|
128 | ifn1of ($(VBOX_DEF_MACOSX_VERSION_MIN),10.4 10.5 10.6 10.7) # FlatCarbon is gone starting 10.8 (or Xcode 5.0).
|
---|
129 | TEMPLATE_XPCOM_DEFS.darwin += VBOX_WITH_NEWER_OSX_SDK
|
---|
130 | TEMPLATE_XPCOM_INCS.darwin = \
|
---|
131 | $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/ \
|
---|
132 | $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/ \
|
---|
133 | $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/Headers/
|
---|
134 | else
|
---|
135 | TEMPLATE_XPCOM_INCS.darwin = $(VBOX_PATH_MACOSX_SDK)/Developer/Headers/FlatCarbon
|
---|
136 | endif
|
---|
137 | TEMPLATE_XPCOM_LIBS.solaris = sendfile
|
---|
138 | TEMPLATE_XPCOM_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $($(hdrinst)_1_TARGET)) \
|
---|
139 | $(PATH_TARGET)/VBox-xpcom-idl-timestamp
|
---|
140 | ifeq ($(KBUILD_TARGET),os2)
|
---|
141 | ifndef USE_OS2_TOOLKIT_HEADERS
|
---|
142 | TEMPLATE_XPCOM_DEFS.os2 += OS2EMX_PLAIN_CHAR
|
---|
143 | endif
|
---|
144 | TEMPLATE_XPCOM_DEFS.os2 += XP_OS2_EMX OS2=4
|
---|
145 | # this is at least for strnicmp()
|
---|
146 | TEMPLATE_XPCOM_DEFS.os2 += _EMX_SOURCE
|
---|
147 | # @@todo shouldn't this be somehow default for ASTOOL?
|
---|
148 | TEMPLATE_XPCOM_ASFLAGS.os2 += -Zomf
|
---|
149 | endif
|
---|
150 |
|
---|
151 | # When using IPRT in NSRP or/and using IPRT for logging, link with IPRT.
|
---|
152 | TEMPLATE_XPCOM_LIBS += $(LIB_RUNTIME)
|
---|
153 |
|
---|
154 |
|
---|
155 | #
|
---|
156 | # Same as XPCOM except using YASM/NASM instead of the gnu/unix assembler.
|
---|
157 | #
|
---|
158 | TEMPLATE_XPCOMYASM = XPCOM w/ yasm
|
---|
159 | TEMPLATE_XPCOMYASM_EXTENDS = XPCOM
|
---|
160 | TEMPLATE_XPCOMYASM_ASTOOL = $(TEMPLATE_VBOXR3NP_ASTOOL)
|
---|
161 | TEMPLATE_XPCOMYASM_ASFLAGS = $(TEMPLATE_VBOXR3NP_ASFLAGS)
|
---|
162 | TEMPLATE_XPCOMYASM_ASFLAGS.x86 = $(TEMPLATE_VBOXR3NP_ASFLAGS.x86)
|
---|
163 | TEMPLATE_XPCOMYASM_ASFLAGS.amd64 = $(TEMPLATE_VBOXR3NP_ASFLAGS.amd64)
|
---|
164 | TEMPLATE_XPCOMYASM_ASDEFS = $(TEMPLATE_VBOXR3NP_DEFS)
|
---|
165 |
|
---|
166 |
|
---|
167 | #
|
---|
168 | # Template for building the XPCOM executables.
|
---|
169 | # Used as a base template by XPCOMTSTEXE and XPCOMIPCEXE.
|
---|
170 | #
|
---|
171 | TEMPLATE_XPCOMEXE = XPCOM executable files
|
---|
172 | TEMPLATE_XPCOMEXE_EXTENDS = XPCOM
|
---|
173 | ## @todo undo -fPIC.
|
---|
174 | TEMPLATE_XPCOMEXE_INCS = ipc/ipcd/shared/src \
|
---|
175 | $(VBOX_PATH_SDK)/bindings/xpcom/include \
|
---|
176 | $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
|
---|
177 | $(VBOX_PATH_SDK)/bindings/xpcom/include/string \
|
---|
178 | $(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
|
---|
179 | $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd \
|
---|
180 | .
|
---|
181 | TEMPLATE_XPCOMEXE_LIBS = \
|
---|
182 | $(VBox-xpcom-ipcshared_1_TARGET) \
|
---|
183 | $(VBoxXPCOM_1_TARGET) \
|
---|
184 | $(TEMPLATE_XPCOM_LIBS)
|
---|
185 | TEMPLATE_XPCOMEXE_LIBS.freebsd = $(LIB_PTHREAD)
|
---|
186 | TEMPLATE_XPCOMEXE_LIBS.linux = dl $(LIB_PTHREAD)
|
---|
187 | TEMPLATE_XPCOMEXE_LDFLAGS.darwin = -bind_at_load $(filter-out -current_version -compatibility_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD),$(TEMPLATE_XPCOM_LDFLAGS.darwin))
|
---|
188 |
|
---|
189 |
|
---|
190 | #
|
---|
191 | # Template for building the XPCOM testcase executables
|
---|
192 | #
|
---|
193 | TEMPLATE_XPCOMTSTEXE = XPCOM executable files (testcases)
|
---|
194 | TEMPLATE_XPCOMTSTEXE_EXTENDS = XPCOMEXE
|
---|
195 | TEMPLATE_XPCOMTSTEXE_CXXFLAGS = $(TEMPLATE_XPCOMEXE_CXXFLAGS) -Wno-format
|
---|
196 | TEMPLATE_XPCOMTSTEXE_CFLAGS = $(TEMPLATE_XPCOMEXE_CFLAGS) -Wno-format
|
---|
197 | TEMPLATE_XPCOMTSTEXE_INST = $(INST_TESTCASE)
|
---|
198 | ifdef VBOX_WITH_RUNPATH
|
---|
199 | TEMPLATE_XPCOMTSTEXE_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' $(TEMPLATE_XPCOMEXE_LDFLAGS)
|
---|
200 | else ifdef VBOX_WITH_RELATIVE_RUNPATH
|
---|
201 | TEMPLATE_XPCOMTSTEXE_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..' $(TEMPLATE_XPCOMEXE_LDFLAGS)
|
---|
202 | endif
|
---|
203 | if "$(KBUILD_TARGET)" == "win" && defined(VBOX_SIGNING_MODE)
|
---|
204 | TEMPLATE_XPCOMTSTEXE_POST_CMDS =
|
---|
205 | endif
|
---|
206 |
|
---|
207 |
|
---|
208 | #
|
---|
209 | # Template for building XPCOM executables for running at build time.
|
---|
210 | #
|
---|
211 | # It extends the BLDPROG template in config.kmk but overrides CFLAGS
|
---|
212 | # and CXXFLAGS completely at the moment.
|
---|
213 | #
|
---|
214 | TEMPLATE_XPCOMBLDPROG = XPCOM Build programs executables
|
---|
215 | TEMPLATE_XPCOMBLDPROG_EXTENDS = VBoxBldProg
|
---|
216 | ## @todo Verify that this doesn't blow up because of template inheriance ordering. (we're assuming XPCOMEXE is expanded when this is being used.)
|
---|
217 | TEMPLATE_XPCOMBLDPROG_DEFS = \
|
---|
218 | $(TEMPLATE_VBoxBldProg_DEFS) \
|
---|
219 | $(filter-out VBOX_USE_IPRT_IN_XPCOM, $(TEMPLATE_XPCOMEXE_DEFS))
|
---|
220 | TEMPLATE_XPCOMBLDPROG_DEFS.$(KBUILD_HOST) = $(TEMPLATE_VBoxBldProg_DEFS.$(KBUILD_HOST)) $(TEMPLATE_XPCOMEXE_DEFS.$(KBUILD_HOST))
|
---|
221 | TEMPLATE_XPCOMBLDPROG_DEFS.x86 = $(TEMPLATE_VBoxBldProg_DEFS.x86) $(TEMPLATE_XPCOMEXE_DEFS.x86)
|
---|
222 | TEMPLATE_XPCOMBLDPROG_DEFS.amd64 = $(TEMPLATE_VBoxBldProg_DEFS.amd64) $(TEMPLATE_XPCOMEXE_DEFS.amd64)
|
---|
223 | TEMPLATE_XPCOMBLDPROG_INCS = \
|
---|
224 | $(VBOX_PATH_SDK)/bindings/xpcom/include \
|
---|
225 | $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
|
---|
226 | $(VBOX_PATH_SDK)/bindings/xpcom/include/string \
|
---|
227 | $(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
|
---|
228 | $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd
|
---|
229 | TEMPLATE_XPCOMBLDPROG_CFLAGS = $(filter-out -pedantic -Wshadow, $(TEMPLATE_VBOX_BLDPROG_CFLAGS)) $(VBOX_GCC_Wno-int-to-pointer-cast) $(VBOX_GCC_Wno-pointer-to-int-cast) -Wno-format
|
---|
230 | TEMPLATE_XPCOMBLDPROG_CXXFLAGS.darwin = $(TEMPLATE_VBoxBldProg_CXXFLAGS.darwin) -fpascal-strings -fshort-wchar -fno-common -fno-rtti
|
---|
231 | TEMPLATE_XPCOMBLDPROG_CXXFLAGS.solaris = $(TEMPLATE_VBoxBldProg_CXXFLAGS.solaris) -fno-omit-frame-pointer # for now anyway.
|
---|
232 | TEMPLATE_XPCOMBLDPROG_LDFLAGS.darwin = $(TEMPLATE_VBoxBldProg_LDFLAGS.darwin) -fpascal-strings -fshort-wchar -fno-rtti -fno-exceptions
|
---|
233 | TEMPLATE_XPCOMBLDPROG_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $($(hdrinst)_1_TARGET))
|
---|
234 |
|
---|
235 |
|
---|
236 | ifeq ($(VBOX_DEF_MACOSX_VERSION_MIN),10.4)
|
---|
237 | #
|
---|
238 | # Template for building VBoxPython against the Mac OS X 10.4 SDK.
|
---|
239 | # ASSUMES that the SDK bits are in the .darwin properties we're overriding below.
|
---|
240 | #
|
---|
241 | TEMPLATE_XPCOMOSX104 = XPCOM libraries (shared) built against the Mac OS X 10.4 SDK
|
---|
242 | TEMPLATE_XPCOMOSX104_EXTENDS = XPCOM
|
---|
243 | TEMPLATE_XPCOMOSX104_CXXFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CXXFLAGS),$(TEMPLATE_XPCOM_CXXFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_4_CXXFLAGS)
|
---|
244 | TEMPLATE_XPCOMOSX104_CFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CFLAGS),$(TEMPLATE_XPCOM_CFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_4_CFLAGS)
|
---|
245 | TEMPLATE_XPCOMOSX104_LDFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_LDFLAGS),$(TEMPLATE_XPCOM_LDFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_4_LDFLAGS)
|
---|
246 | TEMPLATE_XPCOMOSX104_DEFS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_XPCOM_DEFS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_4_DEFS)
|
---|
247 | TEMPLATE_XPCOMOSX104_INCS.darwin = $(VBOX_PATH_MACOSX_SDK_10_4)/Developer/Headers/FlatCarbon
|
---|
248 | endif
|
---|
249 |
|
---|
250 | #
|
---|
251 | # Template for building VBoxPython against the Mac OS X 10.5 SDK.
|
---|
252 | # ASSUMES that the SDK bits are in the .darwin properties we're overriding below.
|
---|
253 | #
|
---|
254 | TEMPLATE_XPCOMOSX105 = XPCOM libraries (shared) built against the Mac OS X 10.5 SDK
|
---|
255 | TEMPLATE_XPCOMOSX105_EXTENDS = XPCOM
|
---|
256 | TEMPLATE_XPCOMOSX105_CXXFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CXXFLAGS),$(TEMPLATE_XPCOM_CXXFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_CXXFLAGS)
|
---|
257 | TEMPLATE_XPCOMOSX105_CFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CFLAGS),$(TEMPLATE_XPCOM_CFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_CFLAGS)
|
---|
258 | TEMPLATE_XPCOMOSX105_LDFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_LDFLAGS),$(TEMPLATE_XPCOM_LDFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_LDFLAGS)
|
---|
259 | TEMPLATE_XPCOMOSX105_DEFS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_XPCOM_DEFS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_DEFS)
|
---|
260 | TEMPLATE_XPCOMOSX105_INCS.darwin = $(VBOX_PATH_MACOSX_SDK_10_5)/Developer/Headers/FlatCarbon
|
---|
261 |
|
---|
262 | #
|
---|
263 | # Template for building VBoxPython against the Mac OS X 10.6 SDK.
|
---|
264 | # ASSUMES that the SDK bits are in the .darwin properties we're overriding below.
|
---|
265 | #
|
---|
266 | TEMPLATE_XPCOMOSX106 = XPCOM libraries (shared) built against the Mac OS X 10.6 SDK
|
---|
267 | TEMPLATE_XPCOMOSX106_EXTENDS = XPCOM
|
---|
268 | TEMPLATE_XPCOMOSX106_CXXFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CXXFLAGS),$(TEMPLATE_XPCOM_CXXFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_6_CXXFLAGS)
|
---|
269 | TEMPLATE_XPCOMOSX106_CFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CFLAGS),$(TEMPLATE_XPCOM_CFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_6_CFLAGS)
|
---|
270 | TEMPLATE_XPCOMOSX106_LDFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_LDFLAGS),$(TEMPLATE_XPCOM_LDFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_6_LDFLAGS)
|
---|
271 | TEMPLATE_XPCOMOSX106_DEFS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_XPCOM_DEFS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_6_DEFS)
|
---|
272 | TEMPLATE_XPCOMOSX106_INCS.darwin = $(VBOX_PATH_MACOSX_SDK_10_6)/Developer/Headers/FlatCarbon
|
---|
273 |
|
---|
274 | #
|
---|
275 | # Template for building VBoxPython against the Mac OS X 10.7 SDK.
|
---|
276 | # ASSUMES that the SDK bits are in the .darwin properties we're overriding below.
|
---|
277 | #
|
---|
278 | TEMPLATE_XPCOMOSX107 = XPCOM libraries (shared) built against the Mac OS X 10.7 SDK
|
---|
279 | TEMPLATE_XPCOMOSX107_EXTENDS = XPCOM
|
---|
280 | TEMPLATE_XPCOMOSX107_TOOL = LLVMGXX42MACHO
|
---|
281 | TEMPLATE_XPCOMOSX107_CXXFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CXXFLAGS),$(TEMPLATE_XPCOM_CXXFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_7_CXXFLAGS)
|
---|
282 | TEMPLATE_XPCOMOSX107_CFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_CFLAGS),$(TEMPLATE_XPCOM_CFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_7_CFLAGS)
|
---|
283 | TEMPLATE_XPCOMOSX107_LDFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_LDFLAGS),$(TEMPLATE_XPCOM_LDFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_7_LDFLAGS)
|
---|
284 | TEMPLATE_XPCOMOSX107_DEFS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_XPCOM_DEFS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_7_DEFS)
|
---|
285 | TEMPLATE_XPCOMOSX107_INCS.darwin = $(VBOX_PATH_MACOSX_SDK_10_7)/Developer/Headers/FlatCarbon
|
---|
286 |
|
---|
287 |
|
---|
288 | #
|
---|
289 | # Creates a x86 target for an XPCOM target if so desired.
|
---|
290 | # The target is specified as the first argument: $(evalcall VBOX_XPCOM_X86,target).
|
---|
291 | #
|
---|
292 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
293 | define VBOX_XPCOM_X86
|
---|
294 | $(1)-x86_TEMPLATE := $(strip $($(1)_TEMPLATE))-x86
|
---|
295 | $(1)-x86_EXTENDS := $(1)
|
---|
296 | endef
|
---|
297 | else
|
---|
298 | define VBOX_XPCOM_X86
|
---|
299 | endef
|
---|
300 | endif
|
---|
301 |
|
---|
302 | # Corresponding 32-bit template(s).
|
---|
303 | TEMPLATE_XPCOM-x86 = 32-bit XPCOM libraries (shared)
|
---|
304 | TEMPLATE_XPCOM-x86_EXTENDS = XPCOM
|
---|
305 | TEMPLATE_XPCOM-x86_BLD_TRG_ARCH = x86
|
---|
306 | TEMPLATE_XPCOM-x86_DEFS = $(TEMPLATE_XPCOM_DEFS) VBOX_IN_32_ON_64_MAIN_API
|
---|
307 | TEMPLATE_XPCOM-x86_LIBS = $(subst $(LIB_RUNTIME),$(VBOX_LIB_RUNTIME_X86),$(TEMPLATE_XPCOM_LIBS))
|
---|
308 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
309 | ifdef VBOX_WITH_RUNPATH
|
---|
310 | TEMPLATE_XPCOM-x86_LDFLAGS = \
|
---|
311 | $(filter-out '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)',$(TEMPLATE_XPCOM_LDFLAGS)) \
|
---|
312 | '$(VBOX_GCC_RPATH_OPT)$(VBOX_PATH_APP_PRIVATE)' \
|
---|
313 | '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)'
|
---|
314 | endif
|
---|
315 | endif
|
---|
316 |
|
---|
317 | TEMPLATE_XPCOMYASM-x86 = 32-bit XPCOM libraries (shared) with YASM as assembler.
|
---|
318 | TEMPLATE_XPCOMYASM-x86_EXTENDS = XPCOMYASM
|
---|
319 | TEMPLATE_XPCOMYASM-x86_BLD_TRG_ARCH = x86
|
---|
320 | TEMPLATE_XPCOMYASM-x86_DEFS = $(TEMPLATE_XPCOMYASM_DEFS) VBOX_IN_32_ON_64_MAIN_API
|
---|
321 | TEMPLATE_XPCOMYASM-x86_LIBS = $(subst $(LIB_RUNTIME),$(VBOX_LIB_RUNTIME_X86),$(TEMPLATE_XPCOMYASM_LIBS))
|
---|
322 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
323 | ifdef VBOX_WITH_RUNPATH
|
---|
324 | TEMPLATE_XPCOM-x86_LDFLAGS = \
|
---|
325 | $(filter-out '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)',$(TEMPLATE_XPCOMYASM_LDFLAGS)) \
|
---|
326 | '$(VBOX_GCC_RPATH_OPT)$(VBOX_PATH_APP_PRIVATE)' \
|
---|
327 | '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)'
|
---|
328 | endif
|
---|
329 | endif
|
---|
330 |
|
---|
331 |
|
---|
332 | #
|
---|
333 | # The list of XPCOM's IDL files.
|
---|
334 | # This is used by the java bindings as well as the XPCOM build.
|
---|
335 | #
|
---|
336 | XPCOM_IDLFILES = \
|
---|
337 | xpcom/base/nsIDebug.idl \
|
---|
338 | xpcom/base/nsIInterfaceRequestor.idl \
|
---|
339 | xpcom/base/nsIMemory.idl \
|
---|
340 | xpcom/base/nsIProgrammingLanguage.idl \
|
---|
341 | xpcom/base/nsISupports.idl \
|
---|
342 | xpcom/base/nsITraceRefcnt.idl \
|
---|
343 | xpcom/base/nsIWeakReference.idl \
|
---|
344 | xpcom/base/nsIConsoleMessage.idl \
|
---|
345 | xpcom/base/nsIConsoleService.idl \
|
---|
346 | xpcom/base/nsIConsoleListener.idl \
|
---|
347 | xpcom/base/nsIErrorService.idl \
|
---|
348 | xpcom/base/nsIException.idl \
|
---|
349 | xpcom/base/nsIExceptionService.idl \
|
---|
350 | xpcom/base/nsrootidl.idl \
|
---|
351 | xpcom/components/nsIClassInfo.idl \
|
---|
352 | xpcom/components/nsIComponentRegistrar.idl \
|
---|
353 | xpcom/components/nsIFactory.idl \
|
---|
354 | xpcom/components/nsIModule.idl \
|
---|
355 | xpcom/components/nsIServiceManager.idl \
|
---|
356 | xpcom/components/nsIComponentManager.idl \
|
---|
357 | xpcom/components/nsICategoryManager.idl \
|
---|
358 | xpcom/components/nsIComponentLoader.idl \
|
---|
359 | xpcom/components/nsINativeComponentLoader.idl \
|
---|
360 | xpcom/components/nsIComponentManagerObsolete.idl \
|
---|
361 | xpcom/components/nsIComponentLoaderManager.idl \
|
---|
362 | xpcom/ds/nsISupportsArray.idl \
|
---|
363 | xpcom/ds/nsICollection.idl \
|
---|
364 | xpcom/ds/nsISerializable.idl \
|
---|
365 | xpcom/ds/nsIEnumerator.idl \
|
---|
366 | xpcom/ds/nsISimpleEnumerator.idl \
|
---|
367 | xpcom/ds/nsIObserverService.idl \
|
---|
368 | xpcom/ds/nsIObserver.idl \
|
---|
369 | xpcom/ds/nsIAtom.idl \
|
---|
370 | xpcom/ds/nsIAtomService.idl \
|
---|
371 | xpcom/ds/nsIProperties.idl \
|
---|
372 | xpcom/ds/nsIPersistentProperties2.idl \
|
---|
373 | xpcom/ds/nsIRecyclingAllocator.idl \
|
---|
374 | xpcom/ds/nsIStringEnumerator.idl \
|
---|
375 | xpcom/ds/nsISupportsPrimitives.idl \
|
---|
376 | xpcom/ds/nsISupportsIterators.idl \
|
---|
377 | xpcom/ds/nsIVariant.idl \
|
---|
378 | xpcom/ds/nsITimelineService.idl \
|
---|
379 | xpcom/ds/nsIArray.idl \
|
---|
380 | xpcom/ds/nsIPropertyBag.idl \
|
---|
381 | xpcom/ds/nsIHashable.idl \
|
---|
382 | xpcom/io/nsIDirectoryService.idl \
|
---|
383 | xpcom/io/nsIDirectoryEnumerator.idl \
|
---|
384 | xpcom/io/nsIFile.idl \
|
---|
385 | xpcom/io/nsILocalFile.idl \
|
---|
386 | xpcom/io/nsILocalFileMac.idl \
|
---|
387 | xpcom/io/nsIInputStream.idl \
|
---|
388 | xpcom/io/nsIObjectInputStream.idl \
|
---|
389 | xpcom/io/nsIBinaryInputStream.idl \
|
---|
390 | xpcom/io/nsIObjectOutputStream.idl \
|
---|
391 | xpcom/io/nsIBinaryOutputStream.idl \
|
---|
392 | xpcom/io/nsIOutputStream.idl \
|
---|
393 | xpcom/io/nsIStreamBufferAccess.idl \
|
---|
394 | xpcom/io/nsIByteArrayInputStream.idl \
|
---|
395 | xpcom/io/nsISeekableStream.idl \
|
---|
396 | xpcom/io/nsIFastLoadFileControl.idl \
|
---|
397 | xpcom/io/nsIFastLoadService.idl \
|
---|
398 | xpcom/io/nsIInputStreamTee.idl \
|
---|
399 | xpcom/io/nsIMultiplexInputStream.idl \
|
---|
400 | xpcom/io/nsIPipe.idl \
|
---|
401 | xpcom/io/nsIAsyncInputStream.idl \
|
---|
402 | xpcom/io/nsIAsyncOutputStream.idl \
|
---|
403 | xpcom/io/nsIScriptableInputStream.idl \
|
---|
404 | xpcom/io/nsIStorageStream.idl \
|
---|
405 | xpcom/io/nsIStringStream.idl \
|
---|
406 | xpcom/io/nsILineInputStream.idl \
|
---|
407 | xpcom/proxy/public/nsIProxyObjectManager.idl \
|
---|
408 | xpcom/threads/nsIEventQueueService.idl \
|
---|
409 | xpcom/threads/nsIEventQueue.idl \
|
---|
410 | xpcom/threads/nsIEventTarget.idl \
|
---|
411 | xpcom/threads/nsIRunnable.idl \
|
---|
412 | xpcom/threads/nsIThread.idl \
|
---|
413 | xpcom/threads/nsITimer.idl \
|
---|
414 | xpcom/threads/nsIEnvironment.idl \
|
---|
415 | xpcom/threads/nsITimerInternal.idl \
|
---|
416 | xpcom/threads/nsITimerManager.idl \
|
---|
417 | xpcom/threads/nsIProcess.idl \
|
---|
418 | xpcom/reflect/xptinfo/public/nsIInterfaceInfo.idl \
|
---|
419 | xpcom/reflect/xptinfo/public/nsIInterfaceInfoManager.idl \
|
---|
420 | xpcom/reflect/xptinfo/public/nsIXPTLoader.idl \
|
---|
421 | ipc/ipcd/client/public/ipcIService.idl \
|
---|
422 | ipc/ipcd/client/public/ipcIMessageObserver.idl \
|
---|
423 | ipc/ipcd/client/public/ipcIClientObserver.idl \
|
---|
424 | ipc/ipcd/extensions/lock/public/ipcILockService.idl \
|
---|
425 | ipc/ipcd/extensions/transmngr/public/ipcITransactionService.idl \
|
---|
426 | ipc/ipcd/extensions/dconnect/public/ipcIDConnectService.idl \
|
---|
427 | ipc/ipcd/extensions/transmngr/public/ipcITransactionObserver.idl
|
---|
428 |
|
---|
429 | #
|
---|
430 | # The include path for the XPCOM IDL files above.
|
---|
431 | #
|
---|
432 | XPIDL_INCS = \
|
---|
433 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/base/ \
|
---|
434 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/ds/ \
|
---|
435 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/components/ \
|
---|
436 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/io/ \
|
---|
437 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/threads/ \
|
---|
438 | -I $(VBOX_PATH_XPCOM_SRC)/xpcom/reflect/xptinfo/public/
|
---|
439 |
|
---|