def main(): # Create folder create_folder(TEST_DIR + '/nassl/') # Build Zlib ZLIB_BUILD_TASKS = [ 'CFLAGS="-fPIC" ./configure -static', 'make clean', 'make' ] perform_build_task('ZLIB', ZLIB_BUILD_TASKS, ZLIB_DIR) # Build OpenSSL OPENSSL_BUILD_TASKS = [ OPENSSL_CONF_CMD(OPENSSL_TARGET, OPENSSL_INSTALL_DIR, ZLIB_DIR, ZLIB_DIR) + ' -fPIC', 'make clean', 'make depend', 'make', 'make test', 'make install' ] perform_build_task('OPENSSL', OPENSSL_BUILD_TASKS, OPENSSL_DIR) # Build nassl NASSL_BUILD_TASKS = [ 'python setup_unix.py build', 'cp -R ' + NASSL_INSTALL_DIR + '* ' + TEST_DIR ] perform_build_task('NASSL', NASSL_BUILD_TASKS) # Test nassl NASSL_TEST_TASKS = ['python -m unittest discover --pattern=*_Tests.py'] perform_build_task('NASSL Tests', NASSL_TEST_TASKS, TEST_DIR) print '=== All Done! Compiled module is available in ./test/nassl/ ==='
def main(): # Create folder create_folder(join(TEST_DIR, 'nassl')) openssl_internal_dir = join(OPENSSL_INSTALL_DIR, "include", "openssl-internal") create_folder(openssl_internal_dir) # Build Zlib ZLIB_BUILD_TASKS = [ 'bld_ml64.bat', 'vcbuild /rebuild ..\\vstudio\\vc9\\zlibvc.sln "Release|x64"' ] perform_build_task('ZLIB', ZLIB_BUILD_TASKS, ZLIB_DIR + '\\contrib\\masmx64\\') # Build OpenSSL OPENSSL_BUILD_TASKS = [ OPENSSL_CONF_CMD('VC-WIN64A', OPENSSL_INSTALL_DIR, ZLIB_DIR, ZLIB_LIB_DIR) + ' -DZLIB_WINAPI', # *hate* zlib 'ms\\do_win64a.bat', #'nmake -f ms\\nt.mak clean', # This mysteriously fails on win64 'nmake -f ms\\nt.mak', 'nmake -f ms\\nt.mak install', 'xcopy /y %s %s' % (join(OPENSSL_DIR, 'e_os.h'), openssl_internal_dir ), # copy some internal headers for accessing EDH and ECDH parameters 'xcopy /y %s %s' % (join(OPENSSL_DIR, 'ssl', 'ssl_locl.h'), openssl_internal_dir) ] perform_build_task('OPENSSL', OPENSSL_BUILD_TASKS, OPENSSL_DIR) # Build nassl NASSL_BUILD_TASKS = [ 'python setup_win64.py build --plat-name=win-amd64', 'xcopy /y /s ' + NASSL_INSTALL_DIR + ' ' + TEST_DIR ] perform_build_task('NASSL', NASSL_BUILD_TASKS) # Test nassl NASSL_TEST_TASKS = [ 'C:\\Python27\\python.exe -m unittest discover --pattern=*_Tests.py' ] perform_build_task('NASSL Tests', NASSL_TEST_TASKS, TEST_DIR) print '=== All Done! Compiled module is available in ./test/nassl/ ==='
def main(): # Create folder create_folder(TEST_DIR + '/nassl/') openssl_internal_dir = join(OPENSSL_INSTALL_DIR, "include", "openssl-internal") create_folder(openssl_internal_dir) # Build Zlib ZLIB_BUILD_TASKS = [ 'CFLAGS="-fPIC" ./configure -static', 'make clean', 'make' ] perform_build_task('ZLIB', ZLIB_BUILD_TASKS, ZLIB_DIR) # Build OpenSSL OPENSSL_BUILD_TASKS = [ OPENSSL_CONF_CMD(OPENSSL_TARGET, OPENSSL_INSTALL_DIR, ZLIB_DIR, ZLIB_DIR) + ' -fPIC', 'make clean', #'make depend', # This makes building with Clang on OS X fail 'make', 'make test', 'make install_sw', # don't build documentation, else will fail on Debian 'mkdir -p %s' % (openssl_internal_dir ), # copy some internal headers for accessing EDH and ECDH parameters 'cp %s %s/' % (join(OPENSSL_DIR, 'e_os.h'), openssl_internal_dir), 'cp %s %s/' % (join(OPENSSL_DIR, 'ssl', 'ssl_locl.h'), openssl_internal_dir) ] perform_build_task('OPENSSL', OPENSSL_BUILD_TASKS, OPENSSL_DIR) # Build nassl NASSL_BUILD_TASKS = [ 'python setup_unix.py build', 'cp -R ' + NASSL_INSTALL_DIR + '* ' + TEST_DIR ] perform_build_task('NASSL', NASSL_BUILD_TASKS) # Test nassl NASSL_TEST_TASKS = ['python -m unittest discover --pattern=*_Tests.py'] perform_build_task('NASSL Tests', NASSL_TEST_TASKS, TEST_DIR) print '=== All Done! Compiled module is available in ./test/nassl/ ==='
def main(): # Create folder create_folder(join(TEST_DIR, 'nassl')) # Build Zlib ZLIB_BUILD_TASKS = [ 'bld_ml32.bat', 'vcbuild /rebuild ..\\vstudio\\vc9\\zlibvc.sln "Release|Win32"' ] perform_build_task('ZLIB', ZLIB_BUILD_TASKS, ZLIB_DIR + '\\contrib\\masmx86\\') # Build OpenSSL OPENSSL_BUILD_TASKS = [ OPENSSL_CONF_CMD('VC-WIN32', OPENSSL_INSTALL_DIR, ZLIB_DIR, ZLIB_LIB_DIR) + ' -DZLIB_WINAPI', # *hate* zlib 'ms\\do_ms', 'nmake -f ms\\nt.mak clean', 'nmake -f ms\\nt.mak', 'nmake -f ms\\nt.mak install' ] perform_build_task('OPENSSL', OPENSSL_BUILD_TASKS, OPENSSL_DIR) # Build nassl NASSL_BUILD_TASKS = [ 'python setup_win32.py build --plat-name=win32', 'xcopy /y /s ' + NASSL_INSTALL_DIR + ' ' + TEST_DIR ] perform_build_task('NASSL', NASSL_BUILD_TASKS) # Test nassl NASSL_TEST_TASKS = [ 'C:\\Python27_32\\python.exe -m unittest discover --pattern=*_Tests.py' ] perform_build_task('NASSL Tests', NASSL_TEST_TASKS, TEST_DIR) print '=== All Done! Compiled module is available in ./test/nassl/ ==='