Changeset 86628 in vbox for trunk/src/libs/xpcom18a4/python
- Timestamp:
- Oct 19, 2020 12:29:54 PM (4 years ago)
- Location:
- trunk/src/libs/xpcom18a4/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/Makefile.kmk
r86334 r86628 18 18 SUB_DEPTH = ../../../.. 19 19 include $(KBUILD_PATH)/subheader.kmk 20 21 ifdef VBOX_WITH_MULTIVERSION_PYTHON22 VBOX_MULTIPYTHON = 123 else24 VBOX_MULTIPYTHON = 025 endif26 20 27 21 # … … 80 74 $(KBUILD_TARGET) \ 81 75 $(KBUILD_TARGET_ARCH) \ 82 $( VBOX_MULTIPYTHON))))76 $(if-expr defined(VBOX_WITH_MULTIVERSION_PYTHON),1,0)))) 83 77 endif 84 78 … … 209 203 endif 210 204 205 # 206 # Unversioned Python 2.x. 207 # 208 if defined(VBOX_PYTHON27_INC) || defined(VBOX_PYTHON_26_INC) 209 DLLS += VBoxPython2 210 VBoxPython2_EXTENDS = VBoxPythonBase 211 VBoxPython2_EXTENDS_BY = appending 212 VBoxPython2_DEFS = VBOX_PYXPCOM_MAJOR_VERSIONED 213 ifdef KMK_WITH_VERSION_COMPARE 214 VBoxPython2_TEMPLATE = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin" && "$(VBOX_DEF_MACOSX_VERSION_MIN)" vle "10.7",OSX107,) 215 else 216 VBoxPython2_TEMPLATE = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin" && "$(VBOX_DEF_MACOSX_VERSION_MIN)" <= "10.7" && "$(length-var VBOX_DEF_MACOSX_VERSION_MIN)" == "4",OSX107,) 217 endif 218 if defined(VBOX_PYTHON_26_INC) 219 VBoxPython2_INCS = $(VBOX_PYTHON26_INC) 220 VBoxPython2_LIBS = $(VBOX_PYTHON26_LIB) 221 else 222 VBoxPython2_INCS = $(VBOX_PYTHON27_INC) 223 VBoxPython2_LIBS = $(VBOX_PYTHON27_LIB) 224 endif 225 endif 226 227 if defined(VBOX_WITH_32_ON_64_MAIN_API) && (defined(VBOX_PYTHON27_LIB_X86) || defined(VBOX_PYTHON_26_INC_X86)) 228 DLLS += VBoxPython2_x86 229 VBoxPython2_x86_EXTENDS = VBoxPythonBase_x86 230 VBoxPython2_x86_EXTENDS_BY = appending 231 VBoxPython2_x86_DEFS = VBOX_PYXPCOM_MAJOR_VERSIONED $(VBoxPythonBase_x86_DEFS) 232 ifdef KMK_WITH_VERSION_COMPARE 233 VBoxPython2_x86_TEMPLATE = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin" && "$(VBOX_DEF_MACOSX_VERSION_MIN)" vle "10.7",OSX107,-x86) 234 else 235 VBoxPython2_x86_TEMPLATE = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin" && "$(VBOX_DEF_MACOSX_VERSION_MIN)" <= "10.7" && "$(length-var VBOX_DEF_MACOSX_VERSION_MIN)" == "4",OSX107,-x86) 236 endif 237 if defined(VBOX_PYTHON27_LIB_X86) 238 VBoxPython2_x86_INCS = $(VBOX_PYTHON26_INC) 239 VBoxPython2_x86_LIBS = $(VBOX_PYTHON26_LIB_X86) 240 else 241 VBoxPython2_x86_INCS = $(VBOX_PYTHON27_INC) 242 VBoxPython2_x86_LIBS = $(VBOX_PYTHON27_LIB_X86) 243 endif 244 endif 245 246 211 247 ifdef VBOX_PYTHON31_INC 212 248 # -
trunk/src/libs/xpcom18a4/python/src/module/_xpcom.cpp
r86333 r86628 84 84 # define MANGLE_MODULE_INIT(a_Name) RT_CONCAT(a_Name, MODULE_NAME_SUFFIX) 85 85 # endif 86 # if def VBOX_PYXPCOM_VERSIONED86 # if defined(VBOX_PYXPCOM_VERSIONED) && !defined(VBOX_PYXPCOM_MAJOR_VERSIONED) 87 87 # if PY_VERSION_HEX >= 0x03080000 && PY_VERSION_HEX < 0x03090000 88 88 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython3_8") … … 132 132 # endif 133 133 # else 134 # if PY_MAJOR_VERSION <= 2 134 # if PY_MAJOR_VERSION <= 2 && defined(VBOX_PYXPCOM_MAJOR_VERSIONED) 135 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython2") 136 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython2) 137 # elif PY_MAJOR_VERSION <= 2 135 138 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython") 136 139 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython) 137 # elif defined(Py_LIMITED_API) 140 # elif defined(Py_LIMITED_API) || defined(VBOX_PYXPCOM_MAJOR_VERSIONED) 138 141 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython3") 139 142 # define initVBoxPython MANGLE_MODULE_INIT(PyInit_VBoxPython3)
Note:
See TracChangeset
for help on using the changeset viewer.