updates romeo to be its own solution
This commit is contained in:
+16
-14
@@ -4,7 +4,9 @@ setlocal
|
||||
:: --- 1. Argument Parsing Logic ---
|
||||
set "ARG1="
|
||||
set "ARG2="
|
||||
set "ARG3="
|
||||
set "AUTOCLOSE=0"
|
||||
set "CUSTOM_EXE="
|
||||
|
||||
for %%x in (%*) do (
|
||||
if /I "%%~x"=="autoclose" (
|
||||
@@ -14,6 +16,8 @@ for %%x in (%*) do (
|
||||
set "ARG1=%%~x"
|
||||
) else if not defined ARG2 (
|
||||
set "ARG2=%%~x"
|
||||
) else if not defined ARG3 (
|
||||
set "ARG3=%%~x"
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -21,20 +25,19 @@ for %%x in (%*) do (
|
||||
:: Set Defaults
|
||||
set "COMPILER_TYPE=clang"
|
||||
set "CONFIG=Debug"
|
||||
set "APP_EXE=JulietApp.exe"
|
||||
|
||||
:: Check if the first argument is a Configuration instead of a Compiler
|
||||
if /I "%ARG1%"=="Release" (
|
||||
set "CONFIG=Release"
|
||||
) else if /I "%ARG1%"=="Profile" (
|
||||
set "CONFIG=Profile"
|
||||
) else if /I "%ARG1%"=="Debug" (
|
||||
set "CONFIG=Debug"
|
||||
) else if /I "%ARG1%"=="msvc" (
|
||||
set "COMPILER_TYPE=msvc"
|
||||
if not "%ARG2%"=="" set "CONFIG=%ARG2%"
|
||||
) else if /I "%ARG1%"=="clang" (
|
||||
set "COMPILER_TYPE=clang"
|
||||
if not "%ARG2%"=="" set "CONFIG=%ARG2%"
|
||||
:: Check for Configuration, Compiler, or custom EXE name
|
||||
:: (Assuming the custom EXE name is passed as the final argument if needed)
|
||||
for %%i in (%ARG1% %ARG2% %ARG3%) do (
|
||||
if /I "%%i"=="Release" set "CONFIG=Release"
|
||||
if /I "%%i"=="Profile" set "CONFIG=Profile"
|
||||
if /I "%%i"=="Debug" set "CONFIG=Debug"
|
||||
if /I "%%i"=="msvc" set "COMPILER_TYPE=msvc"
|
||||
if /I "%%i"=="clang" set "COMPILER_TYPE=clang"
|
||||
|
||||
:: If argument contains .exe, treat it as the target executable name
|
||||
echo %%i | findstr /i ".exe" >nul && set "APP_EXE=%%i"
|
||||
)
|
||||
|
||||
:: --- 2. Map Compiler to Platform ---
|
||||
@@ -46,7 +49,6 @@ if /I "%COMPILER_TYPE%"=="clang" (
|
||||
|
||||
:: --- 3. Construct Paths ---
|
||||
set "APP_DIR=bin\%PLATFORM%-%CONFIG%"
|
||||
set "APP_EXE=JulietApp.exe"
|
||||
|
||||
echo --- Launching %APP_EXE% ---
|
||||
echo Platform: %PLATFORM%
|
||||
|
||||
Reference in New Issue
Block a user