Index: win/README.txt ================================================================== --- win/README.txt +++ win/README.txt @@ -34,19 +34,19 @@ https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/win64/nasm-2.16.01-installer-x64.exe Install to: C:\Program Files\NASM (1d) Configure Open SSL 1.1.1 - At Visual Studio x86 native prompt: + At Visual Studio x64 native prompt: set Path=%PATH%;C:\Program Files\NASM;C:\Strawberry\perl\bin perl ..\Configure VC-WIN64A no-shared no-filenames threads no-ssl2 no-ssl3 --api=1.1.0 --prefix="%SSLINSTALL%" --openssldir="%SSLCOMMON%" -DOPENSSL_NO_DEPRECATED # Not used options: no-asm no-zlib no-comp no-ui-console no-autoload-config (1e) Configure Open SSL 3.0+ - At Visual Studio x86 native prompt: + At Visual Studio x64 native prompt: set Path=%PATH%;C:\Program Files\NASM;C:\Strawberry\perl\bin perl ..\Configure VC-WIN64A no-shared no-filenames threads no-ssl2 no-ssl3 --prefix="%SSLINSTALL%" --openssldir="%SSLCOMMON%" # Not used options: no-asm no-zlib no-comp no-ui-console no-autoload-config @@ -58,28 +58,30 @@ ----------------------------- 2) Build TclTLS -set BUILDDIR=\path\to\build\dir -set TCLINSTALL=\path\to\tcl\dir + set BUILDDIR=\path\to\build\dir + set TCLINSTALL=\path\to\tcl\dir 2a) Unzip distribution to %BUILDDIR% 2b) Start BASH shell (MinGW62 Git shell) -cd %BUILDDIR% -od -A n -v -t xC < 'library/tls.tcl' > tls.tcl.h.new.1 -sed 's@[^0-9A-Fa-f]@@g;s@..@0x&, @g' < tls.tcl.h.new.1 > generic/tls.tcl.h -rm -f tls.tcl.h.new.1 + cd %BUILDDIR% + od -A n -v -t xC < 'library/tls.tcl' > tls.tcl.h.new.1 + sed 's@[^0-9A-Fa-f]@@g;s@..@0x&, @g' < tls.tcl.h.new.1 > generic/tls.tcl.h + rm -f tls.tcl.h.new.1 2c) Start Visual Studio shell -cd %BUILDDIR%\win + At Visual Studio x64 native prompt: + + cd %BUILDDIR%\win -nmake -f makefile.vc TCLDIR=%TCLINSTALL% SSL_INSTALL_FOLDER=%SSLINSTALL% -nmake -f makefile.vc install TCLDIR=c:\test\tcl8610 INSTALLDIR=%TCLINSTALL% SSL_INSTALL_FOLDER=%SSLINSTALL% + nmake -f makefile.vc TCLDIR=%TCLINSTALL% SSL_INSTALL_FOLDER=%SSLINSTALL% + nmake -f makefile.vc install TCLDIR=c:\test\tcl8610 INSTALLDIR=%TCLINSTALL% SSL_INSTALL_FOLDER=%SSLINSTALL% ----------------------------- 3) Test Index: win/makefile.vc ================================================================== --- win/makefile.vc +++ win/makefile.vc @@ -63,8 +63,14 @@ # The default install target only installs binaries and scripts so add # an additional target for our documentation. Note this *adds* a target # since no commands are listed after it. The original targets for # install (from targets.vc) will remain. install: default-pkgindex-tea default-install default-install-docs-html + if exist "$(SSL_INSTALL_FOLDER)\bin\libcrypto-*-x64.dll" ( + xcopy /c /y "$(SSL_INSTALL_FOLDER)\bin\libcrypto-*-x64.dll" "$(PRJ_INSTALL_DIR)" + ) + if exist "$(SSL_INSTALL_FOLDER)\bin\libssl-*-x64.dll" ( + xcopy /c /y "$(SSL_INSTALL_FOLDER)\bin\libssl-*-x64.dll" "$(PRJ_INSTALL_DIR)" + ) # Test package test: default-test