From 5056fe18f9be09cdab59ab6019cd773638b9ac3a Mon Sep 17 00:00:00 2001 From: ChiKyun Kim Date: Fri, 12 Sep 2025 09:44:08 +0900 Subject: [PATCH] feat: Add bin directory output for C++ builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update C++/build.bat to create bin/ directory and output executable there - Update C++/build.sh to create bin/ directory and output executable there - Update build_all.bat to check for C++/bin/V2GDecoder.exe - Update build_all.sh to check for C++/bin/V2GDecoder - Test successful: C++/bin/V2GDecoder.exe working correctly with sample files πŸ€– Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- C++/build.bat | 10 ++++++++-- C++/build.sh | 9 ++++++--- build_all.bat | 4 ++-- build_all.sh | 2 +- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/C++/build.bat b/C++/build.bat index 1112461..dec4365 100644 --- a/C++/build.bat +++ b/C++/build.bat @@ -1,7 +1,10 @@ @echo off echo Building V2GDecoder... -gcc -o V2GDecoder V2GDecoder.c ^ +rem bin 폴더 생성 +if not exist "bin" mkdir bin + +gcc -o bin/V2GDecoder V2GDecoder.c ^ src/iso1/*.c ^ src/iso2/*.c ^ src/din/*.c ^ @@ -12,7 +15,10 @@ gcc -o V2GDecoder V2GDecoder.c ^ -I./src/din if %ERRORLEVEL% EQU 0 ( - echo Build successful! V2GDecoder.exe created. + echo Build successful! bin/V2GDecoder.exe created. + echo. + echo Usage: + echo bin\V2GDecoder.exe ..\Sample\test5.exi ) else ( echo Build failed with error code %ERRORLEVEL% ) diff --git a/C++/build.sh b/C++/build.sh index 3a3a2db..13f85bb 100644 --- a/C++/build.sh +++ b/C++/build.sh @@ -1,7 +1,10 @@ #!/bin/bash echo "Building V2GDecoder..." -gcc -o V2GDecoder V2GDecoder.c \ +# bin 폴더 생성 +mkdir -p bin + +gcc -o bin/V2GDecoder V2GDecoder.c \ src/iso1/*.c \ src/iso2/*.c \ src/din/*.c \ @@ -13,10 +16,10 @@ gcc -o V2GDecoder V2GDecoder.c \ -Wall -O2 if [ $? -eq 0 ]; then - echo "Build successful! V2GDecoder created." + echo "Build successful! bin/V2GDecoder created." echo echo "Usage:" - echo " ./V2GDecoder ../Sample/test5.exi" + echo " ./bin/V2GDecoder ../Sample/test5.exi" else echo "Build failed with error code $?" exit 1 diff --git a/build_all.bat b/build_all.bat index d80c20f..6b31782 100644 --- a/build_all.bat +++ b/build_all.bat @@ -73,8 +73,8 @@ if %BUILD_ERROR% equ 0 ( if exist "VC\x64\Debug\V2GDecoder.exe" ( echo πŸ“¦ VC2022: VC\x64\Debug\V2GDecoder.exe ) - if exist "C++\V2GDecoder.exe" ( - echo πŸ“¦ C++: C++\V2GDecoder.exe + if exist "C++\bin\V2GDecoder.exe" ( + echo πŸ“¦ C++: C++\bin\V2GDecoder.exe ) echo. diff --git a/build_all.sh b/build_all.sh index 7917735..61c884d 100644 --- a/build_all.sh +++ b/build_all.sh @@ -96,7 +96,7 @@ if [ $BUILD_ERROR -eq 0 ]; then echo "μƒμ„±λœ μ‹€ν–‰ νŒŒμΌλ“€:" [ -f "DotNet/bin/Release/net8.0/V2GDecoderNet.dll" ] && echo " πŸ“¦ .NET: DotNet/bin/Release/net8.0/V2GDecoderNet.dll" [ -f "V2GDecoder_gcc" ] && echo " πŸ“¦ GCC: V2GDecoder_gcc" - [ -f "C++/V2GDecoder" ] && echo " πŸ“¦ C++: C++/V2GDecoder" + [ -f "C++/bin/V2GDecoder" ] && echo " πŸ“¦ C++: C++/bin/V2GDecoder" echo echo "μ‚¬μš©λ²•:"