Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dosbox-staging/dosbox-staging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkcgen <1557255+kcgen@users.noreply.github.com>2021-08-26 16:54:31 +0300
committerkcgen <1557255+kcgen@users.noreply.github.com>2021-08-26 16:54:31 +0300
commitf8fecfda130d3fad50a85c9b8352d04ebaeac7ab (patch)
treed236edd9da21da86a52877122094305798d395e9 /BUILD.md
parentff3cf1ac545e7be62878ed64e7d86a9b2dc788c9 (diff)
Document how to configure debugger builds
Diffstat (limited to 'BUILD.md')
-rw-r--r--BUILD.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/BUILD.md b/BUILD.md
index f695dd664..6842ea589 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -19,6 +19,41 @@ on any modern system. Documentation for programmers using other systems:
[macOS]: docs/build-macos.md
[Haiku]: docs/build-haiku.md
+## Make a build with the built-in debugger
+
+On Linux, BSD, macOS, or MSYS2: install the `ncurses` development library
+with headers included (as opposed to the bare library), and then:
+
+``` shell
+# setup the default debugger
+meson setup -Dbuildtype=release -Denable_debugger=normal build/debugger
+# -or- setup the heavy debugger
+meson setup -Dbuildtype=release -Denable_debugger=heavy build/debugger
+# build
+ninja -C build/debugger
+```
+
+If using Visual Studio, install `libcurses` using vcpkg and change
+the `C_DEBUG` and optionally the `C_HEAVY_DEBUG` lines inside
+`src/platform/visualc/config.h`.
+
+Default debugger:
+
+``` c++
+#define C_DEBUG 1
+#define C_HEAVY_DEBUG 0
+```
+
+Heavy debugger:
+
+``` c++
+#define C_DEBUG 1
+#define C_HEAVY_DEBUG 1
+```
+
+Then perform a release build.
+
+
## Meson build snippets
### Make a debug build