VS2010 WebKit projects, scripts, and property sheets.
[WebKit-https.git] / Source / WebKit / WebKit.vcxproj / WebKitExportGenerator / WebKitExportGeneratorPreBuild.cmd
1 %SystemDrive%\cygwin\bin\which.exe bash
2 if errorlevel 1 set PATH=%SystemDrive%\cygwin\bin;%PATH%
3
4 echo Preparing generator output directory...
5 set GeneratorDirectory=%CONFIGURATIONBUILDDIR%/obj/WebKitExportGenerator
6 mkdir "%GeneratorDirectory%" 2>NUL
7 mkdir "%GeneratorDirectory%\DerivedSources" 2>NUL
8
9 echo Clearing old definition file...
10 del /F /Q "%GeneratorDirectory%\WebKitExports.def"
11 del /F /Q "%GeneratorDirectory%\DerivedSources\WebKitExportGenerator.cpp"
12 del /F /Q "%OUTDIR%\WebKitExportGenerator.exe"
13
14 cmd /c
15 if exist "%CONFIGURATIONBUILDDIR%\buildfailed" grep XX%PROJECTNAME%XX "%CONFIGURATIONBUILDDIR%\buildfailed"
16 if errorlevel 1 exit 1
17 echo XX%PROJECTNAME%XX > "%CONFIGURATIONBUILDDIR%\buildfailed"
18
19 "%PROJECTDIR%\%PROJECTNAME%BuildCmd.cmd"