mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
39 lines
1.1 KiB
Batchfile
39 lines
1.1 KiB
Batchfile
:: Initialize environment
|
|
call "%~dp0..\env.bat"
|
|
if errorlevel 1 goto error_env
|
|
|
|
set EnvRootPath=%RootPath%\%SourceName%-env
|
|
set EnvToolsPath=%EnvRootPath%\tools
|
|
set EnvTempPath=%EnvRootPath%\tmp
|
|
set EnvDownloadPath=%EnvRootPath%\download
|
|
set EnvTorPath=%EnvDownloadPath%\tor
|
|
|
|
set EnvSevenZipExe=%EnvToolsPath%\7z.exe
|
|
set EnvSedExe=%EnvToolsPath%\sed.exe
|
|
set EnvCutExe=%EnvToolsPath%\cut.exe
|
|
set EnvDependsExe=%EnvToolsPath%\depends.exe
|
|
set EnvMakeNSISExe=%EnvToolsPath%\NSIS\makensis.exe
|
|
set EnvCEchoExe=%EnvToolsPath%\cecho.exe
|
|
set cecho=call "%ToolsPath%\cecho.bat"
|
|
|
|
:: Create folders
|
|
if not exist "%EnvRootPath%" mkdir "%EnvRootPath%"
|
|
if not exist "%EnvToolsPath%" mkdir "%EnvToolsPath%"
|
|
if not exist "%EnvDownloadPath%" mkdir "%EnvDownloadPath%"
|
|
|
|
call "%~dp0tools\prepare-tools.bat"
|
|
if errorlevel 1 exit /B %ERRORLEVEL%
|
|
|
|
:: Add MinGit to PATH
|
|
set PATH=%EnvToolsPath%\MinGit\cmd;%EnvToolsPath%\cmake\bin;%PATH%
|
|
set HOME=%EnvToolsPath%\MinGit\home
|
|
|
|
:: Add Doxygen to PATH
|
|
set PATH=%EnvToolsPath%\doxygen;%PATH%
|
|
|
|
exit /B 0
|
|
|
|
:error_env
|
|
echo Failed to initialize environment.
|
|
exit /B 1
|