Changeset 31649 in vbox for trunk/src/VBox
- Timestamp:
- Aug 13, 2010 1:18:04 PM (14 years ago)
- Location:
- trunk/src/VBox/Main/webservice
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/Makefile.kmk
r31632 r31649 39 39 # This WSDL file ends up in $(VBOXWEB_OUT_DIR)/vboxweb.wsdl. 40 40 # 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. 43 44 # This file looks like a C header file, but really isn't meant 44 45 # to be included by a C compiler. Instead, it just happens to be the … … 62 63 # code generation via XSLT comes in: 63 64 # 64 # 4) We use xsltproc to generate tons of c++ code directly from the XIDL that65 # 4) We use xsltproc to generate tons of C++ code directly from the XIDL that 65 66 # maps each SOAP method to our COM methods. This large C++ file is 66 67 # $(VBOXWEB_OUT_DIR)/methodmaps.cpp. The actual webservice executable (vboxwebsrv, … … 146 147 147 148 # If this is set, all webservice files are considered out-of-date every time 148 # this make 149 # this makefile is touched. Otherwise, set this to empty. 149 150 RECOMPILE_ON_MAKEFILE_CURRENT := $(MAKEFILE_CURRENT) 150 151 … … 154 155 PATH_TARGET_WEBTEST := $(VBOXWEB_OUT_DIR)/webtest 155 156 157 # platform-specific XIDL file generated from $(VBOXWEB_IDL_SRC): 156 158 VBOXWEB_IDL_SRC_ORIG := $(VBOX_XIDL_FILE) 159 # the original XIDL file: 157 160 VBOXWEB_IDL_SRC := $(VBOXWEB_OUT_DIR)/VirtualBox.xidl 161 158 162 VBOXWEB_WSDL = $(VBOX_PATH_SDK)/bindings/webservice/vboxweb.wsdl 159 163 VBOXWEBSERVICE_WSDL = $(VBOX_PATH_SDK)/bindings/webservice/vboxwebService.wsdl … … 407 411 ifdef VBOX_ONLY_SDK 408 412 # 409 # Global relevant to the SDK.413 # Globals relevant to the SDK. 410 414 # 411 415 VBOXWEB_GLUE_PYTHON = $(VBOX_PATH_SDK)/bindings/webservice/python/lib/VirtualBox_wrappers.py … … 500 504 $(VBOXWEB_IDL_SRC) 501 505 502 503 506 # generate platform-specific XIDL file from original XIDL file 504 507 $(VBOXWEB_IDL_SRC): $(VBOXWEB_IDL_SRC_ORIG) $(VBOX_PATH_WEBSERVICE)/platform-xidl.xsl | $$(dir $$@) … … 553 556 554 557 # 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 $<558 558 $(VBOXWEB_GSOAPH_FROM_XSLT): $(VBOXWEB_WSDL) $(VBOX_PATH_WEBSERVICE)/websrv-wsdl2gsoapH.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@) 559 559 $(call MSG_GENERATE,,$@,$(VBOXWEB_WSDL) using websrv-wsdl2gsoapH.xsl) … … 565 565 $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-nsmap.xsl) 566 566 $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-nsmap.xsl $< 567 568 569 567 570 568 ifdef VBOX_GSOAP_INSTALLED … … 574 572 $(VBOX_WSDL2H) $(VBOXWEB_WSDL_VERBOSE) -t$(VBOXWEB_TYPEMAP) -nvbox -o $@ $< 575 573 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 576 577 GSOAPH_RELEVANT = $(VBOXWEB_GSOAPH_FROM_XSLT) 577 578 … … 592 593 $(call MSG_GENERATE,,lots of files,$(GSOAPH_RELEVANT)) 593 594 $(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) 595 596 $(APPEND) $@ done 596 597
Note:
See TracChangeset
for help on using the changeset viewer.