VirtualBox

Changeset 11537 in vbox for trunk/src


Ignore:
Timestamp:
Aug 21, 2008 3:04:38 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35113
Message:

python integration cleanup

File:
1 edited

Legend:

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

    r11491 r11537  
    2929
    3030ifdef VBOX_WITH_PYTHON
    31 # bridge for XPCOM to invoke Python
    32 XPCOM_PYTHON = VBox-xpcom-python
    3331# bridge for Python to invoke XPCOM
    34 XPCOM_PYMOD = VBox-xpcom-pymod VBox-xpcom-helper
     32XPCOM_PYMOD = VBox-xpcom-pymod
     33# VBox-xpcom-helper
    3534# bridge between PYMOD and VirtualBox, to minimize mods
    3635XPCOM_VBOX_HELPER = VBox-xpcom-helper
    37 PYTHON_LIBS = python2.5
     36PYTHON_INCS=/usr/include/python2.5
    3837endif
    3938
     
    259258        VBox-xpcom-ipcdlock \
    260259        VBox-xpcom-ipctransmgr \
    261         VBox-xpcom-ipctmgrcom  \
    262         $(XPCOM_PYTHON) \
    263         $(PYTHON_LIBS)
     260        VBox-xpcom-ipctmgrcom
    264261
    265262DLLS += \
     
    11231120        $(TARGET_VBox-xpcom-proxy) \
    11241121        $(TARGET_VBox-xpcom-nspr) \
    1125         $(TARGET_$(XPCOM_PYTHON)) \
    1126         $(PYTHON_LIBS) \
    11271122        $(TARGET_VBoxXPCOMGlue_s)
    11281123
     
    11401135        $(TARGET_VBox-xpcom-proxy) \
    11411136        $(TARGET_VBox-xpcom-nspr) \
    1142         $(TARGET_$(XPCOM_PYTHON))\
    11431137        $(TARGET_VBoxXPCOMGlue_s) \
    11441138        -Wl,--no-whole-archive
     
    11561150        $(TARGET_VBox-xpcom-xptcall) \
    11571151        $(TARGET_VBox-xpcom-proxy) \
    1158         $(TARGET_$(XPCOM_PYTHON))\
    11591152        $(TARGET_VBox-xpcom-nspr) \
    11601153        $(TARGET_VBoxXPCOMGlue_s) \
     
    12631256
    12641257
    1265 #
    1266 # Python XPCOM bindings
    1267 #
    1268 VBox-xpcom-python_TEMPLATE = XPCOM
    1269 VBox-xpcom-python_NOINST = 1
    1270 VBox-xpcom-python_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTI_API EXPORT_XPT_API VBOX_PYXPCOM
    1271 VBox-xpcom-python_INCS += /usr/include/python2.5
    1272 VBox-xpcom-python_SOURCES = \
    1273         python/src/dllmain.cpp \
     1258# Helper for initialization of XPCOM
     1259VBox-xpcom-helper_TEMPLATE = VBOXMAINCLIENTDLL
     1260VBox-xpcom-helper_NAME = VBoxHlp
     1261VBox-xpcom-helper_DEFS =
     1262VBox-xpcom-helper_SOURCES = \
     1263        python/src/module/helper.cpp
     1264
     1265# Python Client Module
     1266PY_PATH = sdk/bindings/com/python/xpcom
     1267PY_DEST = $(PATH_BIN)/$(PY_PATH)
     1268PY_SAMPLE = $(PATH_BIN)/sdk/bindings/com/python/sample
     1269
     1270VBox-xpcom-pymod_TEMPLATE = XPCOM
     1271# sucky name, maybe rename?
     1272VBox-xpcom-pymod_NAME = _xpcom
     1273VBox-xpcom-pymod_INST = bin/$(PY_PATH)/
     1274VBox-xpcom-pymod_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTI_API EXPORT_XPT_API VBOX_PYXPCOM
     1275VBox-xpcom-pymod_INCS += $(PYTHON_INCS) python/src
     1276VBox-xpcom-pymod_SOURCES = \
     1277        python/src/module/_xpcom.cpp \
     1278        python/src/dllmain.cpp \
    12741279        python/src/ErrorUtils.cpp \
    12751280        python/src/PyGBase.cpp \
     
    12921297        python/src/TypeObject.cpp \
    12931298        python/src/VariantUtils.cpp
    1294 
    1295 
    1296 # Helper for initialization of XPCOM
    1297 VBox-xpcom-helper_TEMPLATE = VBOXMAINCLIENTDLL
    1298 VBox-xpcom-helper_NAME = VBoxHlp
    1299 VBox-xpcom-helper_DEFS =
    1300 VBox-xpcom-helper_SOURCES = \
    1301         python/src/module/helper.cpp
    1302 
    1303 # Python Client Module
    1304 PY_PATH = sdk/bindings/com/python/xpcom
    1305 PY_DEST = $(PATH_BIN)/$(PY_PATH)
    1306 PY_SAMPLE = $(PATH_BIN)/sdk/bindings/com/python/sample
    1307 
    1308 VBox-xpcom-pymod_TEMPLATE = XPCOM
    1309 # sucky name, maybe rename?
    1310 VBox-xpcom-pymod_NAME = _xpcom
    1311 VBox-xpcom-pymod_INST = bin/$(PY_PATH)/
    1312 VBox-xpcom-pymod_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTI_API EXPORT_XPT_API VBOX_PYXPCOM
    1313 VBox-xpcom-pymod_INCS += /usr/include/python2.5 python/src
    1314 VBox-xpcom-pymod_SOURCES = \
    1315         python/src/module/_xpcom.cpp
    13161299VBox-xpcom-pymod_LIBS = $(TARGET_VBox-xpcom-helper)
    13171300VBox-xpcom-pymod_LDFLAGS += $(PATH_BIN)/VBoxXPCOM.so
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