52 lines
871 B
Batchfile
52 lines
871 B
Batchfile
@echo on
|
|
|
|
setlocal
|
|
|
|
REM **********
|
|
REM Paths
|
|
REM **********
|
|
set CWD=%CD%
|
|
set GSOAP_PATH=%CWD%\..\..\ThirdParty\gsoap
|
|
set WSDL_PATH=%CWD%\Include\WSDLs
|
|
set GSOAP_TMP=%CWD%\gSoapGeneratedFiles
|
|
|
|
REM **********
|
|
REM Files
|
|
REM **********
|
|
set WSDL="%GSOAP_PATH%\wsdl2h.exe"
|
|
set SOAPCPP2="%GSOAP_PATH%\soapcpp2.exe"
|
|
set WSDL_INP=WsmanGeneral.wsdl
|
|
set INTERFACE_TMP=SoapInterfaceTmp.h
|
|
|
|
|
|
set WSDL_OUT="%GSOAP_TMP%\%INTERFACE_TMP%"
|
|
|
|
set WSMAN_NAMESPACE=WSMAN_GSOAP
|
|
|
|
set DAT_FILE="%WSDL_PATH%\WsCommon.dat"
|
|
|
|
echo hi1
|
|
|
|
REM **********
|
|
REM Flags
|
|
REM **********
|
|
set SOAPCPP2_FLAGS=-2 -x -C -L
|
|
set WSDL_FLAGS=-e -y -d
|
|
|
|
|
|
mkdir "%GSOAP_TMP%"
|
|
chdir "%WSDL_PATH%"
|
|
|
|
%WSDL% %WSDL_FLAGS% -t %DAT_FILE% -o %WSDL_OUT% %WSDL_INP% 2>buildLog.txt
|
|
|
|
%SOAPCPP2% %SOAPCPP2_FLAGS% -I "%GSOAP_PATH%" -pWSMAN_GSOAP -d "%GSOAP_TMP%" %WSDL_OUT% 2>buildLog.txt
|
|
|
|
echo hi2
|
|
|
|
chdir %CWD%
|
|
|
|
endlocal
|
|
|
|
REM @echo ON
|
|
|