2014-07-07 15:39:59 -03:00
|
|
|
@echo off
|
|
|
|
rem Used by the buildbot "clean" step.
|
|
|
|
|
|
|
|
setlocal
|
|
|
|
set root=%~dp0..\..
|
|
|
|
set pcbuild=%root%\PCbuild
|
|
|
|
|
2014-10-13 02:17:23 -03:00
|
|
|
if "%1" == "x64" (
|
|
|
|
set vcvars_target=x86_amd64
|
2014-11-22 16:54:57 -04:00
|
|
|
set platform=x64
|
2014-10-13 02:17:23 -03:00
|
|
|
) else (
|
|
|
|
set vcvars_target=x86
|
2014-11-22 16:54:57 -04:00
|
|
|
set platform=Win32
|
2014-10-13 02:17:23 -03:00
|
|
|
)
|
2014-11-22 16:54:57 -04:00
|
|
|
|
|
|
|
call "%pcbuild%\env.bat" %vcvars_target%
|
|
|
|
|
|
|
|
echo.Attempting to kill Pythons...
|
2014-12-12 16:18:11 -04:00
|
|
|
msbuild /v:m /nologo /target:KillPython "%pcbuild%\pythoncore.vcxproj" /p:Configuration=Release /p:Platform=%platform% /p:KillPython=true
|
2014-11-22 16:54:57 -04:00
|
|
|
|
2014-10-13 02:17:23 -03:00
|
|
|
echo Deleting .pyc/.pyo files ...
|
|
|
|
del /s "%root%\Lib\*.pyc" "%root%\Lib\*.pyo"
|
2014-11-22 16:54:57 -04:00
|
|
|
|
2014-10-13 02:17:23 -03:00
|
|
|
echo Deleting test leftovers ...
|
|
|
|
rmdir /s /q "%root%\build"
|
2014-07-07 15:39:59 -03:00
|
|
|
|
2014-11-22 16:54:57 -04:00
|
|
|
echo Deleting build
|
|
|
|
msbuild /v:m /nologo /target:clean "%pcbuild%\pcbuild.proj" /p:Configuration=Release /p:Platform=%platform%
|
|
|
|
msbuild /v:m /nologo /target:clean "%pcbuild%\pcbuild.proj" /p:Configuration=Debug /p:Platform=%platform%
|