File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed 
scripts/build_dependencies Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION  3.9...3.31)
2+ 
3+ 
24project (aws-crt-nodejs C)
35option (BUILD_DEPS "Builds aws common runtime dependencies as part of build, only do this if you don't want to control your dependency chain."  ON )
46
Original file line number Diff line number Diff line change 1+ set  AWS_CRT_WINDOWS_SDK_VERSION = 10.0.17763.0
2+ 
13npm install ||  goto  error
24
35:error 
Original file line number Diff line number Diff line change @@ -98,6 +98,15 @@ module.exports = {
9898            options . cMakeOptions . CMAKE_OSX_DEPLOYMENT_TARGET  =  "10.15" ; 
9999        } 
100100
101+         // Set the target windows SDK version. We have a minimum required version of the Windows SDK needed for schannel.h with SCH_CREDENTIALS and 
102+         // TLS_PARAMETERS. These are required to build Windows Binaries with TLS 1.3 support. 
103+         // Please note CMAKE_SYSTEM_NAME is only valid for cmake < 3.27. Currently, we dont have a proper way to support cmake 3.27+ 
104+         // Introduced in cmake 3.27+, the generator string supports a version field to specify the windows sdk version in use 
105+         // https://cmake.org/cmake/help/latest/variable/CMAKE_GENERATOR_PLATFORM.html#variable:CMAKE_GENERATOR_PLATFORM 
106+         if ( process . env . AWS_CRT_WINDOWS_SDK_VERSION  &&  platform  ==  'win32' )  { 
107+             options . cMakeOptions . CMAKE_SYSTEM_VERSION  =  process . env . AWS_CRT_WINDOWS_SDK_VERSION 
108+         } 
109+ 
101110        // Convert any -D arguments to this script to cmake -D arguments 
102111        for  ( const  arg  of  process . argv )  { 
103112            if  ( arg . startsWith ( '-D' ) )  { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments