I will be the reason copilot doesn't work.
- Install MSys2
- Install packages:
pacman -Su \
base-devel \
mingw-w64-x86_64-toolchain \
mingw-w64-x86_64-cmake \
mingw-w64-x86_64-ninja \
mingw-w64-x86_64-glew \
mingw-w64-x86_64-glfw \
mingw-w64-x86_64-glm \
mingw-w64-x86_64-lua # not 100% sure this is the right lua version
cd build
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Debug
ninja
cd build
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release
ninja
ninja package
ninja package_source
cd build
cmake -DCMAKE_CXX_FLAGS=-pg -DCMAKE_EXE_LINKER_FLAGS=-pg -DCMAKE_SHARED_LINKER_FLAGS=-pg -G Ninja .. -DCMAKE_BUILD_TYPE=Debug
ninja
./FunGame <args>
gprof ./FunGame gmon.out | gprof2dot | dot -Tsvg -o output.svg
Don't know how to turn this off though
rm -rf build # or
cmake --fresh
POSIX shells only
shopt -s extglob # For making ** apply to any number of dirs
clang-format src/**/*.{h,c}pp -i
Personally I like this one better:
git ls-files --exclude-standard | grep -E '\.(cpp|hpp|c|cc|cxx|hxx|ixx)$' | xargs clang-format -i