From f65b19cdff042e2c886ee059ba138ac7300b4242 Mon Sep 17 00:00:00 2001 From: Jaby Date: Sat, 17 Sep 2022 16:08:10 +0200 Subject: [PATCH] Offer configuration for windows and linux --- src/Tools/.config_build_all/linux.bat | 4 ++++ src/Tools/.config_build_all/recommended.bat | 4 ++++ src/Tools/.config_build_all/windows.bat | 4 ++++ src/Tools/build_all.bat | 17 ++++++++++++----- 4 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 src/Tools/.config_build_all/linux.bat create mode 100644 src/Tools/.config_build_all/recommended.bat create mode 100644 src/Tools/.config_build_all/windows.bat diff --git a/src/Tools/.config_build_all/linux.bat b/src/Tools/.config_build_all/linux.bat new file mode 100644 index 00000000..901cc3fc --- /dev/null +++ b/src/Tools/.config_build_all/linux.bat @@ -0,0 +1,4 @@ +set bin_linux_projects=%bin_projects% %bin_linux_projects% +set clean_projects_linux=%clean_projects% %clean_projects_linux% +set bin_projects= +set clean_projects= \ No newline at end of file diff --git a/src/Tools/.config_build_all/recommended.bat b/src/Tools/.config_build_all/recommended.bat new file mode 100644 index 00000000..26c6fb1c --- /dev/null +++ b/src/Tools/.config_build_all/recommended.bat @@ -0,0 +1,4 @@ +set bin_projects=psxcdgen psxcdread +set bin_linux_projects=cpp_out jaby_engine_fconv +set clean_projects=cdtypes +set clean_projects_linux=tool_helper \ No newline at end of file diff --git a/src/Tools/.config_build_all/windows.bat b/src/Tools/.config_build_all/windows.bat new file mode 100644 index 00000000..c940a9cc --- /dev/null +++ b/src/Tools/.config_build_all/windows.bat @@ -0,0 +1,4 @@ +set bin_projects=%bin_projects% %bin_linux_projects% +set clean_projects=%clean_projects% %clean_projects_linux% +set bin_linux_projects= +set clean_projects_linux= \ No newline at end of file diff --git a/src/Tools/build_all.bat b/src/Tools/build_all.bat index 4fbff46d..819747ff 100644 --- a/src/Tools/build_all.bat +++ b/src/Tools/build_all.bat @@ -1,10 +1,17 @@ @echo off -rem build_all [clean] +setlocal EnableDelayedExpansion +rem build_all [clean] [recommended|windows|linux] -set bin_projects=psxcdgen psxcdread -set bin_linux_projects=cpp_out jaby_engine_fconv -set clean_projects=cdtypes -set clean_projects_linux=tool_helper +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 + ) +) set projects=%bin_projects% set linux_projects=%bin_linux_projects%