VirtualBox

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

Last change on this file since 94130 was 87254, checked in by vboxsync, 4 years ago

xpcom18a4: Adjustments for bugref:9898.

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

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