Add VS2022 DLL Release options.h build configuration #8112
+141
−2
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.
Description
Building on #8090 and #8104, this PR adds a new
DLL Release (config.h)
Build Configuration to the Visual Studio 2022 Project file that instead of using theuser_settings.h
from the IDE/WIN directory, uses the generated wolfsslconfig.h
file.Let's say, for whatever reason, you'd like to used the same wolfssl
options.h
created by a Linux./configure
command, also for a Windows build of a DLL.One place that this might be useful is a NodeJS/NPM module such as my wolfcrypt_nodejs branch used in both Windows and Linux. See also wolfSSL/wolfcrypt_nodejs#8
Without the capability added in this PR, one would need to know both the Linux
./configure
command-line options, as well as the respective settings to exactly match in the Windowsuser_settings.h
.Alternatively, the option of course exists for use a
user_settings.h
in the Linux environment. This PR is only for usingconfig.h
for a Windows build.We'll assume that the respective
./configure
options in WSL are provided to give compatibility in both Windows and Linux.Otherwise, for an example here, if in WSL on 64bit Windows 11 using the
--enable-all
:Add this to the respective generated
options.h
to also use in Windows to address incompatibilities observed for this PR.Fixes zd# n/a
Testing
Tested on Windows 11, Visual Studio 17.11.5, Platform Toolset v143
Checklist