godot/scene
Rémi Verschelde d79a7a2773 Refactor version macros and fix related bugs
The previous logic with VERSION_MKSTRING was a bit unwieldy, so there were
several places hardcoding their own variant of the version string, potentially
with bugs (e.g. forgetting the patch number when defined).

The new logic defines:

- VERSION_BRANCH, the main 'major.minor' version (e.g. 3.1)
- VERSION_NUMBER, which can be 'major.minor' or 'major.minor.patch',
  depending on whether the latter is defined (e.g. 3.1.4)
- VERSION_FULL_CONFIG, which contains the version status (e.g. stable)
  and the module-specific suffix (e.g. mono)
- VERSION_FULL_BUILD, same as above but with build/reference name
  (e.g. official, custom_build, mageia, etc.)
  Note: Slight change here, as the previous format had the build name
  *before* the module-specific suffix; now it's after
- VERSION_FULL_NAME, same as before, so VERSION_FULL_BUILD prefixed
  with "Godot v" for readability

Bugs fixed thanks to that:

- Export templates version matching now properly takes VERSION_PATCH
  into account by relying on VERSION_FULL_CONFIG.
- ClassDB hash no longer takes the build name into account, but limits
  itself to VERSION_FULL_CONFIG (build name is cosmetic, not relevant
  for the API hash).
- Docs XML no longer hardcode the VERSION_STATUS, this was annoying.
- Small cleanup in Windows .rc file thanks to new macros.

(cherry picked from commit 23ebae01dc)
2018-02-24 01:34:34 +01:00
..
2d Clean up some bad words from code comments 2018-02-22 12:22:41 +01:00
3d Clean up some bad words from code comments 2018-02-22 12:22:41 +01:00
animation Remove duplicate "autoplay" property 2018-01-25 16:17:35 +02:00
audio Fix issue 15895, audio streams don't signalling finished after the first one 2018-02-04 19:56:37 +01:00
gui Fix quotation in string 2018-02-22 13:23:44 +01:00
main Refactor version macros and fix related bugs 2018-02-24 01:34:34 +01:00
resources Refactor version macros and fix related bugs 2018-02-24 01:34:34 +01:00
SCsub disable caching for targets using helper functions 2017-11-28 23:24:12 -04:00
register_scene_types.cpp BMFont loading direct support from .fnt files. 2018-01-16 17:58:04 -03:00
register_scene_types.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
scene_string_names.cpp Renamed tree_exited to tree_exiting. tree_exited is now used for actual out of tree notification. 2018-01-12 08:29:24 -03:00
scene_string_names.h Renamed tree_exited to tree_exiting. tree_exited is now used for actual out of tree notification. 2018-01-12 08:29:24 -03:00