diff options
author | 2023-09-07 22:06:30 +0200 | |
---|---|---|
committer | 2023-09-25 00:12:48 +0200 | |
commit | 60b62e370ee566010f88e65df3981125dc17be2d (patch) | |
tree | 48e2b2d22cea391ca4b653a8fd2a351657f1b630 /docs/contribution/run-build-and-export.md | |
parent | a579fa30b9faced48499028f32e3ae53d7eeb142 (diff) |
Simplify README.md
Add system-requirements.md
Add using-git-bisect.md
Add run-build-export.md
Add cloning.md
Add debugging.md
Add rebasing.md
Includes PR squashing
Simplify .vscode/launch.json
Diffstat (limited to 'docs/contribution/run-build-and-export.md')
-rw-r--r-- | docs/contribution/run-build-and-export.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/contribution/run-build-and-export.md b/docs/contribution/run-build-and-export.md new file mode 100644 index 0000000..99acd9a --- /dev/null +++ b/docs/contribution/run-build-and-export.md @@ -0,0 +1,31 @@ +# Run, Build, and Export + +If you have haven't read the quick intro to Git see [Cloning](cloning.md) and [System Requirements](system-requirements.md) first. + +## Run + +With the project installed and system requirements ready: + +1. Run `scons` in the project root. + * Ensure a `game/bin/openvic/libopenvic` file is produced for your platform (windows, linux, macos) +2. Open Godot, click import, naivgate to the `game` directory and click `Import and Edit`. + * Wait for the import to finish, close the editor without saving, then reopen the project in Godot. +3. Press the play button at the top right of the editor. + +## Build +* To build for debug run `scons` in the project root. +* To build for debug with debug symbols and breakpoints run `scons dev_build=yes debug_symbols=yes` in the project root. +* To build for release run `scons target=template_release` + +## Export +1. Build `scons` with either debug or release: + * For debug just run `scons` or `scons target=template_debug` + * For release just run `scons target=template_release` +2. Open Godot and open the project. +3. Click `Project` at the top left and click `Export`. + * If you do not have templates, download and install them, wait for them to complete. +4. Click `Export Project...` + * If you built all binaries, you can click `Export All` and select debug or release there. +5. A file popup will appear, to export click `Save`: + * If you built scons with debug, leave `Export With Debug` ticked. + * Else untick `Export With Debug` for release.
\ No newline at end of file |