virtualx-engine/platform/windows
Rémi Verschelde 39facb35a0 SCons: Unify tools/target build type configuration
Implements https://github.com/godotengine/godot-proposals/issues/3371.

New `target` presets
====================

The `tools` option is removed and `target` changes to use three new presets,
which match the builds users are familiar with. These targets control the
default optimization level and enable editor-specific and debugging code:

- `editor`: Replaces `tools=yes target=release_debug`.
  * Defines: `TOOLS_ENABLED`, `DEBUG_ENABLED`, `-O2`/`/O2`
- `template_debug`: Replaces `tools=no target=release_debug`.
  * Defines: `DEBUG_ENABLED`, `-O2`/`/O2`
- `template_release`: Replaces `tools=no target=release`.
  * Defines: `-O3`/`/O2`

New `dev_build` option
======================

The previous `target=debug` is now replaced by a separate `dev_build=yes`
option, which can be used in combination with either of the three targets,
and changes the following:

- `dev_build`: Defines `DEV_ENABLED`, disables optimization (`-O0`/`/0d`),
  enables generating debug symbols, does not define `NDEBUG` so `assert()`
  works in thirdparty libraries, adds a `.dev` suffix to the binary name.

Note: Unlike previously, `dev_build` defaults to off so that users who
compile Godot from source get an optimized and small build by default.
Engine contributors should now set `dev_build=yes` in their build scripts or
IDE configuration manually.

Changed binary names
====================

The name of generated binaries and object files are changed too, to follow
this format:

`godot.<platform>.<target>[.dev][.double].<arch>[.<extra_suffix>][.<ext>]`

For example:
- `godot.linuxbsd.editor.dev.arm64`
- `godot.windows.template_release.double.x86_64.mono.exe`

Be sure to update your links/scripts/IDE config accordingly.

More flexible `optimize` and `debug_symbols` options
====================================================

The optimization level and whether to generate debug symbols can be further
specified with the `optimize` and `debug_symbols` options. So the default
values listed above for the various `target` and `dev_build` combinations
are indicative and can be replaced when compiling, e.g.:

`scons p=linuxbsd target=template_debug dev_build=yes optimize=debug`
will make a "debug" export template with dev-only code enabled, `-Og`
optimization level for GCC/Clang, and debug symbols. Perfect for debugging
complex crashes at runtime in an exported project.
2022-09-26 16:31:46 +02:00
..
export Disable menus and functionality that are not relevant on the Android Editor port 2022-09-13 20:48:33 -07:00
crash_handler_windows.cpp [Windows] Improve build environment detection, add support for Windows on ARM. 2022-08-27 16:10:53 +03:00
crash_handler_windows.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
detect.py SCons: Unify tools/target build type configuration 2022-09-26 16:31:46 +02:00
display_server_windows.cpp [Windows] Fix WM_CHAR processing code using Unicode char instead of Virtual key. 2022-09-23 14:16:16 +03:00
display_server_windows.h Merge pull request #65496 from MinusKube/popup-capture-mouse-bug 2022-09-16 09:23:40 +02:00
gl_manager_windows.cpp Fix multiwindow support in GLES3 for X11, Windows, and MacOS. 2022-09-12 17:30:50 -07:00
gl_manager_windows.h Replace most uses of Map by HashMap 2022-05-16 10:37:48 +02:00
godot.ico Change godot.ico to uncompressed/fixed size 2022-02-09 11:20:49 +01:00
godot.natvis added more data structures to Natvis for msdev 2022-09-04 12:06:26 -04:00
godot_res.rc
godot_windows.cpp Fix exit code of --help and --version, and test them in CI 2022-07-02 01:17:35 +02:00
joypad_windows.cpp Fix some issues found by cppcheck. 2022-04-06 14:34:37 +03:00
joypad_windows.h Zero initialize all pointer class and struct members 2022-04-04 19:49:50 +02:00
key_mapping_windows.cpp Adding function key support from F17 to F35 2022-06-16 19:38:21 +02:00
key_mapping_windows.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
lang_table.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
logo.png
os_windows.cpp Add get_distribution_name() and get_version() to OS 2022-09-16 11:17:36 +02:00
os_windows.h Add get_distribution_name() and get_version() to OS 2022-09-16 11:17:36 +02:00
platform_config.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
platform_windows_builders.py Unify bits, arch, and android_arch into env["arch"] 2022-08-25 11:19:20 +02:00
README.md [Web] Rename JavaScript platform to Web. 2022-08-29 11:52:00 +02:00
SCsub Implement text-to-speech support on Android, iOS, HTML5, Linux, macOS and Windows. 2022-04-28 14:35:41 +03:00
tts_windows.cpp Fix typos with codespell 2022-05-23 21:32:19 +02:00
tts_windows.h Replace most uses of Map by HashMap 2022-05-16 10:37:48 +02:00
vulkan_context_win.cpp opengl3 driver now works on windows including multi window 2022-05-11 16:12:40 -04:00
vulkan_context_win.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
windows_terminal_logger.cpp Style: Cleanup single-line blocks, semicolons, dead code 2022-02-16 14:06:29 +01:00
windows_terminal_logger.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00

Windows platform port

This folder contains the C++ code for the Windows platform port.

See also misc/dist/windows folder for additional files used by this platform.

Documentation