cmake: make DaemonPlatform/Architecture/Compiler/BuildInfo autonomous and reusable #1641
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some revamp of the
DaemonPlatform/DaemonArchitecture/DaemonCompiler/DaemonBuildInfohelper code for CMake.I want this framework to be reusable for other projects, the first user outside of the engine may be the NaCl loader itself, and I may use it for NetRadiant as well at some point. So I made the code fully autonomous and contained in a single folder (so it can be copied and kept it sync easily).
It happens that the endian stuff we did in the
DaemonCompilercode usingEndian.hwas useless (it was not doing better than what theqprocessordetection.hcode does anyway), so I removed it.I also renamed
GAME_PIEtoNACL_PIEbecause it's an NaCl option, it was namedGAME_PIEbecause we only build games as NaCl, but for a self-contained framework we better name the NaCl optionNACL. For now this code setsGAME_PIEto theNACL_PIEvalue but once the game is modified to useNACL_PIEthe code setting theGAME_PIEalias will be deleted.