@cd "%~dp0"
@cd ..\..\
@for %%I in ("%cd%") do @set mesa=%%~sI
@set mesa=%mesa%\
@where /q cmake.exe
@IF ERRORLEVEL 1 set PATH=%mesa%cmake\bin\;%PATH%
@set ERRORLEVEL=0
@where /q python.exe
@IF ERRORLEVEL 1 set PATH=%mesa%Python\;%mesa%Python\Scripts\;%PATH%
@set ERRORLEVEL=0
@python -m pip install -U mako
@python -m pip freeze > requirements.txt
@python -m pip install -r requirements.txt --upgrade
@del requirements.txt
@echo.
@set abi=x86
@set /p x64=Do you want to build for x64? (y/n) Otherwise build for x86:
@if /I "%x64%"=="y" set abi=x64
@set longabi=%abi%
@if %abi%==x64 set longabi=x86_64
@set altabi=i686
@if %abi%==x64 set altabi=%longabi%
@set minabi=32
@if %abi%==x64 set minabi=64
@set vsenv="%ProgramFiles%
@if NOT "%ProgramW6432%"=="" set vsenv=%vsenv% (x86)
@set vsenv15=%vsenv%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars%minabi%.bat"
@set vsenv14="%VS140COMNTOOLS%..\..\VC\bin\vcvars%minabi%.bat"
@set gcc=%mesa%mingw-w64\%abi%\mingw%minabi%\bin
@set vsenvloaded=0
@set dxtnbuilt=0
@set toolset=14
@if EXIST %vsenv15% set toolset=15
@if EXIST toolset-%abi%.ini set /p toolset=<toolset-%abi%.ini
@set vsenv=%vsenv14%
@if %toolset%==15 set vsenv=%vsenv15%
@set PATH=%mesa%flexbison\;%PATH%

:build_llvm
@set /p buildllvm=Begin LLVM build. Only needs to run once for each ABI and version. Proceed (y/n):
@if /I NOT "%buildllvm%"=="y" GOTO build_dxtn
@echo.
@cd %mesa%llvm
@if EXIST %abi% RD /S /Q %abi%
@if EXIST cmake-%abi% RD /S /Q cmake-%abi%
@md cmake-%abi%
@cd cmake-%abi%
@set toolchain=Visual Studio 14
@set toolset=14
@if EXIST %vsenv15% set toolchain=Visual Studio 15 2017
@if EXIST %vsenv15% set toolset=15
@set ninja=n
@set oldtoolset=n
@if EXIST %mesa%ninja set ninja=1
@if EXIST %vsenv15% set ninja=%ninja%2
@if %ninja%==12 set /p oldtoolset=Build with MSVC 2015 backward compatibility toolset, alternative solution for LLVM 3.9.1 build with Visual Studio 2017 (y/n):
@if %ninja%==12 echo.
@if /I "%oldtoolset%"=="y" set ninja=y
@if /I "%oldtoolset%"=="y" set toolset=14
@if %ninja%==12 set ninja=2
@if %ninja%==1 set ninja=2
@if %ninja%==2 set /p ninja=Use Ninja build system instead of MsBuild, there is no requirement to do this with the primary toolset though (y/n):
@echo.
@if /I "%ninja%"=="y" set toolchain=Ninja
@if "%toolchain%"=="Ninja" set PATH=%mesa%ninja\;%PATH%
@set vsenv=%vsenv14%
@if %toolset%==15 set vsenv=%vsenv15%
@set llvmbuildsys=%CD%
@call %vsenv%
@set vsenvloaded=1
@echo.
@set modtoolchainabi=0
@if NOT "%toolchain%"=="Ninja" set modtoolchainabi=1
@if %abi%==x64 set modtoolchainabi=%modtoolchainabi%2
@if %modtoolchainabi%==12 set toolchain=%toolchain% Win64
@cd %llvmbuildsys%
@cmake -G "%toolchain%" -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_CRT_RELEASE=MT -DLLVM_ENABLE_RTTI=1 -DLLVM_ENABLE_TERMINFO=OFF -DCMAKE_INSTALL_PREFIX=../%abi% ..
@echo.
@pause
@echo.
@if NOT "%toolchain%"=="Ninja" cmake --build . --config Release --target install
@if "%toolchain%"=="Ninja" ninja install
@echo.
@echo %toolset% > %mesa%toolset-%abi%.ini

:build_dxtn
@if NOT EXIST %gcc% GOTO build_mesa
@if NOT EXIST %mesa%dxtn GOTO build_mesa
@set /p builddxtn=Do you want to build S3 texture compression library? (y/n):
@if /i NOT "%builddxtn%"=="y" GOTO build_mesa
@set PATH=%gcc%\;%PATH%
@cd %mesa%dxtn
@echo.
@if EXIST %abi% RD /S /Q %abi%
@MD %abi%
@set dxtn=gcc -shared -m%minabi% -v *.c *.h -I ..\mesa\include -Wl,--dll,--dynamicbase,--enable-auto-image-base,--nxcompat -o %abi%\dxtn.dll
@%dxtn%
@echo.
@set dxtnbuilt=1

:build_mesa
@set /p buildmesa=Begin mesa build. Proceed (y/n):
@if /i NOT "%buildmesa%"=="y" GOTO distcreate
@echo.
@set LLVM=%mesa%llvm\%abi%
@if NOT EXIST %LLVM% (
@echo Could not find LLVM, aborting mesa build.
@echo.
@pause
@GOTO exit
)
@cd %mesa%mesa
@set openswr=n
@set sconscmd=python %mesa%Python\Scripts\scons.py build=release platform=windows machine=%longabi% libgl-gdi
@set /p openswr=Do you want to build OpenSWR drivers? (y=yes):
@echo.
@if /I "%openswr%"=="y" set sconscmd=%sconscmd% swr=1
@set /p osmesa=Do you want to build off-screen rendering drivers (y/n):
@echo.
@if /I "%osmesa%"=="y" set sconscmd=%sconscmd% osmesa
@set /p graw=Do you want to build graw library (y/n):
@echo.
@if /I "%graw%"=="y" set sconscmd=%sconscmd% graw-gdi
@GOTO build_with_vs

:build_with_mingw
@set mingw=n
@set mingwtest=0
@if EXIST %gcc% set mingwtest=1
@set msys2=%mesa%msys64\msys2_shell.cmd
@if EXIST %msys2% set mingwtest=%mingwtest%2
@if %mingwtest%==12 set /p mingw=Do you want to build with MinGW-W64 instead of Visual Studio (y=yes):
@if %dxtnbuilt%==0 set PATH=%gcc%\;%PATH%
@if /I "%mingw%"=="y" set sconscmd=%sconscmd% toolchain=crossmingw
@if /I "%mingw%"=="y" copy %gcc%\%altabi%-w64-mingw32-gcc-ar.exe %gcc%\%altabi%-w64-mingw32-ar.exe
@if /I "%mingw%"=="y" copy %gcc%\%altabi%-w64-mingw32-gcc-ranlib.exe %gcc%\%altabi%-w64-mingw32-ranlib.exe
@if /I "%mingw%"=="y" call "%msys2%" -use-full-path
@if /I "%mingw%"=="y" (
pacman -Syu
pacman -S python2
wget https://bootstrap.pypa.io/get-pip.py
python2 get-pip.py
pip install -U mako
pip install -U scons
pip freeze > requirements.txt
pip install -r requirements.txt --upgrade
cd $mesa
cd mesa
GOTO build_mesa_exec
)

:build_with_vs
@set cleanbuild=n
@if EXIST build\windows-%longabi% set /p cleanbuild=Do you want to clean build (y/n):
@if EXIST build\windows-%longabi% echo.
@if /I "%cleanbuild%"=="y" RD /S /Q build\windows-%longabi%
@if %vsenvloaded%==0 (
@call %vsenv%
@cd %mesa%mesa
@echo.
)

:build_mesa_exec
@%sconscmd%
@echo.

:distcreate
@set /p dist=Create or update Mesa3D distribution package (y/n):
@echo.
@if /I NOT "%dist%"=="y" GOTO exit
@cd %mesa%
@if NOT EXIST mesa-dist-win MD mesa-dist-win
@cd mesa-dist-win
@if NOT EXIST bin MD bin
@cd bin
@if EXIST %abi% RD /S /Q %abi%
@MD %abi%
@cd %abi%
@copy %mesa%mesa\build\windows-%longabi%\gallium\targets\libgl-gdi\opengl32.dll opengl32.dll
@copy %mesa%mesa\build\windows-%longabi%\gallium\drivers\swr\swrAVX.dll swrAVX.dll
@copy %mesa%mesa\build\windows-%longabi%\gallium\drivers\swr\swrAVX2.dll swrAVX2.dll
@copy %mesa%mesa\build\windows-%longabi%\mesa\drivers\osmesa\osmesa.dll osmesa-swrast.dll
@copy %mesa%mesa\build\windows-%longabi%\gallium\targets\osmesa\osmesa.dll osmesa-gallium.dll
@copy %mesa%mesa\build\windows-%longabi%\gallium\targets\graw-gdi\graw.dll graw.dll
@copy %mesa%dxtn\%abi%\dxtn.dll dxtn.dll
@echo.
@pause

:exit
exit

@cd "%~dp0"
@cd ..\..\
@for %%I in ("%cd%") do @set mesa=%%~sI
@set mesa=%mesa%\
@where /q cmake.exe
@IF ERRORLEVEL 1 set PATH=%mesa%cmake\bin\;%PATH%
@set ERRORLEVEL=0
@where /q python.exe
@IF ERRORLEVEL 1 set PATH=%mesa%Python\;%mesa%Python\Scripts\;%PATH%
@set ERRORLEVEL=0
@set pyupd=y
@set pyfrstupd=1
@if EXIST pyupd.ini set /p pyfrstupd=<pyupd.ini
@if %pyfrstupd%==0 set /p pyupd=Install/update python modules (y/n):
@if "%pyupd%"=="y" (
@python -m pip install -U mako
@python -m pip freeze > requirements.txt
@python -m pip install -r requirements.txt --upgrade
@del requirements.txt
@echo.
@echo 0 > pyupd.ini
)
@set abi=x86
@set /p x64=Do you want to build for x64? (y/n) Otherwise build for x86:
@if /I "%x64%"=="y" set abi=x64
@set longabi=%abi%
@if %abi%==x64 set longabi=x86_64
@set altabi=i686
@if %abi%==x64 set altabi=%longabi%
@set minabi=32
@if %abi%==x64 set minabi=64
@set vsenv="%ProgramFiles%
@if NOT "%ProgramW6432%"=="" set vsenv=%vsenv% (x86)
@set vsenv15=%vsenv%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars%minabi%.bat"
@set vsenv14="%VS140COMNTOOLS%..\..\VC\bin\vcvars%minabi%.bat"
@set gcc=%mesa%mingw-w64\%abi%\mingw%minabi%\bin
@set vsenvloaded=0
@set dxtnbuilt=0
@set toolset=14
@if EXIST %vsenv15% set toolset=15
@if EXIST toolset-%abi%.ini set /p toolset=<toolset-%abi%.ini
@set vsenv=%vsenv14%
@if %toolset%==15 set vsenv=%vsenv15%
@set PATH=%mesa%flexbison\;%PATH%

:build_llvm
@set /p buildllvm=Begin LLVM build. Only needs to run once for each ABI and version. Proceed (y/n):
@if /I NOT "%buildllvm%"=="y" GOTO build_dxtn
@echo.
@cd %mesa%llvm
@if EXIST %abi% RD /S /Q %abi%
@if EXIST cmake-%abi% RD /S /Q cmake-%abi%
@md cmake-%abi%
@cd cmake-%abi%
@set toolchain=Visual Studio 14
@set toolset=14
@if EXIST %vsenv15% set toolchain=Visual Studio 15 2017
@if EXIST %vsenv15% set toolset=15
@set ninja=n
@set oldtoolset=n
@if EXIST %mesa%ninja set ninja=1
@if EXIST %vsenv15% set ninja=%ninja%2
@if %ninja%==12 set /p oldtoolset=Build with MSVC 2015 backward compatibility toolset, alternative solution for LLVM 3.9.1 build with Visual Studio 2017 (y/n):
@if %ninja%==12 echo.
@if /I "%oldtoolset%"=="y" set ninja=y
@if /I "%oldtoolset%"=="y" set toolset=14
@if %ninja%==12 set ninja=2
@if %ninja%==1 set ninja=2
@if %ninja%==2 set /p ninja=Use Ninja build system instead of MsBuild, there is no requirement to do this with the primary toolset though (y/n):
@echo.
@if /I "%ninja%"=="y" set toolchain=Ninja
@if "%toolchain%"=="Ninja" set PATH=%mesa%ninja\;%PATH%
@set vsenv=%vsenv14%
@if %toolset%==15 set vsenv=%vsenv15%
@set llvmbuildsys=%CD%
@call %vsenv%
@set vsenvloaded=1
@echo.
@set modtoolchainabi=0
@if NOT "%toolchain%"=="Ninja" set modtoolchainabi=1
@if %abi%==x64 set modtoolchainabi=%modtoolchainabi%2
@if %modtoolchainabi%==12 set toolchain=%toolchain% Win64
@cd %llvmbuildsys%
@cmake -G "%toolchain%" -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_CRT_RELEASE=MT -DLLVM_ENABLE_RTTI=1 -DLLVM_ENABLE_TERMINFO=OFF -DCMAKE_INSTALL_PREFIX=../%abi% ..
@echo.
@pause
@echo.
@if NOT "%toolchain%"=="Ninja" cmake --build . --config Release --target install
@if "%toolchain%"=="Ninja" ninja install
@echo.
@echo %toolset% > %mesa%toolset-%abi%.ini

:build_dxtn
@if NOT EXIST %gcc% GOTO build_mesa
@if NOT EXIST %mesa%dxtn GOTO build_mesa
@set /p builddxtn=Do you want to build S3 texture compression library? (y/n):
@if /i NOT "%builddxtn%"=="y" GOTO build_mesa
@set PATH=%gcc%\;%PATH%
@cd %mesa%dxtn
@echo.
@if EXIST %abi% RD /S /Q %abi%
@MD %abi%
@set dxtn=gcc -shared -m%minabi% -v *.c *.h -I ..\mesa\include -Wl,--dll,--dynamicbase,--enable-auto-image-base,--nxcompat -o %abi%\dxtn.dll
@%dxtn%
@echo.
@set dxtnbuilt=1

:build_mesa
@set /p buildmesa=Begin mesa build. Proceed (y/n):
@if /i NOT "%buildmesa%"=="y" GOTO distcreate
@echo.
@set LLVM=%mesa%llvm\%abi%
@if NOT EXIST %LLVM% (
@echo Could not find LLVM, aborting mesa build.
@echo.
@pause
@GOTO exit
)
@cd %mesa%mesa
@set openswr=n
@set sconscmd=python %mesa%Python\Scripts\scons.py build=release platform=windows machine=%longabi% libgl-gdi
@set /p openswr=Do you want to build OpenSWR drivers? (y=yes):
@echo.
@if /I "%openswr%"=="y" set sconscmd=%sconscmd% swr=1
@set /p osmesa=Do you want to build off-screen rendering drivers (y/n):
@echo.
@if /I "%osmesa%"=="y" set sconscmd=%sconscmd% osmesa
@set /p graw=Do you want to build graw library (y/n):
@echo.
@if /I "%graw%"=="y" set sconscmd=%sconscmd% graw-gdi
@GOTO build_with_vs

:build_with_mingw
@set mingw=n
@set mingwtest=0
@if EXIST %gcc% set mingwtest=1
@set msys2=%mesa%msys64\msys2_shell.cmd
@if EXIST %msys2% set mingwtest=%mingwtest%2
@if %mingwtest%==12 set /p mingw=Do you want to build with MinGW-W64 instead of Visual Studio (y=yes):
@if %dxtnbuilt%==0 set PATH=%gcc%\;%PATH%
@if /I "%mingw%"=="y" set sconscmd=%sconscmd% toolchain=crossmingw
@if /I "%mingw%"=="y" copy %gcc%\%altabi%-w64-mingw32-gcc-ar.exe %gcc%\%altabi%-w64-mingw32-ar.exe
@if /I "%mingw%"=="y" copy %gcc%\%altabi%-w64-mingw32-gcc-ranlib.exe %gcc%\%altabi%-w64-mingw32-ranlib.exe
@if /I "%mingw%"=="y" call "%msys2%" -use-full-path
@if /I "%mingw%"=="y" (
pacman -Syu
pacman -S python2
wget https://bootstrap.pypa.io/get-pip.py
python2 get-pip.py
pip install -U mako
pip install -U scons
pip freeze > requirements.txt
pip install -r requirements.txt --upgrade
cd $mesa
cd mesa
GOTO build_mesa_exec
)

:build_with_vs
@set cleanbuild=n
@if EXIST build\windows-%longabi% set /p cleanbuild=Do you want to clean build (y/n):
@if EXIST build\windows-%longabi% echo.
@if /I "%cleanbuild%"=="y" RD /S /Q build\windows-%longabi%
@if %vsenvloaded%==0 (
@call %vsenv%
@cd %mesa%mesa
@echo.
)

:build_mesa_exec
@%sconscmd%
@echo.

:distcreate
@set /p dist=Create or update Mesa3D distribution package (y/n):
@echo.
@if /I NOT "%dist%"=="y" GOTO exit
@cd %mesa%
@if NOT EXIST mesa-dist-win MD mesa-dist-win
@cd mesa-dist-win
@if NOT EXIST bin MD bin
@cd bin
@if EXIST %abi% RD /S /Q %abi%
@MD %abi%
@cd %abi%
@copy %mesa%mesa\build\windows-%longabi%\gallium\targets\libgl-gdi\opengl32.dll opengl32.dll
@copy %mesa%mesa\build\windows-%longabi%\gallium\drivers\swr\swrAVX.dll swrAVX.dll
@copy %mesa%mesa\build\windows-%longabi%\gallium\drivers\swr\swrAVX2.dll swrAVX2.dll
@copy %mesa%mesa\build\windows-%longabi%\mesa\drivers\osmesa\osmesa.dll osmesa-swrast.dll
@copy %mesa%mesa\build\windows-%longabi%\gallium\targets\osmesa\osmesa.dll osmesa-gallium.dll
@copy %mesa%mesa\build\windows-%longabi%\gallium\targets\graw-gdi\graw.dll graw.dll
@copy %mesa%dxtn\%abi%\dxtn.dll dxtn.dll
@echo.
@pause

:exit
exit

Build script startup performance enhancement When build environment has no Internet connection the build script wastes a few minutes by futilely checking python modules for updates. Regression from 7626fdb. Now the script checks for updates on first run and asks the user to approve update checks on subsequent runs.


jruby generate-sample-midi-stream.rb
gcc make-sample-wav-file.cc -o a.exe
a.exe

jruby generate-sample-midi-stream.rb
g++ make-sample-wav-file.cc -o a.exe
a.exe

Use g++

Use g++


@echo off

if "%1" == "build" goto build
if "%1" == "tar" goto zip
if "%1" == "zip" goto zip

goto eof

:build
echo ===============
echo Package name: %npm_package_name%
echo Electron version: %npm_package_electronVersion%
echo App version: %npm_package_version%
echo Product name: %npm_package_productName%
echo ===============

electron-packager ./ %npm_package_name% --platform=win32,linux,darwin --arch=x64 --electron-version=%npm_package_electronVersion% --no-tmpdir --out=../build --app-version="%npm_package_version%" --version-string.FileDescription="%npm_package_productName%" --version-string.ProductName="%npm_package_productName%" --icon=favicon.ico --overwrite

goto eof

:zip
set ZIP_NAME=%~2
set BUILD_NAME=%npm_package_name%-%ZIP_NAME%-x64
set "BUILD_DIR=..\build\"
set "BUILD_PATH=%BUILD_DIR%%BUILD_NAME%"

echo ===============
echo Zip name: %ZIP_NAME%
echo Zip type: %1
echo Build name: %BUILD_NAME%
echo Build path: %BUILD_PATH%
echo ===============

mkdir %BUILD_DIR% >nul 2>&1
cd %BUILD_PATH%

echo Zip process started

if "%1" == "tar" (
  del "..\%BUILD_NAME%.tgz" >nul 2>&1
  7za a -ttar -so -snl "..\%BUILD_NAME%.tar" . | 7za a -si "..\%BUILD_NAME%.tgz" | find /I "ing"
) else (
  del "..\%BUILD_NAME%.zip" >nul 2>&1
  7za a -tzip "..\%BUILD_NAME%.zip" . | find /I "ing"
)

echo Zip process finished
echo ===============

goto eof

:eof

@echo off

if "%1" == "build" goto build
if "%1" == "tar" goto zip
if "%1" == "zip" goto zip

goto eof

:build
echo ===============
echo Package name: %npm_package_name%
echo Electron version: %npm_package_electronVersion%
echo App version: %npm_package_version%
echo Product name: %npm_package_productName%
echo ===============

electron-packager ./ %npm_package_name% --platform=win32,linux,darwin --arch=x64 --electron-version=%npm_package_electronVersion% --no-tmpdir --out=../build --app-version="%npm_package_version%" --version-string.FileDescription="%npm_package_productName%" --version-string.ProductName="%npm_package_productName%" --icon=favicon.ico --overwrite

goto eof

:zip
set ZIP_NAME=%~2
set BUILD_NAME=%npm_package_name%-%ZIP_NAME%-x64
set "BUILD_DIR=..\build\"
set "BUILD_PATH=%BUILD_DIR%%BUILD_NAME%"

echo ===============
echo Zip name: %ZIP_NAME%
echo Zip type: %1
echo Build name: %BUILD_NAME%
echo Build path: %BUILD_PATH%
echo ===============

mkdir %BUILD_DIR% >nul 2>&1
cd %BUILD_PATH%

echo Zip process started

if "%1" == "tar" (
  del "%BUILD_DIR%%BUILD_NAME%.tgz" >nul 2>&1
  7za a -ttar -so -snl "%BUILD_DIR%%BUILD_NAME%.tar" . | 7za a -si "%BUILD_DIR%%BUILD_NAME%.tgz" | find /I "ing"
) else (
  del "%BUILD_DIR%%BUILD_NAME%.zip" >nul 2>&1
  7za a -tzip "%BUILD_DIR%%BUILD_NAME%.zip" . | find /I "ing"
)

echo Zip process finished
echo ===============

goto eof

:eof

Build outside source folder

Build outside source folder


@echo off

:: Make sure this is a decent name and not generic
set exe_name=odin.exe

:: Debug = 0, Release = 1
set release_mode=0
set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -GS- -EHsc- -GR-

if %release_mode% EQU 0 ( rem Debug
	set compiler_flags=%compiler_flags% -Od -MDd -Z7
	rem -DDISPLAY_TIMING
) else ( rem Release
	set compiler_flags=%compiler_flags% -O2 -MT -Z7 -DNO_ARRAY_BOUNDS_CHECK
)

set compiler_warnings= ^
	-W4 -WX ^
	-wd4100 -wd4101 -wd4127 -wd4189 ^
	-wd4201 -wd4204 ^
	-wd4456 -wd4457 -wd4480 ^
	-wd4512

set compiler_includes=
set libs= ^
	kernel32.lib

set linker_flags= -incremental:no -opt:ref -subsystem:console

if %release_mode% EQU 0 ( rem Debug
	set linker_flags=%linker_flags% -debug
) else ( rem Release
	set linker_flags=%linker_flags% -debug
)

set compiler_settings=%compiler_includes% %compiler_flags% %compiler_warnings%
set linker_settings=%libs% %linker_flags%

del *.pdb > NUL 2> NUL
del *.ilk > NUL 2> NUL

cl %compiler_settings% "src\main.cpp" ^
	/link %linker_settings% -OUT:%exe_name% ^
	&& odin run examples/demo/demo.odin

del *.obj > NUL 2> NUL

:end_of_build

@echo off

:: Make sure this is a decent name and not generic
set exe_name=odin.exe

:: Debug = 0, Release = 1
if "%1" == "1" (
	set release_mode=1
) else if "%1" == "release" (
	set release_mode=1
) else (
	set release_mode=0
)

set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -GS- -EHsc- -GR-

if %release_mode% EQU 0 ( rem Debug
	set compiler_flags=%compiler_flags% -Od -MDd -Z7
	rem -DDISPLAY_TIMING
) else ( rem Release
	set compiler_flags=%compiler_flags% -O2 -MT -Z7 -DNO_ARRAY_BOUNDS_CHECK
)

set compiler_warnings= ^
	-W4 -WX ^
	-wd4100 -wd4101 -wd4127 -wd4189 ^
	-wd4201 -wd4204 ^
	-wd4456 -wd4457 -wd4480 ^
	-wd4512

set compiler_includes=
set libs= ^
	kernel32.lib

set linker_flags= -incremental:no -opt:ref -subsystem:console

if %release_mode% EQU 0 ( rem Debug
	set linker_flags=%linker_flags% -debug
) else ( rem Release
	set linker_flags=%linker_flags% -debug
)

set compiler_settings=%compiler_includes% %compiler_flags% %compiler_warnings%
set linker_settings=%libs% %linker_flags%

del *.pdb > NUL 2> NUL
del *.ilk > NUL 2> NUL

cl %compiler_settings% "src\main.cpp" ^
	/link %linker_settings% -OUT:%exe_name% ^
	&& odin run examples/demo/demo.odin

del *.obj > NUL 2> NUL

:end_of_build

Add the ability to toggle release mode externally when calling build.bat

The following cases builds Odin with optimizations:

    build.bat 1
    build.bat release

Any other options, or the lack thereof, will build without optimizations.


@echo off
cd %~dp0

SETLOCAL
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe

IF EXIST %CACHED_NUGET% goto copynuget
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"

:copynuget
IF EXIST .nuget\nuget.exe goto restore
md .nuget
copy %CACHED_NUGET% .nuget\nuget.exe > nul

:restore
IF EXIST packages\KoreBuild goto run
.nuget\NuGet.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
.nuget\NuGet.exe install Sake -version 0.2 -o packages -ExcludeVersion

IF "%SKIP_KRE_INSTALL%"=="1" goto run
CALL packages\KoreBuild\build\dotnetsdk upgrade -runtime CLR -x86
CALL packages\KoreBuild\build\dotnetsdk install default -runtime CoreCLR -x86

:run
CALL packages\KoreBuild\build\dotnetsdk use default -runtime CLR -x86
packages\Sake\tools\Sake.exe -I build -I packages\KoreBuild\build -f makefile.shade %*

@echo off
cd %~dp0

SETLOCAL
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe

IF EXIST %CACHED_NUGET% goto copynuget
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"

:copynuget
IF EXIST .nuget\nuget.exe goto restore
md .nuget
copy %CACHED_NUGET% .nuget\nuget.exe > nul

:restore
IF EXIST packages\KoreBuild goto run
.nuget\NuGet.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
.nuget\NuGet.exe install Sake -version 0.2 -o packages -ExcludeVersion

IF "%SKIP_DOTNET_INSTALL%"=="1" goto run
CALL packages\KoreBuild\build\dotnetsdk upgrade -runtime CLR -x86
CALL packages\KoreBuild\build\dotnetsdk install default -runtime CoreCLR -x86

:run
CALL packages\KoreBuild\build\dotnetsdk use default -runtime CLR -x86
packages\Sake\tools\Sake.exe -I build -I packages\KoreBuild\build -f makefile.shade %*

Rename SKIP_KRE_INSTALL to SKIP_DOTNET_INSTALL


@echo off
setlocal

:: Note: We've disabled node reuse because it causes file locking issues.
::       The issue is that we extend the build with our own targets which
::       means that that rebuilding cannot successully delete the task
::       assembly.

:: Check prerequisites
if not defined VS120COMNTOOLS (
    if not defined VS140COMNTOOLS (
        echo Error: build.cmd should be run from a Visual Studio 2013 or 2015 Command Prompt.
        echo        Please see https://github.com/dotnet/corefx/wiki/Developer-Guide for build instructions.
        exit /b 1
    )
)

:: Log build command line
set _buildprefix=echo
set _buildpostfix=^> "%~dp0msbuild.log"
call :build %*

:: Build
set _buildprefix=
set _buildpostfix=
call :build %*

goto :AfterBuild

:build
%_buildprefix% msbuild "%~dp0build.proj" /nologo /maxcpucount /verbosity:minimal /nodeReuse:false /fileloggerparameters:Verbosity=diag;LogFile="%~dp0msbuild.log";Append %* %_buildpostfix%
set BUILDERRORLEVEL=%ERRORLEVEL%
goto :eof

:AfterBuild

echo.
:: Pull the build summary from the log file
findstr /ir /c:".*Warning(s)" /c:".*Error(s)" /c:"Time Elapsed.*" "%~dp0msbuild.log"
echo Build Exit Code = %BUILDERRORLEVEL%

exit /b %BUILDERRORLEVEL%

@echo off
setlocal

:: Note: We've disabled node reuse because it causes file locking issues.
::       The issue is that we extend the build with our own targets which
::       means that that rebuilding cannot successfully delete the task
::       assembly.

:: Check prerequisites
if not defined VS120COMNTOOLS (
    if not defined VS140COMNTOOLS (
        echo Error: build.cmd should be run from a Visual Studio 2013 or 2015 Command Prompt.
        echo        Please see https://github.com/dotnet/corefx/wiki/Developer-Guide for build instructions.
        exit /b 1
    )
)

:: Log build command line
set _buildproj=%~dp0build.proj
set _buildlog=%~dp0msbuild.log
set _buildprefix=echo
set _buildpostfix=^> "%_buildlog%"
call :build %*

:: Build
set _buildprefix=
set _buildpostfix=
call :build %*

goto :AfterBuild

:build
%_buildprefix% msbuild "%_buildproj%" /nologo /maxcpucount /verbosity:minimal /nodeReuse:false /fileloggerparameters:Verbosity=diag;LogFile="%_buildlog%";Append %* %_buildpostfix%
set BUILDERRORLEVEL=%ERRORLEVEL%
goto :eof

:AfterBuild

echo.
:: Pull the build summary from the log file
findstr /ir /c:".*Warning(s)" /c:".*Error(s)" /c:"Time Elapsed.*" "%_buildlog%"
echo Build Exit Code = %BUILDERRORLEVEL%

exit /b %BUILDERRORLEVEL%

Build log filename variable

Build log filename variable

- Set name of build log file and build project file into env variable so
they are more easily discoverable in the log foutput, and only defined
once.
- Fix minor typo in comments.
- This is equivalent change to PR dotnet/buildtools#71 applied here as
suggested by @weshaggard   https://github.com/dotnet/buildtools/pull/71


@rem This batch file uses Git to apply the mbedTLS patches
@rem on Windows. Please adapt GIT_CMD below as required.
@rem Also adapt PATCH_CMD with the location of the patch
@rem utility, if automatic resolution does not work.

@rem If git.exe is not in PATH, then set the full path.
set GIT_CMD=git

@rem Get location of Git. ~p drops the executable name and keeps
@rem the path only
for /f "tokens=*" %%i in ('where %GIT_CMD%') do set GIT_LOCATION=%%~pi
set PATCH_CMD=%GIT_LOCATION%..\usr\bin\patch.exe

cd %~dp0..\..\deps\mbedtls || goto error
"%GIT_CMD%" clean -xdf .  || goto error
"%GIT_CMD%" reset --hard  || goto error
@rem git apply cannot deal with "/dev/null" as input to create a new
@rem file. Hence, we are using its patch utility directly.
@rem -r -: do not create reject files if applying hunks fail
@rem -s  : work silently
@rem -N  : do not reverse the patch if already applied
@rem -p1 : remove first path component from paths in the patches
"%PATCH_CMD%" -r - -s -N -p1 < ..\..\patches\mbedtls_ocf_patch_1 || goto error
"%PATCH_CMD%" -r - -s -N -p1 < ..\..\patches\mbedtls_iotivity_constrained_patch_2 || goto error
@rem VS project can check existence of the file whether to invoke
@rem this batch file or not.
echo patches applied > patched.txt
exit /b 0

:error
exit /b 1

@rem This batch file uses Git to apply the mbedTLS patches
@rem on Windows. Please adapt GIT_CMD below as required.
@rem Also adapt PATCH_CMD with the location of the patch
@rem utility, if automatic resolution does not work.

@rem If git.exe is not in PATH, then set the full path.
set GIT_CMD=git

@rem Get location of Git. ~p drops the executable name and keeps
@rem the path only
for /f "tokens=*" %%i in ('where %GIT_CMD%') do set GIT_LOCATION=%%~pi
set PATCH_CMD=%GIT_LOCATION%..\usr\bin\patch.exe

"%GIT_CMD%" submodule update --init

cd %~dp0..\..\deps\mbedtls || goto error
"%GIT_CMD%" clean -xdf .  || goto error
"%GIT_CMD%" reset --hard  || goto error
@rem git apply cannot deal with "/dev/null" as input to create a new
@rem file. Hence, we are using its patch utility directly.
@rem -r -: do not create reject files if applying hunks fail
@rem -s  : work silently
@rem -N  : do not reverse the patch if already applied
@rem -p1 : remove first path component from paths in the patches
"%PATCH_CMD%" -r - -s -N -p1 < ..\..\patches\mbedtls_ocf_patch_1 || goto error
"%PATCH_CMD%" -r - -s -N -p1 < ..\..\patches\mbedtls_iotivity_constrained_patch_2 || goto error
@rem VS project can check existence of the file whether to invoke
@rem this batch file or not.
echo patches applied > patched.txt
exit /b 0

:error
exit /b 1

Enforce update of submodules on Windows.

On Windows git does not reliably update submodules.
Enforce updates to mbedTLS and tinycbor as configured.

Change-Id: I0ffbc677b71540b14ad98c8abeddd2ab209b3b01
Signed-off-by: Andreas Zisowsky <0f8ec8760f6bbf76e7fa9ba97460a7a7c7a7e80e@lynxtechnology.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/24429
Reviewed-by: Kishen Maloor <c62ddea3cd661a9268bff15f07fc2229cdc9ac02@intel.com>
Tested-by: Kishen Maloor <c62ddea3cd661a9268bff15f07fc2229cdc9ac02@intel.com>


@echo off

REM
REM skinny command for Windows
REM

set COMMAND=%1

IF NOT DEFINED COMMAND (
GOTO :message
)

IF %COMMAND% == run (
sbt "~;container:stop;container:start"
GOTO :end
)

IF %COMMAND%== clean (
  sbt clean
  GOTO :end
)

IF %COMMAND%==console (
  sbt console
  GOTO :end
)

IF %COMMAND%==compile (
  sbt compile
  GOTO :end
)

IF %COMMAND%==test (
  sbt test
  GOTO :end
)

IF %COMMAND%==test-only (
  sbt test-only %2
  GOTO :end
)

IF %COMMAND%==package (
  sbt package
  GOTO :end
)

REM Didn't select command.
:message
echo ""
echo Usage: grep [COMMAND] [OPTIONS]...
echo   clean:     : will clear target directory
echo   run:       : will run Skinny app for local development
echo   compile:   : will compile all the classes
echo   test:      : will run all the tests
echo   test-only: : will run the specified test
echo   package:   : will create *.war file to deploy
echo ""

:end

Add skinny.bat to execute on Windows.

Add skinny.bat to execute on Windows.


REM copy Jekyll rendered pages in _site to my github.io repo

Xcopy /S /E /I /Y C:\_dev\jekyll\_site C:\_dev\tedbergeron.github.io

REM ### File copy has completed ###
PAUSE

add batch file

add batch file


@echo off
pushd %cd%
%~d0
cd %~dp0
echo Temporarily changing directory to %~dp0

if exist %USERPROFILE%\_vimrc goto GVIMRC
echo Installing _vimrc
echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc
echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc

:GVIMRC
if exist %USERPROFILE%\_gvimrc goto END
echo Installing _gvimrc
echo source %CD%\vim\gvimrc > %USERPROFILE%\_gvimrc

:END
popd

@echo off
pushd %cd%
%~d0
cd %~dp0
echo Temporarily changing directory to %~dp0

if exist %USERPROFILE%\_vimrc goto GVIMRC
echo Installing _vimrc
echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc
echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc

:GVIMRC
if exist %USERPROFILE%\_gvimrc goto END
echo Installing _gvimrc
echo source %CD%\vim\gvimrc > %USERPROFILE%\_gvimrc

:END
echo Done!
popd

Add log message for when the script is done.


@REM ----------------------------------------------------------------------------
@REM Copyright 2001-2004 The Apache Software Foundation.
@REM
@REM Licensed under the Apache License, Version 2.0 (the "License");
@REM you may not use this file except in compliance with the License.
@REM You may obtain a copy of the License at
@REM
@REM      http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing, software
@REM distributed under the License is distributed on an "AS IS" BASIS,
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@REM See the License for the specific language governing permissions and
@REM limitations under the License.
@REM ----------------------------------------------------------------------------
@REM

@REM ----------------------------------------------------------------------------
@REM Maven2 Bootstrap Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM M2_HOME - location of maven2's installed home dir
@REM
@REM Optional ENV vars
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven2 bootstrap
@REM     e.g. to run in offline mode, use
@REM set MAVEN_OPTS=-Dmaven.online=false
@REM ----------------------------------------------------------------------------

@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%

@REM set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" @setlocal

@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome

echo.
echo ERROR: JAVA_HOME not found in your environment.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation
echo.
goto end

:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome

echo.
echo ERROR: JAVA_HOME is set to an invalid directory.
echo JAVA_HOME = %JAVA_HOME%
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation
echo.
goto end

:chkMHome
if not "%M2_HOME%"=="" goto init

echo.
echo ERROR: M2_HOME not found in your environment.
echo Please set the M2_HOME variable in your environment to match the
echo location of the Maven installation
echo.
goto end
@REM ==== END VALIDATION ====

:init
@REM Decide how to startup depending on the version of windows

@REM -- Win98ME
if NOT "%OS%"=="Windows_NT" goto Win9xArg

@REM -- 4NT shell
if "%eval[2+2]" == "4" goto 4NTArgs

@REM -- Regular WinNT shell
set MAVEN_CMD_LINE_ARGS=%*
goto endInit

@REM The 4NT Shell from jp software
:4NTArgs
set MAVEN_CMD_LINE_ARGS=%$
goto endInit

:Win9xArg
@REM Slurp the command line arguments.  This loop allows for an unlimited number
@REM of agruments (up to the command line limit, anyway).
set MAVEN_CMD_LINE_ARGS=
:Win9xApp
if %1a==a goto endInit
set MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% %1
shift
goto Win9xApp

@REM Reaching here means variables are defined and arguments have been captured
:endInit
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"

@REM Build MBoot2
cd bootstrap\bootstrap-mini

call .\build

%MAVEN_JAVA_EXE% %MAVEN_OPTS% -jar target\bootstrap-mini.jar install %MAVEN_CMD_LINE_ARGS%

cd ..\bootstrap-installer
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -jar ..\bootstrap-installer.jar package %MAVEN_CMD_LINE_ARGS%
cd ..\..

set PLUGINS_DIR=..\plugins
if exist "%PLUGINS_DIR%\pom.xml" goto setArgs

set BUILD_ARGS=%MAVEN_CMD_LINE_ARGS%
goto doBuild

:setArgs
set BUILD_ARGS=%MAVEN_CMD_LINE_ARGS% --build-plugins --plugins-directory=%PLUGINS_DIR%

:doBuild

REM TODO: get rid of M2_HOME once integration tests are in here
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -jar bootstrap\bootstrap-installer\target\bootstrap-installer.jar --prefix=%M2_HOME%\.. %BUILD_ARGS%

REM TODO: should w ebe going back to the mini now that we have the real thing?
cd maven-core-it-verifier
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -jar ..\bootstrap\bootstrap-mini\target\bootstrap-mini.jar package %MAVEN_CMD_LINE_ARGS%

cd ..

echo
echo -----------------------------------------------------------------------
echo Running integration tests
echo -----------------------------------------------------------------------
cd maven-core-it
call maven-core-it %MAVEN_CMD_LINE_ARGS%
cd ..

:end
@REM set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" goto endNT

@REM For old DOS remove the set variables from ENV - we assume they were not set
@REM before we started - at least we don't leave any baggage around
set MAVEN_JAVA_EXE=
set MAVEN_CMD_LINE_ARGS=
goto postExec

:endNT
@endlocal

:postExec
@REM pause the batch file if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%" == "on" pause

@REM ----------------------------------------------------------------------------
@REM Copyright 2001-2004 The Apache Software Foundation.
@REM
@REM Licensed under the Apache License, Version 2.0 (the "License");
@REM you may not use this file except in compliance with the License.
@REM You may obtain a copy of the License at
@REM
@REM      http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing, software
@REM distributed under the License is distributed on an "AS IS" BASIS,
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@REM See the License for the specific language governing permissions and
@REM limitations under the License.
@REM ----------------------------------------------------------------------------
@REM

@REM ----------------------------------------------------------------------------
@REM Maven2 Bootstrap Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM M2_HOME - location of maven2's installed home dir
@REM
@REM Optional ENV vars
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven2 bootstrap
@REM     e.g. to run in offline mode, use
@REM set MAVEN_OPTS=-Dmaven.online=false
@REM ----------------------------------------------------------------------------

@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo on
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%

@REM set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" @setlocal

@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome

echo.
echo ERROR: JAVA_HOME not found in your environment.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation
echo.
goto end

:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome

echo.
echo ERROR: JAVA_HOME is set to an invalid directory.
echo JAVA_HOME = %JAVA_HOME%
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation
echo.
goto end

:chkMHome
if not "%M2_HOME%"=="" goto init

echo.
echo ERROR: M2_HOME not found in your environment.
echo Please set the M2_HOME variable in your environment to match the
echo location of the Maven installation
echo.
goto end
@REM ==== END VALIDATION ====

:init
@REM Decide how to startup depending on the version of windows

@REM -- Win98ME
if NOT "%OS%"=="Windows_NT" goto Win9xArg

@REM -- 4NT shell
if "%eval[2+2]" == "4" goto 4NTArgs

@REM -- Regular WinNT shell
set MAVEN_CMD_LINE_ARGS=%*
goto endInit

@REM The 4NT Shell from jp software
:4NTArgs
set MAVEN_CMD_LINE_ARGS=%$
goto endInit

:Win9xArg
@REM Slurp the command line arguments.  This loop allows for an unlimited number
@REM of agruments (up to the command line limit, anyway).
set MAVEN_CMD_LINE_ARGS=
:Win9xApp
if %1a==a goto endInit
set MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% %1
shift
goto Win9xApp

@REM Reaching here means variables are defined and arguments have been captured
:endInit
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"

@REM Build MBoot2
cd bootstrap\bootstrap-mini

call .\build

copy target\bootstrap-mini.jar ..
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -jar ..\bootstrap-mini.jar install %MAVEN_CMD_LINE_ARGS%

cd ..\bootstrap-installer
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -jar ..\bootstrap-mini.jar package %MAVEN_CMD_LINE_ARGS%
cd ..\..

set PLUGINS_DIR=..\plugins
if exist "%PLUGINS_DIR%\pom.xml" goto setArgs

set BUILD_ARGS=%MAVEN_CMD_LINE_ARGS%
goto doBuild

:setArgs
set BUILD_ARGS=%MAVEN_CMD_LINE_ARGS% --build-plugins --plugins-directory=%PLUGINS_DIR%

:doBuild

REM TODO: get rid of M2_HOME once integration tests are in here
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -jar bootstrap\bootstrap-installer\target\bootstrap-installer.jar --prefix=%M2_HOME%\.. %BUILD_ARGS%

REM TODO: should we be going back to the mini now that we have the real thing?
cd maven-core-it-verifier
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -jar ..\bootstrap\bootstrap-mini.jar package %MAVEN_CMD_LINE_ARGS%

cd ..

echo
echo -----------------------------------------------------------------------
echo Running integration tests
echo -----------------------------------------------------------------------
cd maven-core-it
call maven-core-it %MAVEN_CMD_LINE_ARGS%
cd ..

del bootstrap\bootstrap-mini.jar

:end
@REM set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" goto endNT

@REM For old DOS remove the set variables from ENV - we assume they were not set
@REM before we started - at least we don't leave any baggage around
set MAVEN_JAVA_EXE=
set MAVEN_CMD_LINE_ARGS=
goto postExec

:endNT
@endlocal

:postExec
@REM pause the batch file if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%" == "on" pause

copy bootstrap-mini.jar in bootstrap directory, and delete it at the end

git-svn-id: 2c527eb49caa05e19d6b2be874bf74fa9d7ea670@345025 13f79535-47bb-0310-9956-ffa450edef68


@echo off
if "%1" == "" goto error:
xcopy *.* "%1" /S /I /Y
GOTO:EOF

:error
echo "No destination file"
exit /B 1

Fix EOL

Fix EOL


@echo off
:##############################################################################
:#                                                                            #
:#  Filename        AddPaths.bat                                              #
:#                                                                            #
:#  Description     Add all JFL tools collection paths                        #
:#                                                                            #
:#  Notes 	    Designed to be executable in a VM, pointing at tools in   #
:#                  the host or in a network share.                           #
:#                                                                            #
:#                  Uses AddPath.bat internally.			      #
:#                                                                            #
:#  History                                                                   #
:#   2013-07-24 JFL Created this script.			              #
:#   2018-12-21 JFL Only add WIN64 paths when running on an AMD64 processor.  #
:#                  Conversely add DOS path when running on an x86 processor. #
:#                  Display the result path list just once in the end.        #
:#                  Added option -r to remove all my personal paths.          #
:#                                                                            #
:#          Copyright 2016 Hewlett Packard Enterprise Development LP         #
:# Licensed under the Apache 2.0 license  www.apache.org/licenses/LICENSE-2.0 #
:##############################################################################

setlocal EnableExtensions EnableDelayedExpansion
set "VERSION=2018-12-21"
set "SCRIPT=%~nx0"
set "SPATH=%~dp0" & set "SPATH=!SPATH:~0,-1!"
set "SDRV=%~d0"
set "ARG0=%~f0"
goto Main

:Help
echo.
echo %SCRIPT% version %VERSION% - Add all JFL tools collection paths
echo.
echo Usage: %SCRIPT% [OPTIONS]
echo.
echo Options:
echo   -?         Display this help
echo   -r         Remove all paths added by this script
echo   -V         Display the script version and exit
echo   -X         Display the commands generated and exit
echo.
goto :eof

:#----------------------------------------------------------------------------#
:# Main routine

:Main
set "CALL=call"
set "EXEC="
set "VERBOSE=0"
goto :get_args

:next_arg
shift
:get_args
if .%1.==.. goto :go
if "%~1"=="/?" goto :Help
if "%~1"=="-?" goto :Help
if "%~1"=="-r" call :Remove & goto :addpath.exit
if "%~1"=="-v" set "VERBOSE=1" & goto :next_arg
if "%~1"=="-V" (echo.%VERSION%) & goto :eof
if "%~1"=="-X" set "CALL=echo" & set "EXEC=rem" & goto :next_arg
goto :next_arg

:Add1Path.Init
:# Look for addpath.bat in the same directory as this script
set "ADDPATH=%SPATH%\addpath.bat"
:# Else look for addpath.bat in the PATH
if not exist "%ADDPATH%" for %%I in (addpath.bat) do set "ADDPATH=%%~$PATH:I"
:# If it's not there either, report the error
if not defined ADDPATH >&2 echo Error: Can't find addpath.bat & exit /b 1
:# Note: Even if addpath.bat is in the PATH, do not use its unqualified name,
:# because this would break during paths removal.
goto :eof

:Add1Path
set "RETCODE=0"
if exist "%~1" (
  %CALL% %ADDPATH% -q    "%~1"
  if errorlevel 1 set "RETCODE=1"
  %CALL% %ADDPATH% -q -s "%~1"
  if errorlevel 1 set "RETCODE=1"
)
exit /b %RETCODE%

:Remove
call :Add1Path.Init
if errorlevel 1 exit /b
set "RETCODE=0"
for %%p in (
  "%SPATH%\Win64"
  "%SPATH%\Win32"
  "%SPATH%"
  "%SPATH%\DOS"
  "%SPATH%\ezWinPorts\Win64\bin"
  "%SPATH%\ezWinPorts\Win32\bin"
  "%SPATH%\UnxUtils\usr\local\wbin"
  "%SPATH%\GnuWin32\bin"
  "%SDRV%\Windows\SUA\common"
  "%SDRV%\MinGW\msys\1.0\bin"
  "%SPATH%\SysInternals"
) do (
  %CALL% %ADDPATH% -q    -r "%%~p"
  if errorlevel 1 set "RETCODE=1"
  %CALL% %ADDPATH% -q -s -r "%%~p"
  if errorlevel 1 set "RETCODE=1"
)
:# Display the result path list in the end
%CALL% %ADDPATH%
exit /b %RETCODE%

:go
:# Check that the addpaths.bat directory contains the other basic tools we need.
if not exist "%SPATH%\addpath.bat" (
  >&2 echo Error: %SCRIPT% must be located in the Tools directory itself.
  exit /b 1
)

set "IF64=if [%PROCESSOR_ARCHITECTURE%]==[AMD64]"
set "IF32=if [%PROCESSOR_ARCHITECTURE%]==[x86]"

:# Add all JFL tools collection paths, with the hightest priority paths first
call :Add1Path.Init
if errorlevel 1 exit /b
%IF64% call :Add1Path "%SPATH%\Win64"			&:# Windows 64-bits tools
       call :Add1Path "%SPATH%\Win32"			&:# Windows 32-bits tools
       call :Add1Path "%SPATH%"				&:# Other types of Windows programs and scripts
%IF32% call :Add1Path "%SPATH%\DOS"			&:# DOS 16-bits tools. Must be AFTER "%SPATH%", as there's another addpath.bat there for DOS only.
%IF64% call :Add1Path "%SPATH%\ezWinPorts\Win64\bin"	&:# Unix tools 64-bits ports from ezwinports.sourceforge.net
       call :Add1Path "%SPATH%\ezWinPorts\Win32\bin"	&:# Unix tools 32-bits ports from ezwinports.sourceforge.net
       call :Add1Path "%SPATH%\UnxUtils\usr\local\wbin"	&:# Unix tools ports from unxutils.sourceforge.net
       call :Add1Path "%SPATH%\GnuWin32\bin"		&:# Unix tools ports from gnuwin32.sourceforge.net
       call :Add1Path "%SDRV%\Windows\SUA\common"	&:# Unix tools ports from Microsoft SUA (SubSystem for Unix Applications)
       call :Add1Path "%SDRV%\MinGW\msys\1.0\bin"	&:# Unix tools ports from mingw.sourceforge.net
       call :Add1Path "%SPATH%\SysInternals"		&:# Microsoft SysInternals tools
:# Display the result path list in the end
%CALL% %ADDPATH%

:# endlocal is necessary for returning the modified value back to the caller
:addpath.exit
endlocal & %EXEC% set "Path=%Path%"

@echo off
:##############################################################################
:#                                                                            #
:#  Filename        AddPaths.bat                                              #
:#                                                                            #
:#  Description     Add all JFL tools collection paths                        #
:#                                                                            #
:#  Notes 	    Designed to be executable in a VM, pointing at tools in   #
:#                  the host or in a network share.                           #
:#                                                                            #
:#                  Uses AddPath.bat internally.			      #
:#                                                                            #
:#  History                                                                   #
:#   2013-07-24 JFL Created this script.			              #
:#   2018-12-21 JFL Only add WIN64 paths when running on an AMD64 processor.  #
:#                  Conversely add DOS path when running on an x86 processor. #
:#                  Display the result path list just once in the end.        #
:#                  Added option -r to remove all my personal paths.          #
:#   2020-02-24 JFL Use the new paths.bat, instead of the old addpath.bat.    #
:#                                                                            #
:#          Copyright 2016 Hewlett Packard Enterprise Development LP         #
:# Licensed under the Apache 2.0 license  www.apache.org/licenses/LICENSE-2.0 #
:##############################################################################

setlocal EnableExtensions EnableDelayedExpansion
set "VERSION=2020-02-24"
set "SCRIPT=%~nx0"
set "SPATH=%~dp0" & set "SPATH=!SPATH:~0,-1!"
set "SDRV=%~d0"
set "ARG0=%~f0"
goto Main

:Help
echo.
echo %SCRIPT% version %VERSION% - Add all JFL tools collection paths
echo.
echo Usage: %SCRIPT% [OPTIONS]
echo.
echo Options:
echo   -?         Display this help
echo   -r         Remove all paths added by this script
echo   -V         Display the script version and exit
echo   -X         Display the commands generated and exit
echo.
goto :eof

:#----------------------------------------------------------------------------#
:# Main routine

:Main
set "CALL=call"
set "EXEC="
set "VERBOSE=0"
goto :get_args

:next_arg
shift
:get_args
if .%1.==.. goto :go
if "%~1"=="/?" goto :Help
if "%~1"=="-?" goto :Help
if "%~1"=="-r" call :Remove & goto :addpath.exit
if "%~1"=="-v" set "VERBOSE=1" & goto :next_arg
if "%~1"=="-V" (echo.%VERSION%) & goto :eof
if "%~1"=="-X" set "CALL=echo" & set "EXEC=rem" & goto :next_arg
goto :next_arg

:Add1Path.Init
:# Look for addpath.bat in the same directory as this script
set "ADDPATH=%SPATH%\paths.bat"
:# Else look for paths.bat in the PATH
if not exist "%ADDPATH%" for %%I in (paths.bat) do set "ADDPATH=%%~$PATH:I"
:# If it's not there either, report the error
if not defined ADDPATH >&2 echo Error: Can't find paths.bat & exit /b 1
:# Note: Even if paths.bat is in the PATH, do not use its unqualified name,
:# because this would break during paths removal.
goto :eof

:Add1Path
set "RETCODE=0"
if exist "%~1" (
  %CALL% %ADDPATH% -q    -a "%~1"
  if errorlevel 1 set "RETCODE=1"
  %CALL% %ADDPATH% -q -s -a "%~1"
  if errorlevel 1 set "RETCODE=1"
)
exit /b %RETCODE%

:Remove
call :Add1Path.Init
if errorlevel 1 exit /b
set "RETCODE=0"
for %%p in (
  "%SPATH%\Win64"
  "%SPATH%\Win32"
  "%SPATH%"
  "%SPATH%\DOS"
  "%SPATH%\ezWinPorts\Win64\bin"
  "%SPATH%\ezWinPorts\Win32\bin"
  "%SPATH%\UnxUtils\usr\local\wbin"
  "%SPATH%\GnuWin32\bin"
  "%SDRV%\Windows\SUA\common"
  "%SDRV%\MinGW\msys\1.0\bin"
  "%SPATH%\SysInternals"
) do (
  %CALL% %ADDPATH% -q    -r "%%~p"
  if errorlevel 1 set "RETCODE=1"
  %CALL% %ADDPATH% -q -s -r "%%~p"
  if errorlevel 1 set "RETCODE=1"
)
:# Display the result path list in the end
%CALL% %ADDPATH%
exit /b %RETCODE%

:go
:# Check that the addpaths.bat directory contains the other basic tools we need.
if not exist "%SPATH%\paths.bat" (
  >&2 echo Error: %SCRIPT% must be located in the Tools directory itself.
  exit /b 1
)

set "IF64=if [%PROCESSOR_ARCHITECTURE%]==[AMD64]"
set "IF32=if [%PROCESSOR_ARCHITECTURE%]==[x86]"

:# Add all JFL tools collection paths, with the hightest priority paths first
call :Add1Path.Init
if errorlevel 1 exit /b
%IF64% call :Add1Path "%SPATH%\Win64"			&:# Windows 64-bits tools
       call :Add1Path "%SPATH%\Win32"			&:# Windows 32-bits tools
       call :Add1Path "%SPATH%"				&:# Other types of Windows programs and scripts
%IF32% call :Add1Path "%SPATH%\DOS"			&:# DOS 16-bits tools. Must be AFTER "%SPATH%", as there's another paths.bat there for DOS only.
%IF64% call :Add1Path "%SPATH%\ezWinPorts\Win64\bin"	&:# Unix tools 64-bits ports from ezwinports.sourceforge.net
       call :Add1Path "%SPATH%\ezWinPorts\Win32\bin"	&:# Unix tools 32-bits ports from ezwinports.sourceforge.net
       call :Add1Path "%SPATH%\UnxUtils\usr\local\wbin"	&:# Unix tools ports from unxutils.sourceforge.net
       call :Add1Path "%SPATH%\GnuWin32\bin"		&:# Unix tools ports from gnuwin32.sourceforge.net
       call :Add1Path "%SDRV%\Windows\SUA\common"	&:# Unix tools ports from Microsoft SUA (SubSystem for Unix Applications)
       call :Add1Path "%SDRV%\MinGW\msys\1.0\bin"	&:# Unix tools ports from mingw.sourceforge.net
       call :Add1Path "%SPATH%\SysInternals"		&:# Microsoft SysInternals tools
:# Display the result path list in the end
%CALL% %ADDPATH%

:# endlocal is necessary for returning the modified value back to the caller
:addpath.exit
endlocal & %EXEC% set "Path=%Path%"


rem CMake/MinGW workaround - remove sh.exe from PATH
where sh
set MINGW=C:\Qt\Tools\mingw530_32
set QTDIR=C:\Qt\5.7\mingw53_32
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
set CMAKE_PREFIX_PATH=%QTDIR%
set PATH=%MINGW%\bin;%PATH%;%QTDIR%\bin
:: Qt needs to find the windows platform plugin to run tests
set QT_QPA_PLATFORM_PLUGIN_PATH=%QTDIR%\plugins
mkdir build
cd build
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../INSTALL ..
cmake --build . --target install
ctest -VV

rem CMake/MinGW workaround - remove sh.exe from PATH
where sh
set MINGW=C:\Qt\Tools\mingw530_32
set QTDIR=C:\Qt\5.7\mingw53_32
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
set CMAKE_PREFIX_PATH=%QTDIR%
set PATH=%MINGW%\bin;%PATH%;%QTDIR%\bin
:: Qt needs to find the windows platform plugin to run tests
set QT_QPA_PLATFORM_PLUGIN_PATH=%QTDIR%\plugins
mkdir build
cd build
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../INSTALL .. || goto :error
cmake --build . --target install || goto :error
ctest -VV || goto :error

goto :EOF

:error
echo Failed with error #%errorlevel%.
exit /b %errorlevel%

Add error check to build script

Appveyor: Add error check to build script


:: This bat will clean all telepathy related files from ./build run this after makebuild.bat
:: Also makes sure no unneeded qt libraries are not included
@echo off
cd ..\..\build

:: Delete temporary developer content
del *.bat
del performancelogger.txt
del fullmemoryleaklog.txt
del scenestats.txt
del ogrestats.txt

:: Delete debug DLLs of various libraries that might exist in the bin\ tree.
del *d4.dll
del *_d.dll
del Poco*d.dll
del dbus-1d.dll
del libcurld.dll
del audiod.dll
del OpenJPEGd.dll
del xmlrpcepid.dll
del QtSolutions_PropertyBrowser-2.5d.dll
del QtPropertyBrowserd.dll
del liboggd.dll
del libvorbisd.dll
del libvorbisfiled.dll
del Tundrad.exe
del TundraConsoled.exe
del plugins\*d.dll
del qtplugins\codecs\*d4.dll
del qtplugins\graphicssystems\*d4.dll
del qtplugins\iconengines\*d4.dll
del qtplugins\imageformats\*d4.dll
del qtplugins\phonon_backend\*d4.dll
del qtplugins\script\*d.dll
del caelum_d.dll
del Hydraxd.dll
del SkyXd.dll

:: We don't use Caelum anymore! Delete everything related to it.
del caelum.dll
del caelum_d.dll

:: Remove OpenAL, since it is installed to the system with an installer
del openal32.dll
del wrap_oal.dll

:: Remove everything Telepathy and dbus related
del telepathy*.dll
rd /s /q gstreamer
rd /s /q gabble
rd /s /q dbus
rd /s /q data\dbus_services
del startdbus.bat
del dbus-1.dll
del dbus-glib.dll
del libgnutlsxx-26.dll
del telepathy-farsight.dll
del telepathy-glib.dll

:: Remove unused Qt modules
del QtMultimedia*.dll
del QtXmlPatterns*.dll
del QtTest*.dll
del QtOpenGLd4.dll
del QtSqld4.dll
del QtSvgd4.dll
rd /s /q qtplugins\accessible
rd /s /q qtplugins\bearer
rd /s /q qtplugins\sqldrivers
rd /s /q qtplugins\designer
rd /s /q qtplugins\graphicssystems
del qtplugins\script\*d.dll
del qtplugins\codecs\*d4.dll
del qtplugins\iconengines\*d4.dll
del qtplugins\imageformats\*d4.dll
del qtplugins\phonon_backend\*d4.dll

:: Random stuff
::rd /s /q dox
del pluginsd.cfg
del plugins-*.cfg
del resources-*.cfg
del data\avatar_*.llm
del data\gabble.manager
del data\assets\dummy.txt
rd /s /q media\models\blend

rd /s /q qtplugins\phonon_backend
del qtplugins\script\qtscript_opengl.dll
del qtplugins\script\qtscript_phonon.dll
::del qtplugins\script\qtscript_webkit.dll
del qtplugins\script\qtscriptdbus4.dll
del qtplugins\script\qtscriptdbusd4.dll
del qtplugins\script\qtscript_sql.dll
del qtplugins\script\qtscript_svg.dll
del qtplugins\script\qtscript_xmlpatterns.dll
::del libeay32.dll :: MumbleVoipModule depends on this.
::del ssleay32.dll :: MumbleVoipModule depends on this.
del libexpat.dll
del libiconv2.dll
del libjpeg.dll
del libtheorad.dll
::del QtDBus4.dll
::del QtOpenGL4.dll :: PythonScriptModule depends on this via PythonQt_QtAll.dll
::del QtSql4.dll :: PythonScriptModule depends on this via PythonQt_QtAll.dll
::del QtSvg4.dll :: PythonScriptModule depends on this via PythonQt_QtAll.dll

del Qt3Support4.dll
del QtCLucene4.dll
del QtDesigner4.dll
del QtDesignerComponents4.dll
del QtHelp4.dll
rd /s /q qtplugins\phonon_backend

:: Delete unused Ogre DLLs and media content
::del /q media\fonts\*.*
::del /q media\models\avatar.*
::del /q media\models\Jack.*
del OgrePaging.dll
del OgreProperty.dll
del OgreRTShaderSystem.dll
del OgreTerrain.dll
del OIS.dll
del Plugin_BSPSceneManager.dll
del Plugin_PCZSceneManager.dll
del Plugin_OctreeZone.dll
del RenderSystem_Direct3D10.dll
del RenderSystem_Direct3D11.dll
::del RenderSystem_GL.dll
::del RenderSystem_NULL.dll

:: Comment to enable QtDeclarative support in the build
::del QtDeclarative4.dll

:: Comment to enable QTScriptTools support in the build
::del QtScriptTools4.dll

:: Comment to enable VLC in the build
::rmdir /S /Q vlcplugins
::del libvlc.dll
::del libvlccore.dll

:: Comment to enable QtWebkit in the build. NOTE: QtWebkit depends on Phonon4 to work!
:: del phonon4.dll

:: Comment to enable developer content in the build (EC editor, asset editors, etc.)
::rd /s /q jsmodules\apitest
::del /q media\materials\templates\*.*
::del QtSolutions_PropertyBrowser-2.5.dll
del viewerautomove.xml
::del jsmodules\startup\RandomAvatarMovement.js
::del data\ui\audio_preview.ui
::del data\ui\eceditor.ui
::del data\ui\EditorSettings.ui
::del data\ui\MaterialEditorPassTab.ui
::del data\ui\MaterialEditorTuTab.ui
::del data\ui\materialwizard.ui
::del data\ui\mesh_preview.ui
::del data\ui\ogrescripteditor.ui
::del data\ui\profiler.ui
::del data\ui\texture_preview.ui

:: Comment to enable the addition of sample scenes to the build
::rd /s /q scenes

:: Comment to enable Python in the build
::del python*.dll
::rd /s /q pyplugins

:: Comment to enable web browser UI in the build
::rd /s /q jsmodules\browserui
::rd /s /q data\ui\images\browser
::rd /s /q data\ui\images\comm
::del viewer-browser.xml
::del data\ui\images\icon\browser.ico
::del data\ui\images\icon\update.ico
::del data\ui\LoginWebWidget.ui

pause

:: This bat will clean all telepathy related files from ./build run this after makebuild.bat
:: Also makes sure no unneeded qt libraries are not included
@echo off
cd ..\..\build

:: Delete temporary developer content
del *.bat
del performancelogger.txt
del fullmemoryleaklog.txt
del scenestats.txt
del ogrestats.txt

:: Delete debug DLLs of various libraries that might exist in the bin\ tree.
del *d4.dll
del *_d.dll
del Poco*d.dll
del dbus-1d.dll
del libcurld.dll
del audiod.dll
del OpenJPEGd.dll
del xmlrpcepid.dll
del QtSolutions_PropertyBrowser-2.5d.dll
del QtPropertyBrowserd.dll
del liboggd.dll
del libvorbisd.dll
del libvorbisfiled.dll
del Tundrad.exe
del TundraConsoled.exe
del plugins\*d.dll
del qtplugins\codecs\*d4.dll
del qtplugins\graphicssystems\*d4.dll
del qtplugins\iconengines\*d4.dll
del qtplugins\imageformats\*d4.dll
del qtplugins\phonon_backend\*d4.dll
del qtplugins\script\*d.dll
del caelum_d.dll
del Hydraxd.dll
del SkyXd.dll

:: We don't use Caelum anymore! Delete everything related to it.
del caelum.dll
del caelum_d.dll

:: Remove OpenAL, since it is installed to the system with an installer
del openal32.dll
del wrap_oal.dll

:: Remove everything Telepathy and dbus related
del telepathy*.dll
rd /s /q gstreamer
rd /s /q gabble
rd /s /q dbus
rd /s /q data\dbus_services
del startdbus.bat
del dbus-1.dll
del dbus-glib.dll
del libgnutlsxx-26.dll
del telepathy-farsight.dll
del telepathy-glib.dll

:: Remove unused Qt modules
del QtMultimedia*.dll
del QtXmlPatterns*.dll
del QtTest*.dll
del QtOpenGLd4.dll
del QtSqld4.dll
del QtSvgd4.dll
rd /s /q qtplugins\accessible
rd /s /q qtplugins\bearer
rd /s /q qtplugins\sqldrivers
rd /s /q qtplugins\designer
rd /s /q qtplugins\graphicssystems
del qtplugins\script\*d.dll
del qtplugins\codecs\*d4.dll
del qtplugins\iconengines\*d4.dll
del qtplugins\imageformats\*d4.dll
del qtplugins\phonon_backend\*d4.dll

:: Random stuff
::rd /s /q dox
del pluginsd.cfg
del plugins-*.cfg
del resources-*.cfg
del data\avatar_*.llm
del data\gabble.manager
del data\assets\dummy.txt
rd /s /q media\models\blend

rd /s /q qtplugins\phonon_backend
del qtplugins\script\qtscript_opengl.dll
del qtplugins\script\qtscript_phonon.dll
::del qtplugins\script\qtscript_webkit.dll
del qtplugins\script\qtscriptdbus4.dll
del qtplugins\script\qtscriptdbusd4.dll
del qtplugins\script\qtscript_sql.dll
del qtplugins\script\qtscript_svg.dll
del qtplugins\script\qtscript_xmlpatterns.dll
::del libeay32.dll :: MumbleVoipModule depends on this.
::del ssleay32.dll :: MumbleVoipModule depends on this.
del libexpat.dll
del libiconv2.dll
del libjpeg.dll
del libtheorad.dll
::del QtDBus4.dll
::del QtOpenGL4.dll :: PythonScriptModule depends on this via PythonQt_QtAll.dll
::del QtSql4.dll :: PythonScriptModule depends on this via PythonQt_QtAll.dll
::del QtSvg4.dll :: PythonScriptModule depends on this via PythonQt_QtAll.dll

del /Q *.suo
del Qt3Support4.dll
del QtCLucene4.dll
del QtDesigner4.dll
del QtDesignerComponents4.dll
del QtHelp4.dll
rd /s /q qtplugins\phonon_backend

:: Delete unused Ogre DLLs and media content
::del /q media\fonts\*.*
::del /q media\models\avatar.*
::del /q media\models\Jack.*
del OgrePaging.dll
del OgreProperty.dll
del OgreRTShaderSystem.dll
del OgreTerrain.dll
del OIS.dll
del Plugin_BSPSceneManager.dll
del Plugin_PCZSceneManager.dll
del Plugin_OctreeZone.dll
del RenderSystem_Direct3D10.dll
del RenderSystem_Direct3D11.dll
::del RenderSystem_GL.dll
::del RenderSystem_NULL.dll

:: Comment to enable QtDeclarative support in the build
::del QtDeclarative4.dll

:: Comment to enable QTScriptTools support in the build
::del QtScriptTools4.dll

:: Comment to enable VLC in the build
::rmdir /S /Q vlcplugins
::del libvlc.dll
::del libvlccore.dll

:: Comment to enable QtWebkit in the build. NOTE: QtWebkit depends on Phonon4 to work!
:: del phonon4.dll

:: Comment to enable developer content in the build (EC editor, asset editors, etc.)
::rd /s /q jsmodules\apitest
::del /q media\materials\templates\*.*
::del QtSolutions_PropertyBrowser-2.5.dll
del viewerautomove.xml
::del jsmodules\startup\RandomAvatarMovement.js
::del data\ui\audio_preview.ui
::del data\ui\eceditor.ui
::del data\ui\EditorSettings.ui
::del data\ui\MaterialEditorPassTab.ui
::del data\ui\MaterialEditorTuTab.ui
::del data\ui\materialwizard.ui
::del data\ui\mesh_preview.ui
::del data\ui\ogrescripteditor.ui
::del data\ui\profiler.ui
::del data\ui\texture_preview.ui

:: Comment to enable the addition of sample scenes to the build
::rd /s /q scenes

:: Comment to enable Python in the build
::del python*.dll
::rd /s /q pyplugins

:: Comment to enable web browser UI in the build
::rd /s /q jsmodules\browserui
::rd /s /q data\ui\images\browser
::rd /s /q data\ui\images\comm
::del viewer-browser.xml
::del data\ui\images\icon\browser.ico
::del data\ui\images\icon\update.ico
::del data\ui\LoginWebWidget.ui

pause

Delete Tundra.suo from going into the build.


REM work in progress
REM Setup a non-production BigFix Eval Server with SQL Developer Edition.

REM http://software.bigfix.com/download/bes/95/BigFix-BES-9.5.9.62.exe
REM http://download.microsoft.com/download/2/5/0/2508F7B4-6DDE-4C3E-B1FA-E1EB66F2F79F/SQLServer2016-SSEI-Dev.exe

SET BASEFOLDER=C:\tmp

REM Make folder if not existing:  https://stackoverflow.com/questions/4165387/create-folder-with-batch-but-only-if-it-doesnt-already-exist
if not exist "%BASEFOLDER%" mkdir %BASEFOLDER%

REM Open folder:
start "" %BASEFOLDER%

REM https://github.com/jgstew/bigfix-content/blob/master/fixlet/Install%20SQL%20Server%20Management%20Studio%2016.5.1%20-%20Windows.bes
REM Download SQL Server Management Studio:
start "" powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/f/e/b/feb0e6be-21ce-4f98-abee-d74065e32d0a/SSMS-Setup-ENU.exe', '%BASEFOLDER%\SSMS-Setup-ENU.exe') }" -ExecutionPolicy Bypass

REM Download BigFix Root Server:
start "" powershell -command "& { (New-Object Net.WebClient).DownloadFile('http://software.bigfix.com/download/bes/100/BigFix-BES-10.0.0.133.exe', '%BASEFOLDER%\BigFix-BES.exe') }" -ExecutionPolicy Bypass

REM Download BigFix Fixlet Debugger:
REM http://software.bigfix.com/download/bes/100/util/QNA10.0.0.133.zip
start "" powershell -command "& { (New-Object Net.WebClient).DownloadFile('http://software.bigfix.com/download/bes/100/util/QNA10.0.0.133.zip', '%BASEFOLDER%\BigFix-FixletDebugger.zip') }" -ExecutionPolicy Bypass

REM Download SQLServer Developer Edition:
powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/A/7/5A7065A2-C81C-4A31-9972-8A31AC9388C1/SQLServer2017-SSEI-Dev.exe', '%BASEFOLDER%\SQLServer-SSEI-Dev.exe') }" -ExecutionPolicy Bypass
REM Install SQLServer Developer Edition:
REM https://docs.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server-from-the-command-prompt?view=sql-server-2017
REM Download Commnad:
%BASEFOLDER%\SQLServer-SSEI-Dev.exe /MEDIAPATH="%BASEFOLDER%" /ACTION=Download /LANGUAGE=en-US /MEDIATYPE=CAB /QUIET

REM Install Command: (interactive)
%BASEFOLDER%\SQLServer-SSEI-Dev.exe /ACTION=Install /MEDIAPATH=C:\tmp /IACCEPTSQLSERVERLICENSETERMS /LANGUAGE=en-US

REM https://download.microsoft.com/download/0/5/B/05B2AF8F-906F-4C57-A58E-5780F64F9D62/SSMS-Setup-ENU.exe
REM Install SQL Server Management Studio:
%BASEFOLDER%\SSMS-Setup-ENU.exe /install /quiet /norestart

REM press any key to continue....
pause

REM  TODO: configure SQL SA account?
REM  TODO: configure SQL login from AD account / local win admin account?
REM  TODO: open firewall for MSSQL to local subnet ?
REM  TODO: open firewall for BigFix to local subnet+ ?
REM  TODO: create local MO account
REM  TODO: create BES Admin Password
REM  TODO: set recommended BES Admin Settings
REM  TODO: create encryption keys for client encryption in BES Admin
REM  TODO: configure REST API creds - Web Reports - etc
REM  TODO: create custom site(s) `Shared` `Dashboards` `Private`
REM  TODO: create roles
REM  TODO: enable sites, subscribe computers
REM  TODO: install adobe flash for IE for root or console systems (DISM)
REM  TODO: setup download plugins
REM  TODO:

REM work in progress
REM Setup a non-production BigFix Eval Server with SQL Developer Edition.

REM http://software.bigfix.com/download/bes/95/BigFix-BES-9.5.9.62.exe
REM http://download.microsoft.com/download/2/5/0/2508F7B4-6DDE-4C3E-B1FA-E1EB66F2F79F/SQLServer2016-SSEI-Dev.exe

SET BASEFOLDER=C:\tmp

REM Make folder if not existing:  https://stackoverflow.com/questions/4165387/create-folder-with-batch-but-only-if-it-doesnt-already-exist
if not exist "%BASEFOLDER%" mkdir %BASEFOLDER%

REM Open folder:
start "" %BASEFOLDER%

REM https://github.com/jgstew/bigfix-content/blob/master/fixlet/Install%20SQL%20Server%20Management%20Studio%2016.5.1%20-%20Windows.bes
REM Download SQL Server Management Studio:
start "" powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/f/e/b/feb0e6be-21ce-4f98-abee-d74065e32d0a/SSMS-Setup-ENU.exe', '%BASEFOLDER%\SSMS-Setup-ENU.exe') }" -ExecutionPolicy Bypass

REM Download BigFix Root Server:
start "" powershell -command "& { (New-Object Net.WebClient).DownloadFile('http://software.bigfix.com/download/bes/100/BigFix-BES-10.0.0.133.exe', '%BASEFOLDER%\BigFix-BES.exe') }" -ExecutionPolicy Bypass

REM Download BigFix Fixlet Debugger:
REM http://software.bigfix.com/download/bes/100/util/QNA10.0.0.133.zip
start "" powershell -command "& { (New-Object Net.WebClient).DownloadFile('http://software.bigfix.com/download/bes/100/util/QNA10.0.0.133.zip', '%BASEFOLDER%\BigFix-FixletDebugger.zip') }" -ExecutionPolicy Bypass

REM Download SQLServer Developer Edition:
powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/A/7/5A7065A2-C81C-4A31-9972-8A31AC9388C1/SQLServer2017-SSEI-Dev.exe', '%BASEFOLDER%\SQLServer-SSEI-Dev.exe') }" -ExecutionPolicy Bypass
REM Install SQLServer Developer Edition:
REM https://docs.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server-from-the-command-prompt?view=sql-server-2017
REM Download Commnad:
%BASEFOLDER%\SQLServer-SSEI-Dev.exe /MEDIAPATH="%BASEFOLDER%" /ACTION=Download /LANGUAGE=en-US /MEDIATYPE=CAB /QUIET

REM Install Command: (interactive)
%BASEFOLDER%\SQLServer-SSEI-Dev.exe /ACTION=Install /MEDIAPATH=C:\tmp /IACCEPTSQLSERVERLICENSETERMS /LANGUAGE=en-US

REM https://download.microsoft.com/download/0/5/B/05B2AF8F-906F-4C57-A58E-5780F64F9D62/SSMS-Setup-ENU.exe
REM Install SQL Server Management Studio:
%BASEFOLDER%\SSMS-Setup-ENU.exe /install /quiet /norestart

REM press any key to continue....
pause

REM  TODO: configure SQL SA account?
REM  TODO: configure SQL login from AD account / local win admin account?
REM  TODO: open firewall for MSSQL to local subnet ?
REM  TODO: open firewall for BigFix to local subnet+ ?
REM  TODO: create local MO account
REM  TODO: BES Admin: create BES Admin Password
REM  TODO: BES Admin: set recommended BES Admin Settings
REM  TODO: BES Admin: create encryption keys for client encryption in BES Admin
REM  TODO: BES Admin: schedule BES Property ID Mapper
REM  TODO: configure REST API creds - Web Reports - etc
REM  TODO: create custom site(s) `Shared` `Dashboards` `Private`
REM  TODO: create roles
REM  TODO: enable sites, subscribe computers
REM  TODO: install adobe flash for IE for root or console systems (DISM)
REM  TODO: setup download plugins
REM  TODO:

Update bigfix_setup_root_eval.bat

Update bigfix_setup_root_eval.bat


@REM
@REM Copyright 2011-2013 eBusiness Information, Groupe Excilys (www.ebusinessinformation.fr)
@REM
@REM Licensed under the Apache License, Version 2.0 (the "License");
@REM you may not use this file except in compliance with the License.
@REM You may obtain a copy of the License at
@REM
@REM 		http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing, software
@REM distributed under the License is distributed on an "AS IS" BASIS,
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@REM See the License for the specific language governing permissions and
@REM limitations under the License.
@REM

@ECHO OFF
@REM
@REM Copyright 2011-2013 eBusiness Information, Groupe Excilys (www.excilys.com)
@REM
@REM Licensed under the Apache License, Version 2.0 (the "License");
@REM you may not use this file except in compliance with the License.
@REM You may obtain a copy of the License at
@REM
@REM 		http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing, software
@REM distributed under the License is distributed on an "AS IS" BASIS,
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@REM See the License for the specific language governing permissions and
@REM limitations under the License.
@REM

setlocal

rem set GATLING_HOME automatically if possible
set "OLD_DIR=%cd%"
cd ..
set "DEFAULT_GATLING_HOME=%cd%"
cd %OLD_DIR%

rem if gatling home is correctly set
if exist "%GATLING_HOME%\bin\gatling.bat" goto gotHome
rem if gatling home is not correctly set
if not "%GATLING_HOME%" == "" goto badHome
rem if not try current folder
if exist "%OLD_DIR%\bin\gatling.bat" set "GATLING_HOME=%OLD_DIR%" && goto gotHome
rem if not try parent folder
if exist "%DEFAULT_GATLING_HOME%\bin\gatling.bat" set "GATLING_HOME=%DEFAULT_GATLING_HOME%" && goto gotHome
rem else tell user to set GATLING_HOME
goto :noHome

:gotHome

echo GATLING_HOME is set to "%GATLING_HOME%"

set JAVA_OPTS=-server -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms512M -Xmx512M -Xmn100M -Xss2M -XX:+HeapDumpOnOutOfMemoryError -XX:+AggressiveOpts -XX:+OptimizeStringConcat -XX:+UseFastAccessorMethods -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly %JAVA_OPTS%

set CLASSPATH="%GATLING_HOME%"\lib\*;"%GATLING_HOME%"\conf;%JAVA_CLASSPATH%
set COMMAND=-cp %CLASSPATH% io.gatling.app.Gatling

java %JAVA_OPTS% %COMMAND% %1 %2 %3 %4 %5 %6 %7 %8 %9

goto exit

:badHome
echo The GATLING_HOME environnement variable points to the wrong directory.
echo Please set it to the correct folder and try to launch Gatling again.
goto exit

:noHome
echo GATLING_HOME environnement variable is not set and could not be guessed automatically.
echo Please set GATLING_HOME and try to launch Gatling again.
goto exit

:exit
pause
endlocal
exit /b 0

@REM
@REM Copyright 2011-2013 eBusiness Information, Groupe Excilys (www.ebusinessinformation.fr)
@REM
@REM Licensed under the Apache License, Version 2.0 (the "License");
@REM you may not use this file except in compliance with the License.
@REM You may obtain a copy of the License at
@REM
@REM 		http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing, software
@REM distributed under the License is distributed on an "AS IS" BASIS,
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@REM See the License for the specific language governing permissions and
@REM limitations under the License.
@REM

@ECHO OFF
@REM
@REM Copyright 2011-2013 eBusiness Information, Groupe Excilys (www.excilys.com)
@REM
@REM Licensed under the Apache License, Version 2.0 (the "License");
@REM you may not use this file except in compliance with the License.
@REM You may obtain a copy of the License at
@REM
@REM 		http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing, software
@REM distributed under the License is distributed on an "AS IS" BASIS,
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@REM See the License for the specific language governing permissions and
@REM limitations under the License.
@REM

setlocal

rem set GATLING_HOME automatically if possible
set "OLD_DIR=%cd%"
cd ..
set "DEFAULT_GATLING_HOME=%cd%"
cd %OLD_DIR%

rem if gatling home is correctly set
if exist "%GATLING_HOME%\bin\gatling.bat" goto gotHome
rem if gatling home is not correctly set
if not "%GATLING_HOME%" == "" goto badHome
rem if not try current folder
if exist "%OLD_DIR%\bin\gatling.bat" set "GATLING_HOME=%OLD_DIR%" && goto gotHome
rem if not try parent folder
if exist "%DEFAULT_GATLING_HOME%\bin\gatling.bat" set "GATLING_HOME=%DEFAULT_GATLING_HOME%" && goto gotHome
rem else tell user to set GATLING_HOME
goto :noHome

:gotHome

echo GATLING_HOME is set to "%GATLING_HOME%"

set JAVA_OPTS=-server -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms512M -Xmx512M -Xmn100M -Xss2M -XX:+HeapDumpOnOutOfMemoryError -XX:+AggressiveOpts -XX:+OptimizeStringConcat -XX:+UseFastAccessorMethods -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly %JAVA_OPTS%

set CLASSPATH="%GATLING_HOME%"\lib\*;"%GATLING_HOME%"\conf;"%GATLING_HOME%"\user-files;%JAVA_CLASSPATH%
set COMMAND=-cp %CLASSPATH% io.gatling.app.Gatling

java %JAVA_OPTS% %COMMAND% %1 %2 %3 %4 %5 %6 %7 %8 %9

goto exit

:badHome
echo The GATLING_HOME environnement variable points to the wrong directory.
echo Please set it to the correct folder and try to launch Gatling again.
goto exit

:noHome
echo GATLING_HOME environnement variable is not set and could not be guessed automatically.
echo Please set GATLING_HOME and try to launch Gatling again.
goto exit

:exit
pause
endlocal
exit /b 0

Fix classpath in gatling.bat to include "user-files" folder


@echo off
chcp 65001
echo.
pushd %~dp0

:loopstart

::Attempts to start py launcher without relying on PATH
%SYSTEMROOT%\py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO attempt
%SYSTEMROOT%\py.exe -3.5 Bot.py
timeout 3
GOTO loopstart

::Attempts to start py launcher by relying on PATH
:attempt
py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO lastattempt
py.exe -3.5 Bot.py
timeout 3
GOTO loopstart

::As a last resort, attempts to start whatever Python there is
:lastattempt
python.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO message
python.exe Bot.py
timeout 3
GOTO loopstart

:message
echo Couldn't find a valid Python 3.5 installation. Python needs to be installed and available in the PATH environment
echo variable.
echo https://twentysix26.github.io/Red-Docs/red_win_requirements/#software
PAUSE

:end

@echo off
chcp 65001
echo.
pushd %~dp0

:loopstart

::Attempts to start py launcher without relying on PATH
%SYSTEMROOT%\py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO attempt
%SYSTEMROOT%\py.exe -3.5 Bot.py
timeout 3
GOTO loopstart

::Attempts to start py launcher by relying on PATH
:attempt
py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO lastattempt
py.exe -3.5 Bot.py
timeout 3
GOTO loopstart

::As a last resort, attempts to start whatever Python there is
:lastattempt
python.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO message
python.exe Bot.py
timeout 3
GOTO loopstart

:message
echo Couldn't find a valid Python 3.5 installation. Python needs to be installed and available in the PATH environment
echo variable.
echo Restart This.
PAUSE

:end

Update startLoop.bat

Update startLoop.bat


@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

sphinx-apidoc -e -o modules ../cea

if "%SPHINXBUILD%" == "" (
	set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=.
set BUILDDIR=_build
set SPHINXPROJ=CityEnergyAnalyst

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
	echo.
	echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
	echo.installed, then set the SPHINXBUILD environment variable to point
	echo.to the full path of the 'sphinx-build' executable. Alternatively you
	echo.may add the Sphinx directory to PATH.
	echo.
	echo.If you don't have Sphinx installed, grab it from
	echo.http://sphinx-doc.org/
	exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%

:end
popd

@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
	set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=.
set BUILDDIR=_build
set SPHINXPROJ=CityEnergyAnalyst

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
	echo.
	echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
	echo.installed, then set the SPHINXBUILD environment variable to point
	echo.to the full path of the 'sphinx-build' executable. Alternatively you
	echo.may add the Sphinx directory to PATH.
	echo.
	echo.If you don't have Sphinx installed, grab it from
	echo.http://sphinx-doc.org/
	exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%

:end
popd

Revert "1263 change to docs make.bat"

Revert "1263 change to docs make.bat"

This reverts commit c2fdb3f4be9bcdd452ae64603f6254ae03c6b78b.


cd node_modules\ursa
node-gyp rebuild --target=0.22.1 --arch=ia32 --target_platform=win --dist-url=https://atom.io/download/atom-shell
cd ..\..

cd node_modules\ursa
REM 'call' must be used here because node-gyp calls another batch file
call node-gyp rebuild --target=0.22.3 --arch=ia32 --target_platform=win --dist-url=https://atom.io/download/atom-shell
cd ..\..

use call in windows build script

use call in windows build script


@echo off
echo cleaning......

echo  *.aps *.idb *.ncp *.obj *.pch *.tmp *.sbr
echo  *.tmp *.pdb *.bsc *.ilk *.res *.ncb *.opt
echo  *.suo *.manifest  *.dep

del /f /q /s *.aps
del /f /q /s *.idb
del /f /q /s *.ncp
del /f /q /s *.obj
del /f /q /s *.pch
del /f /q /s *.tmp
del /f /q /s *.sbr
del /f /q /s *.pdb
del /f /q /s *.bsc
del /f /q /s *.ilk
del /f /q /s *.res
del /f /q /s *.ncb
del /f /q /s *.opt
del /f /q /s *.suo
del /f /q /s *.dep
del /f /q /s *.manifest
echo done!
echo. & pause

add cleaner

add cleaner


set PATH=C:\Go\bin;%PATH

set GOPATH=%CD%\concourse
set PATH=%CD%\concourse\bin;C:\Program Files\Git\cmd;%PATH%

go install github.com/onsi/ginkgo/ginkgo

cd .\concourse\src\github.com\concourse\fly

ginkgo -r -p

set PATH=C:\Go\bin;%PATH%

set GOPATH=%CD%\concourse
set PATH=%CD%\concourse\bin;C:\Program Files\Git\cmd;%PATH%

go install github.com/onsi/ginkgo/ginkgo

cd .\concourse\src\github.com\concourse\fly

ginkgo -r -p

fix PATH in fly.bat

fix PATH in fly.bat


@echo off

if not defined PHP_SDK_RUN_FROM_ROOT (
	echo This script should not be run directly.
	echo Use starter scripts looking like phpsdk-^<crt^>-^<arch^>.bat in the PHP SDK root instead.
	goto out_error
)

if "%1"=="" goto :help
if "%1"=="/?" goto :help
if "%1"=="-h" goto :help
if "%1"=="--help" goto :help
if "%2"=="" goto :help

cmd /c "exit /b 0"

set PHP_SDK_VS=%1
if /i not "%PHP_SDK_VS:~0,2%"=="vc" (
	if /i not "%PHP_SDK_VS:~0,2%"=="vs" (
:malformed_vc_string
		echo Malformed CRT string "%1"
		set PHP_SDK_VS=
		goto out_error
	)
)
if ""=="%PHP_SDK_VS:~2%" (
	goto malformed_vc_string
)
set /a TMP_CHK=%PHP_SDK_VS:~2%
if 14 gtr %TMP_CHK% (
	if "0"=="%TMP_CHK%" (
		if not "0"=="%PHP_SDK_VS:~2%" (
			set TMP_CHK=
			goto malformed_vc_string
		)
	)

	echo At least vc14 is required
	set PHP_SDK_VS=
	set TMP_CHK=
	goto out_error
)
set PHP_SDK_VS_NUM=%TMP_CHK%
set TMP_CHK=

if /i not "%2"=="x64" (
	if /i not "%2"=="x86" (
		echo Unsupported arch "%2"
		goto out_error
	)
)

set PHP_SDK_ARCH=%2

rem check OS arch
set TMPKEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion
reg query "%TMPKEY%" /v "ProgramFilesDir (x86)" >nul 2>nul
if not errorlevel 1 (
	set PHP_SDK_OS_ARCH=x64
) else (
	if /i "%PHP_SDK_ARCH%"=="x64" (
		echo 32-bit OS detected, native 64-bit toolchain is unavailable.
		goto out_error
	)
	set PHP_SDK_OS_ARCH=x86
)
set TMPKEY=

rem get vc base dir
if 15 gtr %PHP_SDK_VS_NUM% (
	if /i "%PHP_SDK_OS_ARCH%"=="x64" (
		set TMPKEY=HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\%PHP_SDK_VS:~2%.0\Setup\VC
	) else (
		set TMPKEY=HKLM\SOFTWARE\Microsoft\VisualStudio\%PHP_SDK_VS:~2%.0\Setup\VC
	)
	reg query !TMPKEY! /v ProductDir >nul 2>&1
	if errorlevel 1 (
		echo Couldn't determine VC%PHP_SDK_VS:~2% directory
		goto out_error;
	)
	for /f "tokens=2*" %%a in ('reg query !TMPKEY! /v ProductDir') do set PHP_SDK_VS_DIR=%%b
) else (
	rem vc15 support only for now, could parse out and pass on later
	for /f "tokens=1* delims=: " %%a in ('%~dp0\vswhere -nologo -version %PHP_SDK_VS_NUM% -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text') do set PHP_SDK_VS_DIR=%%b\VC
	if not exist "!PHP_SDK_VS_DIR!" (
		for /f "tokens=1* delims=: " %%a in ('%~dp0\vswhere -nologo -version %PHP_SDK_VS_NUM% -products Microsoft.VisualStudio.Product.BuildTools -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text') do set PHP_SDK_VS_DIR=%%b\VC
		if not exist "!PHP_SDK_VS_DIR!" (
			rem check for a preview release
			for /f "tokens=1* delims=: " %%a in ('%~dp0\vswhere -nologo -version %PHP_SDK_VS_NUM% -prerelease -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text') do set PHP_SDK_VS_DIR=%%b\VC
			if not exist "!PHP_SDK_VS_DIR!" (
				echo Could not determine '%PHP_SDK_VS%' directory
				goto out_error;
			)
		)
	)
	set VSCMD_ARG_no_logo=nologo
)
set TMPKEY=

if 15 gtr %PHP_SDK_VS_NUM% (
	rem get sdk dir
	rem if 10.0 is available, it's ok
	if /i "%PHP_SDK_OS_ARCH%"=="x64" (
		set TMPKEY=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0
	) else (
		set TMPKEY=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0
	)
	for /f "tokens=2*" %%a in ('reg query "!TMPKEY!" /v InstallationFolder') do (
		for /f "tokens=2*" %%c in ('reg query "!TMPKEY!" /v ProductVersion') do (
			if exist "%%bInclude\%%d.0\um\Windows.h" (
				goto got_sdk
			)
		)
	)

	rem Otherwise 8.1 should be available anyway
	if /i "%PHP_SDK_OS_ARCH%"=="x64" (
		set TMPKEY=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v8.1
	) else (
		set TMPKEY=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1
	)
	for /f "tokens=2*" %%a in ('reg query "!TMPKEY!" /v InstallationFolder') do (
		if exist "%%b\Include\um\Windows.h" (
			goto got_sdk
		)
	)

	echo Windows SDK not found.
	goto out_error;
:got_sdk
	set TMPKEY=
)

if /i "%PHP_SDK_ARCH%"=="x64" (
	if 15 gtr %PHP_SDK_VS_NUM% (
		set PHP_SDK_VS_SHELL_CMD="!PHP_SDK_VS_DIR!\vcvarsall.bat" amd64
	) else (
		set PHP_SDK_VS_SHELL_CMD="!PHP_SDK_VS_DIR!\Auxiliary\Build\vcvarsall.bat" amd64
	)
) else (
	if 15 gtr %PHP_SDK_VS_NUM% (
		set PHP_SDK_VS_SHELL_CMD="!PHP_SDK_VS_DIR!\vcvarsall.bat" x86
	) else (
		set PHP_SDK_VS_SHELL_CMD="!PHP_SDK_VS_DIR!\Auxiliary\Build\vcvarsall.bat" x86
	)
)

rem echo Visual Studio path %PHP_SDK_VS_DIR%
rem echo Windows SDK path %PHP_SDK_WIN_SDK_DIR%

goto out

:help
	echo "Start Visual Studio command line for PHP SDK"
	echo "Usage: %0 vc arch"
	echo nul

:out_error
	exit /b 3

:out
rem	echo Shell configuration complete
	exit /b 0

goto :eof

@echo off

if not defined PHP_SDK_RUN_FROM_ROOT (
	echo This script should not be run directly.
	echo Use starter scripts looking like phpsdk-^<crt^>-^<arch^>.bat in the PHP SDK root instead.
	goto out_error
)

if "%1"=="" goto :help
if "%1"=="/?" goto :help
if "%1"=="-h" goto :help
if "%1"=="--help" goto :help
if "%2"=="" goto :help

cmd /c "exit /b 0"

set PHP_SDK_VS=%1
if /i not "%PHP_SDK_VS:~0,2%"=="vc" (
	if /i not "%PHP_SDK_VS:~0,2%"=="vs" (
:malformed_vc_string
		echo Malformed CRT string "%1"
		set PHP_SDK_VS=
		goto out_error
	)
)
if ""=="%PHP_SDK_VS:~2%" (
	goto malformed_vc_string
)
set /a TMP_CHK=%PHP_SDK_VS:~2%
if 14 gtr %TMP_CHK% (
	if "0"=="%TMP_CHK%" (
		if not "0"=="%PHP_SDK_VS:~2%" (
			set TMP_CHK=
			goto malformed_vc_string
		)
	)

	echo At least vc14 is required
	set PHP_SDK_VS=
	set TMP_CHK=
	goto out_error
)
set PHP_SDK_VS_NUM=%TMP_CHK%
set TMP_CHK=

if /i not "%2"=="x64" (
	if /i not "%2"=="x86" (
		echo Unsupported arch "%2"
		goto out_error
	)
)

set PHP_SDK_ARCH=%2

rem check OS arch
set TMPKEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion
reg query "%TMPKEY%" /v "ProgramFilesDir (x86)" >nul 2>nul
if not errorlevel 1 (
	set PHP_SDK_OS_ARCH=x64
) else (
	if /i "%PHP_SDK_ARCH%"=="x64" (
		echo 32-bit OS detected, native 64-bit toolchain is unavailable.
		goto out_error
	)
	set PHP_SDK_OS_ARCH=x86
)
set TMPKEY=

rem get vc base dir
if 15 gtr %PHP_SDK_VS_NUM% (
	if /i "%PHP_SDK_OS_ARCH%"=="x64" (
		set TMPKEY=HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\%PHP_SDK_VS:~2%.0\Setup\VC
	) else (
		set TMPKEY=HKLM\SOFTWARE\Microsoft\VisualStudio\%PHP_SDK_VS:~2%.0\Setup\VC
	)
	reg query !TMPKEY! /v ProductDir >nul 2>&1
	if errorlevel 1 (
		echo Couldn't determine VC%PHP_SDK_VS:~2% directory
		goto out_error;
	)
	for /f "tokens=2*" %%a in ('reg query !TMPKEY! /v ProductDir') do set PHP_SDK_VS_DIR=%%b
) else (
	rem vc15 support only for now, could parse out and pass on later
	for /f "tokens=1* delims=: " %%a in ('%~dp0\vswhere -nologo -version %PHP_SDK_VS_NUM% -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text') do (
		set PHP_SDK_VS_DIR=%%b\VC
		goto break0
	)
:break0
	if not exist "!PHP_SDK_VS_DIR!" (
		for /f "tokens=1* delims=: " %%a in ('%~dp0\vswhere -nologo -version %PHP_SDK_VS_NUM% -products Microsoft.VisualStudio.Product.BuildTools -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text') do (
			set PHP_SDK_VS_DIR=%%b\VC
			goto break1
		)
:break1
		if not exist "!PHP_SDK_VS_DIR!" (
			rem check for a preview release
			for /f "tokens=1* delims=: " %%a in ('%~dp0\vswhere -nologo -version %PHP_SDK_VS_NUM% -prerelease -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text') do (
				set PHP_SDK_VS_DIR=%%b\VC
				goto break3
			)
:break3
			if not exist "!PHP_SDK_VS_DIR!" (
				echo Could not determine '%PHP_SDK_VS%' directory
				goto out_error;
			)
		)
	)
	set VSCMD_ARG_no_logo=nologo
)
set TMPKEY=

if 15 gtr %PHP_SDK_VS_NUM% (
	rem get sdk dir
	rem if 10.0 is available, it's ok
	if /i "%PHP_SDK_OS_ARCH%"=="x64" (
		set TMPKEY=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0
	) else (
		set TMPKEY=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0
	)
	for /f "tokens=2*" %%a in ('reg query "!TMPKEY!" /v InstallationFolder') do (
		for /f "tokens=2*" %%c in ('reg query "!TMPKEY!" /v ProductVersion') do (
			if exist "%%bInclude\%%d.0\um\Windows.h" (
				goto got_sdk
			)
		)
	)

	rem Otherwise 8.1 should be available anyway
	if /i "%PHP_SDK_OS_ARCH%"=="x64" (
		set TMPKEY=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v8.1
	) else (
		set TMPKEY=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1
	)
	for /f "tokens=2*" %%a in ('reg query "!TMPKEY!" /v InstallationFolder') do (
		if exist "%%b\Include\um\Windows.h" (
			goto got_sdk
		)
	)

	echo Windows SDK not found.
	goto out_error;
:got_sdk
	set TMPKEY=
)

if /i "%PHP_SDK_ARCH%"=="x64" (
	if 15 gtr %PHP_SDK_VS_NUM% (
		set PHP_SDK_VS_SHELL_CMD="!PHP_SDK_VS_DIR!\vcvarsall.bat" amd64
	) else (
		set PHP_SDK_VS_SHELL_CMD="!PHP_SDK_VS_DIR!\Auxiliary\Build\vcvarsall.bat" amd64
	)
) else (
	if 15 gtr %PHP_SDK_VS_NUM% (
		set PHP_SDK_VS_SHELL_CMD="!PHP_SDK_VS_DIR!\vcvarsall.bat" x86
	) else (
		set PHP_SDK_VS_SHELL_CMD="!PHP_SDK_VS_DIR!\Auxiliary\Build\vcvarsall.bat" x86
	)
)

rem echo Visual Studio path %PHP_SDK_VS_DIR%
rem echo Windows SDK path %PHP_SDK_WIN_SDK_DIR%

goto out

:help
	echo "Start Visual Studio command line for PHP SDK"
	echo "Usage: %0 vc arch"
	echo nul

:out_error
	exit /b 3

:out
rem	echo Shell configuration complete
	exit /b 0

goto :eof

Fix loops

Fix loops


@ECHO OFF
IF NOT EXIST virtualenv GOTO DIRNOTEXISTS

:DIREXISTS
call virtualenv\scripts\activate

pip install --use-mirrors argparse coverage doxypy lockfile pyserial unittest-xml-reporting
GOTO DONE

:DIRNOTEXISTS
python virtualenv.py virtualenv
GOTO DIREXISTS

:DONE

@ECHO OFF
IF NOT EXIST virtualenv GOTO DIRNOTEXISTS

:DIREXISTS
call virtualenv\scripts\activate

pip install --use-mirrors argparse coverage doxypy lockfile mock pyserial unittest-xml-reporting
GOTO DONE

:DIRNOTEXISTS
python virtualenv.py virtualenv
GOTO DIREXISTS

:DONE

Add "mock" to the installed packages

Add "mock" to the installed packages


REM work in progress
REM Setup a non-production BigFix Eval Server with SQL Developer Edition.

REM http://software.bigfix.com/download/bes/95/BigFix-BES-9.5.9.62.exe
REM http://download.microsoft.com/download/2/5/0/2508F7B4-6DDE-4C3E-B1FA-E1EB66F2F79F/SQLServer2016-SSEI-Dev.exe

SET BASEFOLDER=C:\tmp

REM Make folder if not existing:  https://stackoverflow.com/questions/4165387/create-folder-with-batch-but-only-if-it-doesnt-already-exist
if not exist "%BASEFOLDER%" mkdir %BASEFOLDER%

REM Open folder:
start "" %BASEFOLDER%

REM https://github.com/jgstew/bigfix-content/blob/master/fixlet/Install%20SQL%20Server%20Management%20Studio%2016.5.1%20-%20Windows.bes
REM Download SQL Server Management Studio:
start "" powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/f/e/b/feb0e6be-21ce-4f98-abee-d74065e32d0a/SSMS-Setup-ENU.exe', '%BASEFOLDER%\SSMS-Setup-ENU.exe') }" -ExecutionPolicy Bypass

REM Download BigFix Root Server:
start "" powershell -command "& { (New-Object Net.WebClient).DownloadFile('http://software.bigfix.com/download/bes/95/BigFix-BES-9.5.9.62.exe', '%BASEFOLDER%\BigFix-BES.exe') }" -ExecutionPolicy Bypass

REM Download SQLServer Developer Edition:
powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/A/7/5A7065A2-C81C-4A31-9972-8A31AC9388C1/SQLServer2017-SSEI-Dev.exe', '%BASEFOLDER%\SQLServer-SSEI-Dev.exe') }" -ExecutionPolicy Bypass
REM Install SQLServer Developer Edition:
REM https://docs.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server-from-the-command-prompt?view=sql-server-2017
REM Download Commnad:
%BASEFOLDER%\SQLServer-SSEI-Dev.exe /MEDIAPATH="%BASEFOLDER%" /ACTION=Download /LANGUAGE=en-US /MEDIATYPE=CAB /QUIET

REM Install Command: (interactive)
%BASEFOLDER%\SQLServer-SSEI-Dev.exe /ACTION=Install /MEDIAPATH=C:\tmp /IACCEPTSQLSERVERLICENSETERMS /LANGUAGE=en-US

REM https://download.microsoft.com/download/0/5/B/05B2AF8F-906F-4C57-A58E-5780F64F9D62/SSMS-Setup-ENU.exe
REM Install SQL Server Management Studio:
%BASEFOLDER%\SSMS-Setup-ENU.exe /install /quiet /norestart

REM for some reason, this didn't create a start menu shortcut it seems for SQL Server Management Studio

REM press any key to continue....
pause

REM work in progress
REM Setup a non-production BigFix Eval Server with SQL Developer Edition.

REM http://software.bigfix.com/download/bes/95/BigFix-BES-9.5.9.62.exe
REM http://download.microsoft.com/download/2/5/0/2508F7B4-6DDE-4C3E-B1FA-E1EB66F2F79F/SQLServer2016-SSEI-Dev.exe

SET BASEFOLDER=C:\tmp

REM Make folder if not existing:  https://stackoverflow.com/questions/4165387/create-folder-with-batch-but-only-if-it-doesnt-already-exist
if not exist "%BASEFOLDER%" mkdir %BASEFOLDER%

REM Open folder:
start "" %BASEFOLDER%

REM https://github.com/jgstew/bigfix-content/blob/master/fixlet/Install%20SQL%20Server%20Management%20Studio%2016.5.1%20-%20Windows.bes
REM Download SQL Server Management Studio:
start "" powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/f/e/b/feb0e6be-21ce-4f98-abee-d74065e32d0a/SSMS-Setup-ENU.exe', '%BASEFOLDER%\SSMS-Setup-ENU.exe') }" -ExecutionPolicy Bypass

REM Download BigFix Root Server:
start "" powershell -command "& { (New-Object Net.WebClient).DownloadFile('http://software.bigfix.com/download/bes/100/BigFix-BES-Server-10.0.0.133.exe', '%BASEFOLDER%\BigFix-BES.exe') }" -ExecutionPolicy Bypass

REM Download SQLServer Developer Edition:
powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/A/7/5A7065A2-C81C-4A31-9972-8A31AC9388C1/SQLServer2017-SSEI-Dev.exe', '%BASEFOLDER%\SQLServer-SSEI-Dev.exe') }" -ExecutionPolicy Bypass
REM Install SQLServer Developer Edition:
REM https://docs.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server-from-the-command-prompt?view=sql-server-2017
REM Download Commnad:
%BASEFOLDER%\SQLServer-SSEI-Dev.exe /MEDIAPATH="%BASEFOLDER%" /ACTION=Download /LANGUAGE=en-US /MEDIATYPE=CAB /QUIET

REM Install Command: (interactive)
%BASEFOLDER%\SQLServer-SSEI-Dev.exe /ACTION=Install /MEDIAPATH=C:\tmp /IACCEPTSQLSERVERLICENSETERMS /LANGUAGE=en-US

REM https://download.microsoft.com/download/0/5/B/05B2AF8F-906F-4C57-A58E-5780F64F9D62/SSMS-Setup-ENU.exe
REM Install SQL Server Management Studio:
%BASEFOLDER%\SSMS-Setup-ENU.exe /install /quiet /norestart

REM for some reason, this didn't create a start menu shortcut it seems for SQL Server Management Studio

REM press any key to continue....
pause

Update bigfix_setup_root_eval.bat

Update bigfix_setup_root_eval.bat

update download to bigfix v10 installer


@echo off
::
:: CMD file to run the AutoIt tests in this directory
::
:: Copyright (c) 2008-2009 Texas Instruments, Inc.
:: Author: Martin Taylor <cmtaylor@ti.com>
::
::  Licensed under the Apache License, Version 2.0 (the "License");
::  you may not use this file except in compliance with the License.
::  You may obtain a copy of the License at
::
::      http://www.apache.org/licenses/LICENSE-2.0
::
::  Unless required by applicable law or agreed to in writing, software
::  distributed under the License is distributed on an "AS IS" BASIS,
::  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
::  See the License for the specific language governing permissions and
::  limitations under the License.
::
::-------------------------------------------------------------------------------
::
call pybot --name "AutoItLibrary Windows Calculator" --noncritical ExpectedFAIL --outputdir .\results .
pause

@echo off
::
:: CMD file to run the AutoIt tests in this directory
::
:: Based on AutoItLibrary 1.1 by Texas Instruments, Inc. / Martin Taylor hosted on Google Code.
:: Author: Erik Fornoff <erik.fornoff@gmail.com>
::
::  Licensed under the Apache License, Version 2.0 (the "License");
::  you may not use this file except in compliance with the License.
::  You may obtain a copy of the License at
::
::      http://www.apache.org/licenses/LICENSE-2.0
::
::  Unless required by applicable law or agreed to in writing, software
::  distributed under the License is distributed on an "AS IS" BASIS,
::  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
::  See the License for the specific language governing permissions and
::  limitations under the License.
::
::-------------------------------------------------------------------------------
::
call pybot --name "AutoItLibrary Windows Calculator" --noncritical ExpectedFAIL --outputdir .\results .
pause

Update RunTests.bat

Update RunTests.bat


@echo off
echo node-access examples:
..\node.exe query.js
pause

@echo off
echo node-access examples:
node query.js
pause

modify cmd

modify cmd


@echo off

if "%OS%" == "Windows_NT" setlocal

if NOT DEFINED JAVA_HOME goto :err

REM Ensure that any user defined CLASSPATH variables are not used on startup
set CLASSPATH=

REM For each jar in the lib directory call append to build the CLASSPATH variable.
for %%i in ("..\output\jardist\*.jar") do call :append "%%i"

goto okClasspath

:append
set CLASSPATH=%CLASSPATH%;%1
goto :eof

:okClasspath
REM Include the \classes directory so it works in development
set PLAYORM_CLASSPATH="..\bin";%CLASSPATH%;

SET A_PORT=8000
SET A_DBG=-Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:8000,suspend=y
goto runCli

:runCli
"%JAVA_HOME%\bin\java" %A_DBG% -cp %PLAYORM_CLASSPATH% com.alvazan.ssql.cmdline.PlayOrm %*
goto finally

:err
echo The JAVA_HOME environment variable must be set to run this program!
pause

:finally

ENDLOCAL

Add a small script for debugging on windows


set version=31.0.0-pre1a
set platform=x86
rem NuGet pack CefSharp.Common.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=
NuGet pack CefSharp.Common.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=.%Platform%;Platform=%Platform%
rem NuGet pack CefSharp.Wpf.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=
rem NuGet pack CefSharp.Wpf.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=.x86
rem NuGet pack CefSharp.Wpf.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=.x64
rem NuGet pack CefSharp.WinForms.nuspec -NoPackageAnalysis -Version %version%

set version=31.0.0-pre1a
REM set platform=x86
rem NuGet pack CefSharp.Common.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=
NuGet pack CefSharp.Common.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=.%Platform%;Platform=%Platform%
rem NuGet pack CefSharp.Wpf.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=
rem NuGet pack CefSharp.Wpf.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=.x86
rem NuGet pack CefSharp.Wpf.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=.x64
rem NuGet pack CefSharp.WinForms.nuspec -NoPackageAnalysis -Version %version%

Stop forcing x86 again

Stop forcing x86 again


xcopy ..\icons\favicon.ico ..\Web /Y
mkdir ..\Web\Examples
xcopy ..\documentation\images\series ..\Web\Examples /Y
..\Tools\Lynx\FtpUpload.exe %OXYPLOT_FTP_SERVER% %OXYPLOT_FTP_USER% %OXYPLOT_FTP_PASSWORD% ..\Web\*.* %OXYPLOT_FTP_FOLDER% /t=1

xcopy ..\icons\favicon.ico ..\Web /Y
mkdir ..\Web\Examples
xcopy ..\documentation\images\series ..\Web\Examples /Y
..\Tools\Lynx\FtpUpload.exe ftp.oxyplot.org %OXYPLOT_FTP_USER% %OXYPLOT_FTP_PWD% ..\Web\*.* %OXYPLOT_FTP_FOLDER% /t=1

Correct environment variable in build script