]> granicus.if.org Git - curl/commitdiff
build-wolfssl: Update VS properties for wolfSSL v3.9.0
authorJay Satiro <raysatiro@yahoo.com>
Tue, 22 Mar 2016 07:03:11 +0000 (03:03 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 22 Mar 2016 07:03:11 +0000 (03:03 -0400)
- Do not use wolfSSL's sample user-setting files.

wolfSSL starting in v3.9.0 has added their own sample user settings that
are applied by default, but we don't use them because we have our own
settings.

- Do not use wolfSSL's Visual Studio Unicode character setting.

wolfSSL Visual Studio projects use the Unicode character set however our
settings and options imitate mingw build which does not use the Unicode
character set. This does not appear to have any effect at the moment but
better safe than sorry.

These changes are backwards compatible with earlier versions.

projects/wolfssl_override.props

index 191ae92d85b6e325a8da90858d5ec427a61dfba5..e37d0b7aaed0363489eeec40334d8434643b605f 100644 (file)
@@ -8,17 +8,22 @@ file by using the CustomAfterMicrosoftCommonTargets property.
 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <ItemDefinitionGroup>
     <ClCompile>
-      <PreprocessorDefinitions>%(PreprocessorDefinitions);
-      </PreprocessorDefinitions>
+      <PreprocessorDefinitions>%(PreprocessorDefinitions);</PreprocessorDefinitions>
       <!--
       Our options file wolfssl_options.h is copied by build-wolfssl to
       $(SolutionDir)\wolfssl\options.h. It includes all the options we need
       to build wolfSSL for compatibility. See wolfssl_options.h for more info.
       -->
-      <ForcedIncludeFiles>%(ForcedIncludeFiles);
-        $(SolutionDir)\wolfssl\options.h;
-      </ForcedIncludeFiles>
+      <ForcedIncludeFiles>$(SolutionDir)\wolfssl\options.h;%(ForcedIncludeFiles);</ForcedIncludeFiles>
+      <!--
+      Do not use the Unicode character set since their mingw config doesn't.
+      Do not use their IDE\WIN\user_settings.h since we have wolfssl_options.h.
+      -->
+      <UndefinePreprocessorDefinitions>_UNICODE;UNICODE;WOLFSSL_USER_SETTINGS;CYASSL_USER_SETTINGS;%(UndefinePreprocessorDefinitions);</UndefinePreprocessorDefinitions>
     </ClCompile>
+    <ResourceCompile>
+      <UndefinePreprocessorDefinitions>_UNICODE;UNICODE;%(UndefinePreprocessorDefinitions);</UndefinePreprocessorDefinitions>
+    </ResourceCompile>
   </ItemDefinitionGroup>
   <!--
   The project GUID for wolfssl.vcxproj is 73973223-5EE8-41CA-8E88-1D60E89A237B.