VirtualBox

Changeset 86647 in vbox for trunk/src/libs


Ignore:
Timestamp:
Oct 20, 2020 1:04:32 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141023
Message:

xpcom/python: Don't build VBoxPython.so on darwin. No LIBS there on any platform. bugref:9840

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/Makefile.kmk

    r86646 r86647  
    206206# Unversioned Python 2.x.
    207207#
    208  if defined(VBOX_PYTHON27_INC) || defined(VBOX_PYTHON26_INC)
     208# Note! No python LIBS here as we don't want to depend on any specific python
     209#       version in a generic extension module.
     210#
     211 if (defined(VBOX_PYTHON27_INC) || defined(VBOX_PYTHON26_INC)) && "$(KBUILD_TARGET)" != "darwin"
     212
    209213DLLS += VBoxPython2
    210214VBoxPython2_EXTENDS    = VBoxPythonBase
     
    218222  if defined(VBOX_PYTHON26_INC)
    219223VBoxPython2_INCS       = $(VBOX_PYTHON26_INC)
    220    ifn1of ($(KBUILD_TARGET), linux)
    221 VBoxPython2_LIBS       = $(VBOX_PYTHON26_LIB)
    222    endif
    223224  else
    224225VBoxPython2_INCS       = $(VBOX_PYTHON27_INC)
    225    ifn1of ($(KBUILD_TARGET), linux)
    226 VBoxPython2_LIBS       = $(VBOX_PYTHON27_LIB)
    227    endif
    228   endif
    229  endif
    230 
    231  if defined(VBOX_WITH_32_ON_64_MAIN_API) && (defined(VBOX_PYTHON27_LIB_X86) || defined(VBOX_PYTHON26_INC_X86))
     226  endif
     227
     228  if defined(VBOX_WITH_32_ON_64_MAIN_API) && (defined(VBOX_PYTHON26LIB_X86) || defined(VBOX_PYTHON27LIB_X86))
    232229DLLS += VBoxPython2_x86
    233230VBoxPython2_x86_EXTENDS    = VBoxPythonBase_x86
    234231VBoxPython2_x86_EXTENDS_BY = appending
    235 VBoxPython2_x86_DEFS       = VBOX_PYXPCOM_MAJOR_VERSIONED $(VBoxPythonBase_x86_DEFS)
    236   ifdef KMK_WITH_VERSION_COMPARE
     232VBoxPython2_x86_DEFS       = VBOX_PYXPCOM_MAJOR_VERSIONED
     233   ifdef KMK_WITH_VERSION_COMPARE
    237234VBoxPython2_x86_TEMPLATE   = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin" && "$(VBOX_DEF_MACOSX_VERSION_MIN)" vle "10.7",OSX107,-x86)
    238   else
     235   else
    239236VBoxPython2_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)
    240   endif
    241   if defined(VBOX_PYTHON26LIB_X86)
     237   endif
     238   if defined(VBOX_PYTHON26LIB_X86)
    242239VBoxPython2_x86_INCS       = $(VBOX_PYTHON26_INC)
    243    ifn1of ($(KBUILD_TARGET), linux)
    244 VBoxPython2_x86_LIBS       = $(VBOX_PYTHON26_LIB_X86)
     240   else
     241VBoxPython2_x86_INCS       = $(VBOX_PYTHON27_INC)
    245242   endif
    246   else
    247 VBoxPython2_x86_INCS       = $(VBOX_PYTHON27_INC)
    248    ifn1of ($(KBUILD_TARGET), linux)
    249 VBoxPython2_x86_LIBS       = $(VBOX_PYTHON27_LIB_X86)
    250    endif
    251   endif
    252  endif
     243  endif
     244
     245 endif # (defined(VBOX_PYTHON27_INC) || defined(VBOX_PYTHON26_INC)) && "$(KBUILD_TARGET)" != "darwin"
    253246
    254247
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