VirtualBox

Changeset 31649 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 13, 2010 1:18:04 PM (14 years ago)
Author:
vboxsync
Message:

webservice: remove obsolete file, add comments

Location:
trunk/src/VBox/Main/webservice
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/Makefile.kmk

    r31632 r31649  
    3939#    This WSDL file ends up in $(VBOXWEB_OUT_DIR)/vboxweb.wsdl.
    4040#
    41 # 2) We use xsltproc and websrv-gsoapH.xsl to generate a so-called
    42 #    "gSoap header file": $(VBOXWEB_OUT_DIR)/gsoapH_from_xslt.h.
     41# 2) We use xsltproc and websrv-wsdl2gsoapH.xsl to generate a so-called
     42#    "gSoap header file": $(VBOXWEB_OUT_DIR)/gsoapH_from_xslt.h from
     43#    the WSDL previously generated.
    4344#    This file looks like a C header file, but really isn't meant
    4445#    to be included by a C compiler. Instead, it just happens to be the
     
    6263#    code generation via XSLT comes in:
    6364#
    64 # 4) We use xsltproc to generate tons of c++ code directly from the XIDL that
     65# 4) We use xsltproc to generate tons of C++ code directly from the XIDL that
    6566#    maps each SOAP method to our COM methods. This large C++ file is
    6667#    $(VBOXWEB_OUT_DIR)/methodmaps.cpp. The actual webservice executable (vboxwebsrv,
     
    146147
    147148# If this is set, all webservice files are considered out-of-date every time
    148 # this make file is touched. Otherwise, set this to empty.
     149# this makefile is touched. Otherwise, set this to empty.
    149150RECOMPILE_ON_MAKEFILE_CURRENT := $(MAKEFILE_CURRENT)
    150151
     
    154155PATH_TARGET_WEBTEST           := $(VBOXWEB_OUT_DIR)/webtest
    155156
     157# platform-specific XIDL file generated from $(VBOXWEB_IDL_SRC):
    156158VBOXWEB_IDL_SRC_ORIG          := $(VBOX_XIDL_FILE)
     159# the original XIDL file:
    157160VBOXWEB_IDL_SRC               := $(VBOXWEB_OUT_DIR)/VirtualBox.xidl
     161
    158162VBOXWEB_WSDL                   = $(VBOX_PATH_SDK)/bindings/webservice/vboxweb.wsdl
    159163VBOXWEBSERVICE_WSDL            = $(VBOX_PATH_SDK)/bindings/webservice/vboxwebService.wsdl
     
    407411ifdef VBOX_ONLY_SDK
    408412 #
    409  # Global relevant to the SDK.
     413 # Globals relevant to the SDK.
    410414 #
    411415 VBOXWEB_GLUE_PYTHON           = $(VBOX_PATH_SDK)/bindings/webservice/python/lib/VirtualBox_wrappers.py
     
    500504        $(VBOXWEB_IDL_SRC)
    501505
    502 
    503506# generate platform-specific XIDL file from original XIDL file
    504507$(VBOXWEB_IDL_SRC): $(VBOXWEB_IDL_SRC_ORIG) $(VBOX_PATH_WEBSERVICE)/platform-xidl.xsl | $$(dir $$@)
     
    553556
    554557# generate gsoap pseudo-C header file from that WSDL; once via XSLT...
    555 # $(VBOXWEB_GSOAPH_FROM_XSLT): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-gsoapH.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
    556 #       $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-gsoapH.xsl)
    557 #       $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-gsoapH.xsl $<
    558558$(VBOXWEB_GSOAPH_FROM_XSLT): $(VBOXWEB_WSDL) $(VBOX_PATH_WEBSERVICE)/websrv-wsdl2gsoapH.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
    559559        $(call MSG_GENERATE,,$@,$(VBOXWEB_WSDL) using websrv-wsdl2gsoapH.xsl)
     
    565565        $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-nsmap.xsl)
    566566        $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-nsmap.xsl $<
    567 
    568 
    569567
    570568ifdef VBOX_GSOAP_INSTALLED
     
    574572        $(VBOX_WSDL2H) $(VBOXWEB_WSDL_VERBOSE) -t$(VBOXWEB_TYPEMAP) -nvbox -o $@ $<
    575573
     574# this sets the gsoap header that we use for further compilation; if stuff works, then the
     575# one we generate via XSLT produces the same end result as the one from the gSOAP tool;
     576# with this variable we can swap for testing, but shipped code must use VBOXWEB_GSOAPH_FROM_XSLT
    576577GSOAPH_RELEVANT = $(VBOXWEB_GSOAPH_FROM_XSLT)
    577578
     
    592593        $(call MSG_GENERATE,,lots of files,$(GSOAPH_RELEVANT))
    593594        $(RM) -f $@
    594         $(REDIRECT) -C $(VBOXWEB_OUT_DIR) -- $(VBOX_SOAPCPP2) $(VBOXWEB_SOAPCPP2_SKIP_FILES) -L -w -I$(VBOX_PATH_GSOAP_IMPORT) $(GSOAPH_RELEVANT)
     595        $(REDIRECT) -C $(VBOXWEB_OUT_DIR) -- $(VBOX_SOAPCPP2) $(VBOXWEB_SOAPCPP2_SKIP_FILES) -L -2 -w -I$(VBOX_PATH_GSOAP_IMPORT) $(GSOAPH_RELEVANT)
    595596        $(APPEND) $@ done
    596597
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