Compare commits

...

2 Commits

Author SHA1 Message Date
Guus Waals c20f540b47 Tooling setup script 2025-05-27 00:29:22 +08:00
Guus Waals fd4546c1f0 Add editor config 2025-05-27 00:20:35 +08:00
3 changed files with 42 additions and 1 deletions

15
tooling2/.editorconfig Normal file
View File

@ -0,0 +1,15 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
[*.{cpp,hpp,h,c,cc,cxx}]
indent_style = space
indent_size = 2
[*.{json,yml,yaml}]
indent_style = space
indent_size = 2

5
tooling2/.gitignore vendored
View File

@ -1,2 +1,5 @@
build/
.claude/
.claude/
bin/
*.db
*.txt

23
tooling2/setup Normal file
View File

@ -0,0 +1,23 @@
#!/bin/bash
# Create build directory if it doesn't exist
mkdir -p build/tmp
if [ ! -d "build/tmp" ]; then
# Configure project using CMake with Ninja generator for Release build
cmake -S . -B build/tmp -G Ninja -DCMAKE_BUILD_TYPE=Release
fi
# Build project using Ninja
cmake --build build/tmp --config Release
# Create bin directory if it doesn't exist
mkdir -p bin
# Copy binary to bin folder
# Use .exe extension on Windows, no extension on Unix-like systems
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
cp build/tmp/r3_gh_tool.exe bin/
else
cp build/tmp/r3_gh_tool bin/
fi