I have built hbssl.lib this way:
go.bat
- Code: Select all Expand view
- @set oldinclude=%include%
@set oldlib=%lib%
@set oldlibpath=%libpath%
if exist "%ProgramFiles%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" call "%ProgramFiles%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ bio.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ err.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ evp.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ evpciph.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ evpenc.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ evpmd.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ evppkey.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ pem.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ rand.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ ssl.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ ssl_hb.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ ssl_inet.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ ssl_sock.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ sslciph.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ sslctx.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ sslsess.c
cl -TC -W3 -O2 -c -Ic:\harbour\include -Ic:\ x509.c
Lib /DEF:hbssl.def /OUT:hbssl.lib
Lib hbssl.lib /OUT:hbssl.lib bio.obj err.obj evp.obj evpciph.obj evpenc.obj evpmd.obj evppkey.obj pem.obj rand.obj ssl.obj ssl_hb.obj ssl_inet.obj ssl_sock.obj sslciph.obj sslctx.obj x509.obj
@set path=%oldpath%
@set include=%oldinclude%
@set lib=%oldlib%
@set libpath=%oldlibpath%
@set oldpath=""
@set oldinclude=""
@set oldlib=
@set oldlibpath=
Where hbssl.def is:
- Code: Select all Expand view
- LIBRARY hbssl
DESCRIPTION 'hbssl'
EXPORTS
dummy @1
I downloaded the required header files from here:
https://www.openssl.org/source/
Here you have the lib for VSC2015:
https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/hbssl_vsc2015.zip