VirtualBox

Changeset 11468 in vbox for trunk/src/libs


Ignore:
Timestamp:
Aug 18, 2008 4:59:10 PM (16 years ago)
Author:
vboxsync
Message:
  • first working XPCOM binding version
  • implemented check for VBOX_PROGRAM_PATH to override program path
File:
1 edited

Legend:

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

    r11443 r11468  
    3232XPCOM_PYTHON = VBox-xpcom-python
    3333# bridge for Python to invoke XPCOM
    34 XPCOM_PYMOD = VBox-xpcom-pymod
     34XPCOM_PYMOD = VBox-xpcom-pymod VBox-xpcom-helper
     35# bridge between PYMOD and VirtualBox, to minimize mods
     36XPCOM_VBOX_HELPER=VBox-xpcom-helper
    3537PYTHON_LIBS  = python2.5
    3638endif
     
    12891291
    12901292
     1293# Helper for initialization of XPCOM
     1294VBox-xpcom-helper_TEMPLATE = VBOXMAINCLIENTDLL
     1295VBox-xpcom-helper_NAME = VBoxHlp
     1296VBox-xpcom-helper_DEFS =
     1297VBox-xpcom-helper_SOURCES =  \
     1298       python/src/module/helper.cpp
     1299
    12911300# Python Client Module
    1292 PY_DEST=$(VBOX_PATH_SDK)/bindings/com/python/xpcom
    1293 
     1301PY_PATH=sdk/bindings/com/python/xpcom
     1302PY_DEST=$(PATH_BIN)/$(PY_PATH)
     1303PY_SAMPLE=$(PATH_BIN)/sdk/bindings/com/python/sample
    12941304
    12951305VBox-xpcom-pymod_TEMPLATE = XPCOM
    12961306# sucky name, maybe rename?
    12971307VBox-xpcom-pymod_NAME = _xpcom
     1308VBox-xpcom-pymod_INST = bin/$(PY_PATH)/
    12981309VBox-xpcom-pymod_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTI_API EXPORT_XPT_API VBOX_PYXPCOM
    12991310VBox-xpcom-pymod_INCS += /usr/include/python2.5 python/src
    13001311VBox-xpcom-pymod_SOURCES =                              \
    1301         python/src/module/_xpcom.cpp               
     1312        python/src/module/_xpcom.cpp             
     1313VBox-xpcom-pymod_LIBS = $(TARGET_VBox-xpcom-helper)
    13021314VBox-xpcom-pymod_LDFLAGS += $(PATH_BIN)/VBoxXPCOM.so
    13031315VBox-xpcom-pymod_DEPS =                 \
     
    13151327        $(PY_DEST)/server/loader.py     \
    13161328        $(PY_DEST)/server/module.py     \
    1317         $(PY_DEST)/server/policy.py     
     1329        $(PY_DEST)/server/policy.py     \
     1330        $(PY_SAMPLE)/vbox.py            \
     1331        $(TARGET_VBox-xpcom-helper)
    13181332
    13191333$(PY_DEST):
    13201334        $(QUIET)$(MKDIR) -p $@
    1321         $(QUIET)$(MKDIR) $@/client
    1322         $(QUIET)$(MKDIR) $@/server
     1335        $(QUIET)$(MKDIR) -p $(PY_SAMPLE)
     1336        $(QUIET)$(MKDIR) -p $@/client
     1337        $(QUIET)$(MKDIR) -p $@/server
    13231338
    13241339$(PY_DEST)/%.py: $(PATH_SUB_CURRENT)/python/%.py $(PY_DEST)
     1340        $(QUIET)$(CP) $< $@
     1341$(PY_SAMPLE)/%.py: $(PATH_SUB_CURRENT)/python/sample%.py $(PY_DEST)
    13251342        $(QUIET)$(CP) $< $@
    13261343
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