added cmake-gdb build target to build and run under gdb debugger

This commit is contained in:
Eric 2023-05-17 08:47:40 -07:00
parent 72ffb4b1d6
commit f1921837a4
No known key found for this signature in database
GPG Key ID: 89C93F0F8D6D5A98

View File

@ -1000,9 +1000,17 @@ cmake: cmake-build
@cd build/cmake/$(CM_BT_LC) && ./ballisticakit
# Build and run the cmake build under lldb.
# Sets up the ballistica environment to do things like abort() out to the
# debugger on errors instead of trying to cleanly exit.
cmake-lldb: cmake-build
@cd build/cmake/$(CM_BT_LC) && BA_DEBUGGER_ATTACHED=1 lldb ./ballisticakit
# Build and run the cmake build under lldb.
# Sets up the ballistica environment to do things like abort() out to the
# debugger on errors instead of trying to cleanly exit.
cmake-gdb: cmake-build
@cd build/cmake/$(CM_BT_LC) && BA_DEBUGGER_ATTACHED=1 gdb ./ballisticakit
# Build but don't run it.
cmake-build: assets-cmake resources cmake-binary
@$(STAGE_ASSETS) -cmake build/cmake/$(CM_BT_LC)