Introduce Linux counter parts
This commit is contained in:
@@ -1,39 +1,20 @@
|
||||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
rem build_all [clean] [recommended|windows|linux]
|
||||
rem build_all {build|check|clean}
|
||||
|
||||
call .config_build_all/recommended.bat
|
||||
IF NOT "%~2" == "" (
|
||||
set config_path=.config_build_all/%~2.bat
|
||||
IF exist "!config_path!" (
|
||||
call !config_path!
|
||||
) ELSE (
|
||||
@echo "Configuration !config_path! not found"
|
||||
exit -1
|
||||
if %1 == clean (
|
||||
for %%a in (%clean_tools%) do (
|
||||
call .\run_cargo %%a %1 release windows
|
||||
cd %cur_dir%
|
||||
)
|
||||
)
|
||||
|
||||
set projects=%bin_projects%
|
||||
set linux_projects=%bin_linux_projects%
|
||||
set build_type=build
|
||||
set cur_dir=%cd%
|
||||
|
||||
IF NOT "%~1" == "" (
|
||||
IF "%~1" == "clean" (
|
||||
set build_type=clean
|
||||
set projects=%projects% %clean_projects%
|
||||
set linux_projects=%linux_projects% %clean_projects_linux%
|
||||
) ELSE (
|
||||
set build_type=%~1
|
||||
)
|
||||
)
|
||||
|
||||
for %%a in (%projects%) do (
|
||||
call .\run_cargo %%a %build_type% release windows
|
||||
for %%a in (%win_tools%) do (
|
||||
call .\run_cargo %%a %1 release windows
|
||||
cd %cur_dir%
|
||||
)
|
||||
|
||||
for %%a in (%linux_projects%) do (
|
||||
call .\run_cargo %%a %build_type% release linux
|
||||
for %%a in (%linux_tools%) do (
|
||||
call .\run_cargo %%a %1 release linux
|
||||
cd %cur_dir%
|
||||
)
|
||||
Reference in New Issue
Block a user