1 | # $Id: Makefile.kmk 67995 2017-07-17 13:01:46Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for Python bindings
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2009-2016 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 | SUB_DEPTH = ../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | ifdef VBOX_WITH_MULTIVERSION_PYTHON
|
---|
22 | VBOX_MULTIPYTHON = 1
|
---|
23 | else
|
---|
24 | VBOX_MULTIPYTHON = 0
|
---|
25 | endif
|
---|
26 |
|
---|
27 | #
|
---|
28 | # List of supported Python versions, defining a number of
|
---|
29 | # VBOX_PYTHON[26|27|31|32|32M|33|33M|34|34M|35|35M|36|36M|37|37M|DEF]_[INC|LIB] variables
|
---|
30 | # which get picked up below.
|
---|
31 | #
|
---|
32 | ifeq ($(KBUILD_TARGET),darwin) # Relatively predictable, don't script.
|
---|
33 | ifndef VBOX_WITHOUT_VBOXPYTHON_FOR_OSX_10_6
|
---|
34 | if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.5 10.4)
|
---|
35 | VBOX_PYTHON26_INC = $(VBOX_PATH_MACOSX_SDK_10_6)/usr/include/python2.6
|
---|
36 | VBOX_PYTHON26_LIB = $(VBOX_PATH_MACOSX_SDK_10_6)/usr/lib/libpython2.6.dylib
|
---|
37 | else if "$(VBOX_DEF_MACOSX_VERSION_MIN)" == "10.9" && "$(VBOX_XCODE_VERSION)" == "6.2" # 'effing 10.9 SDK in Xcode 6.2 is missing python. Stupid, stupid Apple!!
|
---|
38 | VBOX_PYTHON26_INC = $(VBOX_PATH_MACOSX_SDK)/../MacOSX10.10.sdk/System/Library/Frameworks/Python.framework/Versions/2.6/Headers
|
---|
39 | VBOX_PYTHON26_LIB = $(VBOX_PATH_MACOSX_SDK)/../MacOSX10.10.sdk/System/Library/Frameworks/Python.framework/Versions/2.6/Python
|
---|
40 | else
|
---|
41 | VBOX_PYTHON26_INC = $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/Python.framework/Versions/2.6/Headers
|
---|
42 | VBOX_PYTHON26_LIB = $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/Python.framework/Versions/2.6/Python
|
---|
43 | endif
|
---|
44 | if !defined(VBOX_OSE) || "$(wildcard $(VBOX_PYTHON26_LIB))" != ""
|
---|
45 | VBOX_PYTHON26_LIB_X86 = $(VBOX_PYTHON26_LIB)
|
---|
46 | else
|
---|
47 | VBOX_PYTHON26_INC =
|
---|
48 | VBOX_PYTHON26_LIB =
|
---|
49 | endif
|
---|
50 | endif
|
---|
51 | ifndef VBOX_WITHOUT_VBOXPYTHON_FOR_OSX_10_7
|
---|
52 | if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.6 10.5 10.4)
|
---|
53 | VBOX_PYTHON27_INC = $(VBOX_PATH_MACOSX_SDK_10_7)/usr/include/python2.7
|
---|
54 | VBOX_PYTHON27_LIB = $(VBOX_PATH_MACOSX_SDK_10_7)/usr/lib/libpython2.7.dylib
|
---|
55 | else if "$(VBOX_DEF_MACOSX_VERSION_MIN)" == "10.9" && "$(VBOX_XCODE_VERSION)" == "6.2" # 'effing 10.9 SDK in Xcode 6.2 is missing python. Stupid, stupid Apple!!
|
---|
56 | VBOX_PYTHON27_INC = $(VBOX_PATH_MACOSX_SDK)/../MacOSX10.10.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers
|
---|
57 | VBOX_PYTHON27_LIB = $(VBOX_PATH_MACOSX_SDK)/../MacOSX10.10.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Python
|
---|
58 | else
|
---|
59 | VBOX_PYTHON27_INC = $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/Python.framework/Versions/2.7/Headers
|
---|
60 | VBOX_PYTHON27_LIB = $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/Python.framework/Versions/2.7/Python
|
---|
61 | endif
|
---|
62 | if !defined(VBOX_OSE) || "$(wildcard $(VBOX_PYTHON27_LIB))" != ""
|
---|
63 | VBOX_PYTHON27_LIB_X86 = $(VBOX_PYTHON27_LIB)
|
---|
64 | else
|
---|
65 | VBOX_PYTHON27_INC =
|
---|
66 | VBOX_PYTHON27_LIB =
|
---|
67 | endif
|
---|
68 | endif
|
---|
69 | # No Python 3.x yet as part of OSX versions including El Capitan, 10.11.
|
---|
70 |
|
---|
71 | else
|
---|
72 | # Use the script.
|
---|
73 | $(eval $(subst |,$(NL),$(shell $(VBOX_BLD_PYTHON) \
|
---|
74 | $(PATH_SUB_CURRENT)/gen_python_deps.py \
|
---|
75 | $(KBUILD_TARGET) \
|
---|
76 | $(KBUILD_TARGET_ARCH) \
|
---|
77 | $(VBOX_MULTIPYTHON) )))
|
---|
78 | endif
|
---|
79 |
|
---|
80 | ifndef VBOX_ONLY_SDK
|
---|
81 |
|
---|
82 | #
|
---|
83 | # Base Python Client Module - the C++/XPCOM bits (not actually built).
|
---|
84 | #
|
---|
85 | VBoxPythonBase_TEMPLATE = XPCOM
|
---|
86 | VBoxPythonBase_CXXFLAGS = -Wno-write-strings
|
---|
87 | VBoxPythonBase_DLLSUFF.darwin = .so
|
---|
88 | VBoxPythonBase_DEFS = \
|
---|
89 | _IMPL_NS_COM \
|
---|
90 | _IMPL_NS_BASE \
|
---|
91 | EXPORT_XPTI_API \
|
---|
92 | EXPORT_XPT_API \
|
---|
93 | VBOX_PYXPCOM \
|
---|
94 | VBOX_WITH_XPCOM \
|
---|
95 | VBOX_PYXPCOM_VERSIONED
|
---|
96 | #VBoxPythonBase_DEFS.debug = \
|
---|
97 | # VBOX_DEBUG_LIFETIMES
|
---|
98 | VBoxPythonBase_INCS = \
|
---|
99 | src
|
---|
100 | VBoxPythonBase_SOURCES = \
|
---|
101 | src/module/_xpcom.cpp \
|
---|
102 | src/dllmain.cpp \
|
---|
103 | src/ErrorUtils.cpp \
|
---|
104 | src/PyGBase.cpp \
|
---|
105 | src/PyGInputStream.cpp \
|
---|
106 | src/PyGModule.cpp \
|
---|
107 | src/PyGStub.cpp \
|
---|
108 | src/PyGWeakReference.cpp \
|
---|
109 | src/PyIClassInfo.cpp \
|
---|
110 | src/PyIComponentManager.cpp \
|
---|
111 | src/PyIComponentManagerObsolete.cpp \
|
---|
112 | src/PyIEnumerator.cpp \
|
---|
113 | src/PyIID.cpp \
|
---|
114 | src/PyIInputStream.cpp \
|
---|
115 | src/PyIInterfaceInfo.cpp \
|
---|
116 | src/PyIInterfaceInfoManager.cpp \
|
---|
117 | src/PyISimpleEnumerator.cpp \
|
---|
118 | src/PyISupports.cpp \
|
---|
119 | src/PyIVariant.cpp \
|
---|
120 | src/Pyxpt_info.cpp \
|
---|
121 | src/TypeObject.cpp \
|
---|
122 | src/VariantUtils.cpp
|
---|
123 | VBoxPythonBase_LIBS = \
|
---|
124 | $(PATH_STAGE_LIB)/VBoxCOM$(VBOX_SUFF_LIB) \
|
---|
125 | $(PATH_STAGE_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL)
|
---|
126 |
|
---|
127 | # 32-bit base.
|
---|
128 | VBoxPythonBase_x86_TEMPLATE = XPCOM-x86
|
---|
129 | VBoxPythonBase_x86_EXTENDS = VBoxPythonBase
|
---|
130 | VBoxPythonBase_x86_DEFS = MODULE_NAME_SUFFIX=_x86 $(VBoxPythonBase_DEFS)
|
---|
131 | VBoxPythonBase_x86_LIBS = \
|
---|
132 | $(PATH_STAGE_LIB)/VBoxCOM-x86$(VBOX_SUFF_LIB) \
|
---|
133 | $(PATH_STAGE_BIN)/VBoxXPCOM-x86$(VBOX_SUFF_DLL)
|
---|
134 |
|
---|
135 |
|
---|
136 | ifdef VBOX_PYTHON26_INC
|
---|
137 | #
|
---|
138 | # Python 2.6 version
|
---|
139 | #
|
---|
140 | DLLS += VBoxPython2_6
|
---|
141 | VBoxPython2_6_EXTENDS = VBoxPythonBase
|
---|
142 | VBoxPython2_6_EXTENDS_BY = appending
|
---|
143 | VBoxPython2_6_TEMPLATE = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin" && "$(VBOX_DEF_MACOSX_VERSION_MIN)" <= "10.6",OSX106,)
|
---|
144 | VBoxPython2_6_INCS = $(VBOX_PYTHON26_INC)
|
---|
145 | VBoxPython2_6_LIBS = $(VBOX_PYTHON26_LIB)
|
---|
146 |
|
---|
147 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
148 | ifdef VBOX_PYTHON26_LIB_X86
|
---|
149 | DLLS += VBoxPython2_6_x86
|
---|
150 | VBoxPython2_6_x86_EXTENDS = VBoxPythonBase_x86
|
---|
151 | VBoxPython2_6_x86_EXTENDS_BY = appending
|
---|
152 | VBoxPython2_6_x86_TEMPLATE = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin" && "$(VBOX_DEF_MACOSX_VERSION_MIN)" <= "10.6",OSX106,-x86)
|
---|
153 | VBoxPython2_6_x86_INCS = $(VBOX_PYTHON26_INC)
|
---|
154 | VBoxPython2_6_x86_LIBS = $(VBOX_PYTHON26_LIB_X86)
|
---|
155 | endif
|
---|
156 | endif
|
---|
157 | endif
|
---|
158 |
|
---|
159 | ifdef VBOX_PYTHON27_INC
|
---|
160 | #
|
---|
161 | # Python 2.7 version
|
---|
162 | #
|
---|
163 | DLLS += VBoxPython2_7
|
---|
164 | VBoxPython2_7_EXTENDS = VBoxPythonBase
|
---|
165 | VBoxPython2_7_EXTENDS_BY = appending
|
---|
166 | VBoxPython2_7_TEMPLATE = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin" && "$(VBOX_DEF_MACOSX_VERSION_MIN)" <= "10.7",OSX107,)
|
---|
167 | VBoxPython2_7_INCS = $(VBOX_PYTHON27_INC)
|
---|
168 | VBoxPython2_7_LIBS = $(VBOX_PYTHON27_LIB)
|
---|
169 |
|
---|
170 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
171 | ifdef VBOX_PYTHON27_LIB_X86
|
---|
172 | DLLS += VBoxPython2_7_x86
|
---|
173 | VBoxPython2_7_x86_EXTENDS = VBoxPythonBase_x86
|
---|
174 | VBoxPython2_7_x86_EXTENDS_BY = appending
|
---|
175 | VBoxPython2_7_x86_TEMPLATE = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin" && "$(VBOX_DEF_MACOSX_VERSION_MIN)" <= "10.7",OSX107,-x86)
|
---|
176 | VBoxPython2_7_x86_INCS = $(VBOX_PYTHON27_INC)
|
---|
177 | VBoxPython2_7_x86_LIBS = $(VBOX_PYTHON27_LIB_X86)
|
---|
178 | endif
|
---|
179 | endif
|
---|
180 | endif
|
---|
181 |
|
---|
182 | ifdef VBOX_PYTHON31_INC
|
---|
183 | #
|
---|
184 | # Python 3.1 version
|
---|
185 | #
|
---|
186 | DLLS += VBoxPython3_1
|
---|
187 | VBoxPython3_1_EXTENDS = VBoxPythonBase
|
---|
188 | VBoxPython3_1_EXTENDS_BY = appending
|
---|
189 | VBoxPython3_1_TEMPLATE = XPCOM
|
---|
190 | VBoxPython3_1_INCS = $(VBOX_PYTHON31_INC)
|
---|
191 | VBoxPython3_1_LIBS = $(VBOX_PYTHON31_LIB)
|
---|
192 |
|
---|
193 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
194 | ifdef VBOX_PYTHON31_LIB_X86
|
---|
195 | DLLS += VBoxPython3_1_x86
|
---|
196 | VBoxPython3_1_x86_EXTENDS = VBoxPythonBase_x86
|
---|
197 | VBoxPython3_1_x86_EXTENDS_BY = appending
|
---|
198 | VBoxPython3_1_x86_TEMPLATE = XPCOM
|
---|
199 | VBoxPython3_1_x86_INCS = $(VBOX_PYTHON31_INC)
|
---|
200 | VBoxPython3_1_x86_LIBS = $(VBOX_PYTHON31_LIB_X86)
|
---|
201 | endif
|
---|
202 | endif
|
---|
203 | endif
|
---|
204 |
|
---|
205 | ifdef VBOX_PYTHON32_INC
|
---|
206 | #
|
---|
207 | # Python 3.2 version
|
---|
208 | #
|
---|
209 | DLLS += VBoxPython3_2
|
---|
210 | VBoxPython3_2_EXTENDS = VBoxPythonBase
|
---|
211 | VBoxPython3_2_EXTENDS_BY = appending
|
---|
212 | VBoxPython3_2_TEMPLATE = XPCOM
|
---|
213 | VBoxPython3_2_INCS = $(VBOX_PYTHON32_INC)
|
---|
214 | VBoxPython3_2_LIBS = $(VBOX_PYTHON32_LIB)
|
---|
215 |
|
---|
216 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
217 | ifdef VBOX_PYTHON32_LIB_X86
|
---|
218 | DLLS += VBoxPython3_2_x86
|
---|
219 | VBoxPython3_2_x86_EXTENDS = VBoxPythonBase_x86
|
---|
220 | VBoxPython3_2_x86_EXTENDS_BY = appending
|
---|
221 | VBoxPython3_2_x86_TEMPLATE = XPCOM
|
---|
222 | VBoxPython3_2_x86_INCS = $(VBOX_PYTHON32_INC)
|
---|
223 | VBoxPython3_2_x86_LIBS = $(VBOX_PYTHON32_LIB_X86)
|
---|
224 | endif
|
---|
225 | endif
|
---|
226 | endif
|
---|
227 |
|
---|
228 | ifdef VBOX_PYTHON32M_INC
|
---|
229 | #
|
---|
230 | # Python 3.2 version with pymalloc
|
---|
231 | #
|
---|
232 | DLLS += VBoxPython3_2m
|
---|
233 | VBoxPython3_2m_EXTENDS = VBoxPythonBase
|
---|
234 | VBoxPython3_2m_EXTENDS_BY = appending
|
---|
235 | VBoxPython3_2m_TEMPLATE = XPCOM
|
---|
236 | VBoxPython3_2m_INCS = $(VBOX_PYTHON32M_INC)
|
---|
237 | VBoxPython3_2m_LIBS = $(VBOX_PYTHON32M_LIB)
|
---|
238 |
|
---|
239 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
240 | ifdef VBOX_PYTHON32M_LIB_X86
|
---|
241 | DLLS += VBoxPython3_2m_x86
|
---|
242 | VBoxPython3_2m_x86_EXTENDS = VBoxPythonBase_x86
|
---|
243 | VBoxPython3_2m_x86_EXTENDS_BY = appending
|
---|
244 | VBoxPython3_2m_x86_TEMPLATE = XPCOM
|
---|
245 | VBoxPython3_2m_x86_INCS = $(VBOX_PYTHON32M_INC)
|
---|
246 | VBoxPython3_2m_x86_LIBS = $(VBOX_PYTHON32M_LIB_X86)
|
---|
247 | endif
|
---|
248 | endif
|
---|
249 | endif
|
---|
250 |
|
---|
251 | ifdef VBOX_PYTHON33_INC
|
---|
252 | #
|
---|
253 | # Python 3.3 version
|
---|
254 | #
|
---|
255 | DLLS += VBoxPython3_3
|
---|
256 | VBoxPython3_3_EXTENDS = VBoxPythonBase
|
---|
257 | VBoxPython3_3_EXTENDS_BY = appending
|
---|
258 | VBoxPython3_3_TEMPLATE = XPCOM
|
---|
259 | VBoxPython3_3_INCS = $(VBOX_PYTHON33_INC)
|
---|
260 | VBoxPython3_3_LIBS = $(VBOX_PYTHON33_LIB)
|
---|
261 |
|
---|
262 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
263 | ifdef VBOX_PYTHON33_LIB_X86
|
---|
264 | DLLS += VBoxPython3_3_x86
|
---|
265 | VBoxPython3_3_x86_EXTENDS = VBoxPythonBase_x86
|
---|
266 | VBoxPython3_3_x86_EXTENDS_BY = appending
|
---|
267 | VBoxPython3_3_x86_TEMPLATE = XPCOM
|
---|
268 | VBoxPython3_3_x86_INCS = $(VBOX_PYTHON33_INC)
|
---|
269 | VBoxPython3_3_x86_LIBS = $(VBOX_PYTHON33_LIB_X86)
|
---|
270 | endif
|
---|
271 | endif
|
---|
272 | endif
|
---|
273 |
|
---|
274 | ifdef VBOX_PYTHON33M_INC
|
---|
275 | #
|
---|
276 | # Python 3.3 version with pymalloc
|
---|
277 | #
|
---|
278 | DLLS += VBoxPython3_3m
|
---|
279 | VBoxPython3_3m_EXTENDS = VBoxPythonBase
|
---|
280 | VBoxPython3_3m_EXTENDS_BY = appending
|
---|
281 | VBoxPython3_3m_TEMPLATE = XPCOM
|
---|
282 | VBoxPython3_3m_INCS = $(VBOX_PYTHON33M_INC)
|
---|
283 | VBoxPython3_3m_LIBS = $(VBOX_PYTHON33M_LIB)
|
---|
284 |
|
---|
285 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
286 | ifdef VBOX_PYTHON33M_LIB_X86
|
---|
287 | DLLS += VBoxPython3_3m_x86
|
---|
288 | VBoxPython3_3m_x86_EXTENDS = VBoxPythonBase_x86
|
---|
289 | VBoxPython3_3m_x86_EXTENDS_BY = appending
|
---|
290 | VBoxPython3_3m_x86_TEMPLATE = XPCOM
|
---|
291 | VBoxPython3_3m_x86_INCS = $(VBOX_PYTHON33M_INC)
|
---|
292 | VBoxPython3_3m_x86_LIBS = $(VBOX_PYTHON33M_LIB_X86)
|
---|
293 | endif
|
---|
294 | endif
|
---|
295 | endif
|
---|
296 |
|
---|
297 | ifdef VBOX_PYTHON34_INC
|
---|
298 | #
|
---|
299 | # Python 3.4 version
|
---|
300 | #
|
---|
301 | DLLS += VBoxPython3_4
|
---|
302 | VBoxPython3_4_EXTENDS = VBoxPythonBase
|
---|
303 | VBoxPython3_4_EXTENDS_BY = appending
|
---|
304 | VBoxPython3_4_TEMPLATE = XPCOM
|
---|
305 | VBoxPython3_4_INCS = $(VBOX_PYTHON34_INC)
|
---|
306 | VBoxPython3_4_LIBS = $(VBOX_PYTHON34_LIB)
|
---|
307 |
|
---|
308 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
309 | ifdef VBOX_PYTHON34_LIB_X86
|
---|
310 | DLLS += VBoxPython3_4_x86
|
---|
311 | VBoxPython3_4_x86_EXTENDS = VBoxPythonBase_x86
|
---|
312 | VBoxPython3_4_x86_EXTENDS_BY = appending
|
---|
313 | VBoxPython3_4_x86_TEMPLATE = XPCOM
|
---|
314 | VBoxPython3_4_x86_INCS = $(VBOX_PYTHON34_INC)
|
---|
315 | VBoxPython3_4_x86_LIBS = $(VBOX_PYTHON34_LIB_X86)
|
---|
316 | endif
|
---|
317 | endif
|
---|
318 | endif
|
---|
319 |
|
---|
320 | ifdef VBOX_PYTHON34M_INC
|
---|
321 | #
|
---|
322 | # Python 3.4 version with pymalloc
|
---|
323 | #
|
---|
324 | DLLS += VBoxPython3_4m
|
---|
325 | VBoxPython3_4m_EXTENDS = VBoxPythonBase
|
---|
326 | VBoxPython3_4m_EXTENDS_BY = appending
|
---|
327 | VBoxPython3_4m_TEMPLATE = XPCOM
|
---|
328 | VBoxPython3_4m_INCS = $(VBOX_PYTHON34M_INC)
|
---|
329 | VBoxPython3_4m_LIBS = $(VBOX_PYTHON34M_LIB)
|
---|
330 |
|
---|
331 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
332 | ifdef VBOX_PYTHON34M_LIB_X86
|
---|
333 | DLLS += VBoxPython3_4m_x86
|
---|
334 | VBoxPython3_4m_x86_EXTENDS = VBoxPythonBase_x86
|
---|
335 | VBoxPython3_4m_x86_EXTENDS_BY = appending
|
---|
336 | VBoxPython3_4m_x86_TEMPLATE = XPCOM
|
---|
337 | VBoxPython3_4m_x86_INCS = $(VBOX_PYTHON34M_INC)
|
---|
338 | VBoxPython3_4m_x86_LIBS = $(VBOX_PYTHON34M_LIB_X86)
|
---|
339 | endif
|
---|
340 | endif
|
---|
341 | endif
|
---|
342 |
|
---|
343 | ifdef VBOX_PYTHON35_INC
|
---|
344 | #
|
---|
345 | # Python 3.5 version
|
---|
346 | #
|
---|
347 | DLLS += VBoxPython3_5
|
---|
348 | VBoxPython3_5_EXTENDS = VBoxPythonBase
|
---|
349 | VBoxPython3_5_EXTENDS_BY = appending
|
---|
350 | VBoxPython3_5_TEMPLATE = XPCOM
|
---|
351 | VBoxPython3_5_INCS = $(VBOX_PYTHON35_INC)
|
---|
352 | VBoxPython3_5_LIBS = $(VBOX_PYTHON35_LIB)
|
---|
353 |
|
---|
354 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
355 | ifdef VBOX_PYTHON35_LIB_X86
|
---|
356 | DLLS += VBoxPython3_5_x86
|
---|
357 | VBoxPython3_5_x86_EXTENDS = VBoxPythonBase_x86
|
---|
358 | VBoxPython3_5_x86_EXTENDS_BY = appending
|
---|
359 | VBoxPython3_5_x86_TEMPLATE = XPCOM
|
---|
360 | VBoxPython3_5_x86_INCS = $(VBOX_PYTHON35_INC)
|
---|
361 | VBoxPython3_5_x86_LIBS = $(VBOX_PYTHON35_LIB_X86)
|
---|
362 | endif
|
---|
363 | endif
|
---|
364 | endif
|
---|
365 |
|
---|
366 | ifdef VBOX_PYTHON35M_INC
|
---|
367 | #
|
---|
368 | # Python 3.5 version with pymalloc
|
---|
369 | #
|
---|
370 | DLLS += VBoxPython3_5m
|
---|
371 | VBoxPython3_5m_EXTENDS = VBoxPythonBase
|
---|
372 | VBoxPython3_5m_EXTENDS_BY = appending
|
---|
373 | VBoxPython3_5m_TEMPLATE = XPCOM
|
---|
374 | VBoxPython3_5m_INCS = $(VBOX_PYTHON35M_INC)
|
---|
375 | VBoxPython3_5m_LIBS = $(VBOX_PYTHON35M_LIB)
|
---|
376 |
|
---|
377 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
378 | ifdef VBOX_PYTHON35M_LIB_X86
|
---|
379 | DLLS += VBoxPython3_5m_x86
|
---|
380 | VBoxPython3_5m_x86_EXTENDS = VBoxPythonBase_x86
|
---|
381 | VBoxPython3_5m_x86_EXTENDS_BY = appending
|
---|
382 | VBoxPython3_5m_x86_TEMPLATE = XPCOM
|
---|
383 | VBoxPython3_5m_x86_INCS = $(VBOX_PYTHON35M_INC)
|
---|
384 | VBoxPython3_5m_x86_LIBS = $(VBOX_PYTHON35M_LIB_X86)
|
---|
385 | endif
|
---|
386 | endif
|
---|
387 | endif
|
---|
388 |
|
---|
389 | ifdef VBOX_PYTHON36_INC
|
---|
390 | #
|
---|
391 | # Python 3.6 version
|
---|
392 | #
|
---|
393 | DLLS += VBoxPython3_6
|
---|
394 | VBoxPython3_6_EXTENDS = VBoxPythonBase
|
---|
395 | VBoxPython3_6_EXTENDS_BY = appending
|
---|
396 | VBoxPython3_6_TEMPLATE = XPCOM
|
---|
397 | VBoxPython3_6_INCS = $(VBOX_PYTHON36_INC)
|
---|
398 | VBoxPython3_6_LIBS = $(VBOX_PYTHON36_LIB)
|
---|
399 |
|
---|
400 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
401 | ifdef VBOX_PYTHON36_LIB_X86
|
---|
402 | DLLS += VBoxPython3_6_x86
|
---|
403 | VBoxPython3_6_x86_EXTENDS = VBoxPythonBase_x86
|
---|
404 | VBoxPython3_6_x86_EXTENDS_BY = appending
|
---|
405 | VBoxPython3_6_x86_TEMPLATE = XPCOM
|
---|
406 | VBoxPython3_6_x86_INCS = $(VBOX_PYTHON36_INC)
|
---|
407 | VBoxPython3_6_x86_LIBS = $(VBOX_PYTHON36_LIB_X86)
|
---|
408 | endif
|
---|
409 | endif
|
---|
410 | endif
|
---|
411 |
|
---|
412 | ifdef VBOX_PYTHON36M_INC
|
---|
413 | #
|
---|
414 | # Python 3.6 version with pymalloc
|
---|
415 | #
|
---|
416 | DLLS += VBoxPython3_6m
|
---|
417 | VBoxPython3_6m_EXTENDS = VBoxPythonBase
|
---|
418 | VBoxPython3_6m_EXTENDS_BY = appending
|
---|
419 | VBoxPython3_6m_TEMPLATE = XPCOM
|
---|
420 | VBoxPython3_6m_INCS = $(VBOX_PYTHON36M_INC)
|
---|
421 | VBoxPython3_6m_LIBS = $(VBOX_PYTHON36M_LIB)
|
---|
422 |
|
---|
423 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
424 | ifdef VBOX_PYTHON36M_LIB_X86
|
---|
425 | DLLS += VBoxPython3_6m_x86
|
---|
426 | VBoxPython3_6m_x86_EXTENDS = VBoxPythonBase_x86
|
---|
427 | VBoxPython3_6m_x86_EXTENDS_BY = appending
|
---|
428 | VBoxPython3_6m_x86_TEMPLATE = XPCOM
|
---|
429 | VBoxPython3_6m_x86_INCS = $(VBOX_PYTHON36M_INC)
|
---|
430 | VBoxPython3_6m_x86_LIBS = $(VBOX_PYTHON36M_LIB_X86)
|
---|
431 | endif
|
---|
432 | endif
|
---|
433 | endif
|
---|
434 |
|
---|
435 | ifdef VBOX_PYTHON37_INC
|
---|
436 | #
|
---|
437 | # Python 3.7 version
|
---|
438 | #
|
---|
439 | DLLS += VBoxPython3_7
|
---|
440 | VBoxPython3_7_EXTENDS = VBoxPythonBase
|
---|
441 | VBoxPython3_7_EXTENDS_BY = appending
|
---|
442 | VBoxPython3_7_TEMPLATE = XPCOM
|
---|
443 | VBoxPython3_7_INCS = $(VBOX_PYTHON37_INC)
|
---|
444 | VBoxPython3_7_LIBS = $(VBOX_PYTHON37_LIB)
|
---|
445 |
|
---|
446 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
447 | ifdef VBOX_PYTHON37_LIB_X86
|
---|
448 | DLLS += VBoxPython3_7_x86
|
---|
449 | VBoxPython3_7_x86_EXTENDS = VBoxPythonBase_x86
|
---|
450 | VBoxPython3_7_x86_EXTENDS_BY = appending
|
---|
451 | VBoxPython3_7_x86_TEMPLATE = XPCOM
|
---|
452 | VBoxPython3_7_x86_INCS = $(VBOX_PYTHON37_INC)
|
---|
453 | VBoxPython3_7_x86_LIBS = $(VBOX_PYTHON37_LIB_X86)
|
---|
454 | endif
|
---|
455 | endif
|
---|
456 | endif
|
---|
457 |
|
---|
458 | ifdef VBOX_PYTHON37M_INC
|
---|
459 | #
|
---|
460 | # Python 3.7 version with pymalloc
|
---|
461 | #
|
---|
462 | DLLS += VBoxPython3_7m
|
---|
463 | VBoxPython3_7m_EXTENDS = VBoxPythonBase
|
---|
464 | VBoxPython3_7m_EXTENDS_BY = appending
|
---|
465 | VBoxPython3_7m_TEMPLATE = XPCOM
|
---|
466 | VBoxPython3_7m_INCS = $(VBOX_PYTHON37M_INC)
|
---|
467 | VBoxPython3_7m_LIBS = $(VBOX_PYTHON37M_LIB)
|
---|
468 |
|
---|
469 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
470 | ifdef VBOX_PYTHON37M_LIB_X86
|
---|
471 | DLLS += VBoxPython3_7m_x86
|
---|
472 | VBoxPython3_7m_x86_EXTENDS = VBoxPythonBase_x86
|
---|
473 | VBoxPython3_7m_x86_EXTENDS_BY = appending
|
---|
474 | VBoxPython3_7m_x86_TEMPLATE = XPCOM
|
---|
475 | VBoxPython3_7m_x86_INCS = $(VBOX_PYTHON37M_INC)
|
---|
476 | VBoxPython3_7m_x86_LIBS = $(VBOX_PYTHON37M_LIB_X86)
|
---|
477 | endif
|
---|
478 | endif
|
---|
479 | endif
|
---|
480 |
|
---|
481 | ifdef VBOX_PYTHONDEF_INC
|
---|
482 | #
|
---|
483 | # Python without versioning
|
---|
484 | #
|
---|
485 | DLLS += VBoxPython
|
---|
486 | VBoxPython_EXTENDS = VBoxPythonBase
|
---|
487 | VBoxPython_DEFS = $(filter-out VBOX_PYXPCOM_VERSIONED,$(VBoxPythonBase_DEFS))
|
---|
488 | VBoxPython_INCS = $(VBoxPythonBase_INCS) $(VBOX_PYTHONDEF_INC)
|
---|
489 | if "$(KBUILD_TARGET)" == "linux"
|
---|
490 | VBoxPython_LIBS = $(VBoxPythonBase_LIBS)
|
---|
491 | else
|
---|
492 | VBoxPython_LIBS = $(VBoxPythonBase_LIBS) $(VBOX_PYTHONDEF_LIB)
|
---|
493 | endif
|
---|
494 |
|
---|
495 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
496 | ifdef VBOX_PYTHONDEF_LIB_X86
|
---|
497 | VBoxPython_x86_EXTENDS = VBoxPythonBase_x86
|
---|
498 | VBoxPython_x86_DEFS = $(filter-out VBOX_PYXPCOM_VERSIONED,$(VBoxPythonBase_x86_DEFS))
|
---|
499 | VBoxPython_x86_INCS = $(VBoxPythonBase_x86_INCS) $(VBOX_PYTHONDEF_INC)
|
---|
500 | if "$(KBUILD_TARGET)" == "linux"
|
---|
501 | VBoxPython_x86_LIBS = $(VBoxPythonBase_x86_LIBS)
|
---|
502 | else
|
---|
503 | VBoxPython_x86_LIBS = $(VBoxPythonBase_x86_LIBS) $(VBOX_PYTHONDEF_LIB_X86)
|
---|
504 | endif
|
---|
505 | endif
|
---|
506 | endif
|
---|
507 | endif
|
---|
508 |
|
---|
509 | endif # VBOX_ONLY_SDK
|
---|
510 |
|
---|
511 | #
|
---|
512 | # Install the python modules.
|
---|
513 | #
|
---|
514 | INSTALLS += VBoxPython-inst-py-xpcom
|
---|
515 | VBoxPython-inst-py-xpcom_INST = $(INST_SDK)bindings/xpcom/python/xpcom/
|
---|
516 | VBoxPython-inst-py-xpcom_MODE = a+r,u+w
|
---|
517 | VBoxPython-inst-py-xpcom_SOURCES = \
|
---|
518 | vboxxpcom.py \
|
---|
519 | components.py \
|
---|
520 | file.py \
|
---|
521 | __init__.py \
|
---|
522 | nsError.py \
|
---|
523 | primitives.py \
|
---|
524 | xpcom_consts.py \
|
---|
525 | xpt.py \
|
---|
526 | client/__init__.py=>client/__init__.py \
|
---|
527 | server/__init__.py=>server/__init__.py \
|
---|
528 | server/enumerator.py=>server/enumerator.py \
|
---|
529 | server/factory.py=>server/factory.py \
|
---|
530 | server/loader.py=>server/loader.py \
|
---|
531 | server/module.py=>server/module.py \
|
---|
532 | server/policy.py=>server/policy.py
|
---|
533 |
|
---|
534 |
|
---|
535 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
536 |
|
---|