Add -BuildArches to specify what platforms to build for (ie "x86 arm64") #100
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.
Removed much of the platform specific code redundancy
Fixes #98.
Most is pretty straightforward but a few specific notes:
-- Added -Wno-dev to cmake calls, this suppresses some warnings that were dumping to screen but not causing an issue for the build. The flag is only for author of the CMakeLists.txt per https://cmake.org/cmake/help/latest/manual/cmake.1.html#manual:cmake(1) I believe we are using the generator to do this and not ourselves.
-- In the current build.ps1 there is a step that
# Make sure there is a 32bit and 64bit version for the specified build
and that they are the same version. It still does this check but it does it as it goes so will start downloading versions and only stop once it detects there is a mismatch. Done this way to just save an extra loop and because I couldn't think of any harm coming of it.-- The way I am building the nuspec for the runtime is a bit sloppy with hardcoded strings in the build.ps1 script. Using an actual templating engine would be better, but as this is powershell it seemed easiest to do this small replacement in this fashion.