This is the source for the statically linked libraries used in Qfusion, with the settings we use for building them.
- open visual studio, locate the project file in zlib\contrib\vstudio\vc[v:9,10]\zlibstat.vc[x]project
- go to the tools menu -> visual studio command prompt
- in the command prompt, locate the zlib directory
- type:
nmake -f win32/Makefile.msc clean
- to compile with no ASM code, type:
nmake -f win32/Makefile.msc OBJA="inffast.obj" zlib.lib
To build optimized library: x86:nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" OBJA="inffas32.obj match686.obj" zlib.lib
x64:nmake -f win32/Makefile.msc AS=ml64 LOC="-DASMV -DASMINF" OBJA="inffasx64.obj gvmat64.obj inffas8664.c" zlib.lib
- locate and copy the zlib.lib file
- open visual studio, go to the tools menu -> visual studio command prompt
- in command prompt change current directory to libcurl/lib
- type:
nmake /f Makefile.vc10 clean
- to build debug configuration, type:
nmake CFG=debug-zlib /f Makefile.vc10
alternatively, to build release configuration, type:nmake CFG=release-zlib /f Makefile.vc10
- locate and copy the libcurl.lib file in either 'debug-zlib' or 'release-zlib' directory
Some libcrypto assembly files were pre-converted to make OpenSSL buildable without Perl.
Also the symlink paths in include
were changed to real #include
directives.
The build scripts for Android depend on these changes, make sure the above is applied when updating OpenSSL.