From 2336111aef67cf9946a468b757bcebbfcad713de Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 23 Nov 2007 07:05:03 +0000 Subject: [PATCH] Backport of PCbuild9 fixes from py3k r59130 --- PCbuild9/_ssl.vcproj | 16 ++++----- PCbuild9/build_ssl.py | 67 +++++++++++++++++++++++++++++------ PCbuild9/pginstrument.vsprops | 11 ++++++ PCbuild9/pyd.vsprops | 4 +++ PCbuild9/pyd_d.vsprops | 4 +++ 5 files changed, 83 insertions(+), 19 deletions(-) diff --git a/PCbuild9/_ssl.vcproj b/PCbuild9/_ssl.vcproj index de329956c92..ddd396ae5ca 100644 --- a/PCbuild9/_ssl.vcproj +++ b/PCbuild9/_ssl.vcproj @@ -27,7 +27,7 @@ > "+makefile) + if debug: + print("OpenSSL debug builds aren't supported.") + #if arch=="x86" and debug: + # # the do_masm script in openssl doesn't generate a debug + # # build makefile so we generate it here: + # os.system("perl util\mk1mf.pl debug "+configure+" >"+makefile) - if arch == "amd64": - fix_makefile(makefile, m32) + if arch == "amd64": + create_makefile64(makefile, m32) + fix_makefile(makefile) + shutil.copy(r"crypto\buildinf.h", r"crypto\buildinf_%s.h" % arch) + shutil.copy(r"crypto\opensslconf.h", r"crypto\opensslconf_%s.h" % arch) # Now run make. - makeCommand = "nmake /nologo PERL=\"%s\" -f \"%s\"" %(perl, makefile) + if arch == "amd64": + rc = os.system(r"ml64 -c -Foms\uptable.obj ms\uptable.asm") + if rc: + print("ml64 assembler has failed.") + sys.exit(rc) + + shutil.copy(r"crypto\buildinf_%s.h" % arch, r"crypto\buildinf.h") + shutil.copy(r"crypto\opensslconf_%s.h" % arch, r"crypto\opensslconf.h") + + #makeCommand = "nmake /nologo PERL=\"%s\" -f \"%s\"" %(perl, makefile) + makeCommand = "nmake /nologo -f \"%s\"" % makefile print("Executing ssl makefiles:", makeCommand) sys.stdout.flush() rc = os.system(makeCommand) diff --git a/PCbuild9/pginstrument.vsprops b/PCbuild9/pginstrument.vsprops index 1b08c5d5527..cd904d3f4c2 100644 --- a/PCbuild9/pginstrument.vsprops +++ b/PCbuild9/pginstrument.vsprops @@ -8,10 +8,21 @@ > + diff --git a/PCbuild9/pyd_d.vsprops b/PCbuild9/pyd_d.vsprops index 3113381daa4..ea9041794cd 100644 --- a/PCbuild9/pyd_d.vsprops +++ b/PCbuild9/pyd_d.vsprops @@ -24,4 +24,8 @@ Name="VCPostBuildEventTool" CommandLine="" /> +