VirtualBox

Changeset 99000 in vbox for trunk


Ignore:
Timestamp:
Mar 16, 2023 10:57:30 AM (23 months ago)
Author:
vboxsync
Message:

xpcom,Installer/darwin: Build and ship the version agnostic VBoxPython3 module on macOS, bugref:9790

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/Makefile.kmk

    r98997 r99000  
    478478 VBOX_DI_VBAPP_DYLIBS += \
    479479        MacOS/VBoxPython2_7.so
     480endif
     481if defined(VBOX_WITH_PYTHON) && !defined(VBOX_WITHOUT_PYTHON_LIMITED_API)
     482 VBOX_DI_VBAPP_DYLIBS += \
     483        MacOS/VBoxPython3.so
    480484endif
    481485ifdef VBOX_WITH_VMSVGA3D
  • trunk/src/libs/xpcom18a4/python/Makefile.kmk

    r98997 r99000  
    7373  VBOX_PYTHON27_LIB =
    7474 endif
    75  # No Python 3.x yet as part of OSX versions including El Capitan, 10.11.
     75 #
     76 # Apple introduced python3 as part of the developer command tools starting with at least 10.15 (didn't go back further as it is not of interest to us).
     77 # However the headers and libraries are now residing under /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions with 3.8 and 3.9
     78 # being present on Monterey.
     79 # For now we will only provide the module for 3.8 and the version agnostic variant using the limited API.
     80 #
     81 VBOX_PYTHON38_INC = /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Headers
     82 VBOX_PYTHON38_LIB = /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/libpython3.8.dylib
    7683
    7784else
     
    712719   VBoxPython3_DEFS      = $(filter-out VBOX_PYXPCOM_VERSIONED,$(VBoxPythonBase_DEFS)) Py_LIMITED_API=0x03030000
    713720   VBoxPython3_INCS      = $(VBoxPythonBase_INCS) $(VBOX_PYTHON$(VBOX_PYTHON_LIMITED_API_VER)_INC)
    714 
    715    DLLS += VBoxPython3m
    716    VBoxPython3m_EXTENDS  = VBoxPythonBase_m
    717    VBoxPython3m_DEFS     = $(filter-out VBOX_PYXPCOM_VERSIONED,$(VBoxPythonBase_m_DEFS)) Py_LIMITED_API=0x03030000
    718    VBoxPython3m_INCS     = $(VBoxPythonBase_m_INCS) $(VBOX_PYTHON$(VBOX_PYTHON_LIMITED_API_VER)_INC)
     721   VBoxPython3_LDFLAGS.darwin = -undefined dynamic_lookup
     722
     723   ifneq ($(KBUILD_TARGET),darwin)
     724    DLLS += VBoxPython3m
     725    VBoxPython3m_EXTENDS  = VBoxPythonBase_m
     726    VBoxPython3m_DEFS     = $(filter-out VBOX_PYXPCOM_VERSIONED,$(VBoxPythonBase_m_DEFS)) Py_LIMITED_API=0x03030000
     727    VBoxPython3m_INCS     = $(VBoxPythonBase_m_INCS) $(VBOX_PYTHON$(VBOX_PYTHON_LIMITED_API_VER)_INC)
     728   endif
    719729  endif
    720730 endif # VBOX_WITH_PYTHON_LIMITED_API
Note: See TracChangeset for help on using the changeset viewer.

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