VirtualBox

Changeset 21730 in vbox for trunk/src


Ignore:
Timestamp:
Jul 20, 2009 4:48:08 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50303
Message:

SDK: make documentation match reality, minor refactoring

Location:
trunk/src/VBox
Files:
4 edited

Legend:

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

    r20488 r21730  
    3939  include $(PATH_SUB_CURRENT)/win/Makefile.kmk
    4040 endif
    41  include $(PATH_SUB_CURRENT)/common/Makefile.kmk
    4241endif
     42
     43include $(PATH_SUB_CURRENT)/common/Makefile.kmk
    4344
    4445if defined(VBOX_ONLY_SDK) ## @todo || defined(VBOX_WITH_SDK)
  • trunk/src/VBox/Main/Makefile.kmk

    r21588 r21730  
    163163ifdef VBOX_WITH_PYTHON
    164164
     165# or to some subdir?
     166VBOX_PYTHON_CONSTANTS = $(PATH_TARGET)/VirtualBox_constants.py
     167
    165168INSTALLS += VBox-python-glue
    166169VBox-python-glue_INST = $(INST_SDK)installer
    167 # This file also should go to Python site-wide modules directory
    168 # so for users it look 'just being here'
    169 VBox-python-glue_SOURCES = glue/vboxapi.py=>vboxapi/__init__.py
    170 
    171 VBOX_PYTHON_CONSTANTS = $(VBOX_PATH_SDK)/installer/vboxapi/VirtualBox_constants.py
    172 OTHERS += $(VBOX_PYTHON_CONSTANTS)
     170VBox-python-glue_SOURCES = glue/vboxapi.py=>vboxapi/__init__.py  \
     171                           $(VBOX_PYTHON_CONSTANTS)=>vboxapi/VirtualBox_constants.py
     172
     173$(VBOX_PYTHON_CONSTANTS):  $(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
     174        $(call MSG_TOOL,xsltproc,Python constants,$<,$@)
     175        $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
    173176
    174177endif # VBOX_WITH_PYTHON
     
    763766        $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
    764767
    765 $(VBOX_PYTHON_CONSTANTS):  $(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
    766         $(call MSG_TOOL,xsltproc,Python constants,$<,$@)
    767         $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
    768 
    769768# Aliases for testing purposes.
    770769ifdef VBOX_WITH_XPCOM
  • trunk/src/VBox/Main/glue/vboxapi.py

    r21727 r21730  
    2525
    2626if VboxSdkDir is None:
    27     VboxSdkDir = VboxBinDir+"/sdk"
     27    VboxSdkDir = os.path.join(VboxBinDir,"sdk")
    2828
    2929os.environ["VBOX_PROGRAM_PATH"] = VboxBinDir
     
    378378class PlatformWEBSERVICE:
    379379    def __init__(self, params):
    380         sys.path.append(VboxSdkDir+'/bindings/webservice/python/lib')
     380        sys.path.append(os.path.join(VboxSdkDir,'bindings', 'webservice', 'python', 'lib'))
    381381        # not really needed, but just fail early if misconfigured
    382382        import VirtualBox_services
    383383        import VirtualBox_wrappers
    384384        from VirtualBox_wrappers import IWebsessionManager2
     385
    385386        if params is not None:
    386387            self.user = params.get("user", "")
     
    472473            else:
    473474                style = "XPCOM"
     475       
     476        exec "self.platform = Platform"+style+"(platparams)"
     477           
     478        self.constants = VirtualBoxReflectionInfo()
     479        self.type = self.platform.getType()
     480        self.remote = self.platform.getRemote()
     481        self.style = style
     482        self.mgr = SessionManager(self)
     483       
    474484        try:
    475             exec "self.platform = Platform"+style+"(platparams)"
    476            
    477             self.constants = VirtualBoxReflectionInfo()
    478             self.type = self.platform.getType()
    479             self.remote = self.platform.getRemote()
    480             self.style = style           
    481 
    482             self.mgr = SessionManager(self)
    483485            self.vbox = self.platform.getVirtualBox()
     486        except NameError,ne:
     487            print "Installation problem: check that appropriate libs in place"
     488            traceback.print_exc()
     489            raise ne
    484490        except Exception,e:
    485491            print "init exception: ",e
  • trunk/src/VBox/Main/webservice/Makefile.kmk

    r21301 r21730  
    448448        $(QUIET)$(MKDIR) -p $(@D)
    449449# Try both w/o and with --file option
    450         $(QUIET)$(REDIRECT) -C $(@D) -- $(VBOX_WSDL2PY) -b $(VBOXWEBSERVICE_WSDL) || $(VBOX_WSDL2PY) -b  --file $(VBOXWEBSERVICE_WSDL)
     450        $(QUIET)$(REDIRECT) -C $(@D) -- bash -c "$(VBOX_WSDL2PY) -b $(VBOXWEBSERVICE_WSDL) || $(VBOX_WSDL2PY) -b  --file $(VBOXWEBSERVICE_WSDL)"
    451451        $(QUIET)$(APPEND) $@ ''
    452452
     
    596596        $(QUIET)$(CP) -f $(VBOX_PATH_WEBSERVICE)/../../../../COPYING.LIB $(VBOXWEB_PATH_SDK_GLUE_JAVA)
    597597
    598 $(VBOXWEB_JAVA15_JAR): $(VBOXWEB_GLUE_JAVA_TMP) $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL)
     598$(VBOXWEB_GLUE_JAVA_TMP).done: $(VBOXWEB_GLUE_JAVA_TMP)
     599        $(QUIET)$(APPEND) $@ ''
     600
     601$(VBOXWEB_JAVA15_JAR): $(VBOXWEB_GLUE_JAVA_TMP).done $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL)
    599602        $(QUIET)$(RM) -Rf $(VBOXWEB_JAVALIB)/gen15
    600603        $(QUIET)$(MKDIR) -p $(VBOXWEB_JAVALIB)/gen15
     
    610613        $(QUIET)$(VBOX_JAR) cf $@ -C $(VBOXWEB_JAVALIB)/gen15 .
    611614
    612 $(VBOXWEB_JAVA16_JAR): $(VBOXWEB_GLUE_JAVA_TMP) $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL)
     615$(VBOXWEB_JAVA16_JAR): $(VBOXWEB_GLUE_JAVA_TMP).done $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL)
    613616        $(QUIET)$(RM) -Rf $(VBOXWEB_JAVALIB)/gen16
    614617        $(MKDIR) -p $(VBOXWEB_JAVALIB)/gen16
Note: See TracChangeset for help on using the changeset viewer.

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