Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions ship/make_msvc_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
os.chdir(common_ship.topDir)

MSVC_VERSION_TABLE = {
"2022" : {
"package_name" : "msvc2022",
"gyp_version" : "2022",
"common_tools_env" : "VS170COMNTOOLS",
"xp_toolset" : "v170_xp",
},
"2015" : {
"package_name" : "msvc2015",
"gyp_version" : "2015",
Expand All @@ -56,14 +62,17 @@
"x64" : {
"msvc_platform" : "x64",
},
"arm64" : {
"msvc_platform" : "arm64",
},
"ia32" : {
"msvc_platform" : "Win32",
},
}

def readArguments():
parser = argparse.ArgumentParser()
parser.add_argument("--msvc-version", default="2015")
parser.add_argument("--msvc-version", default="2022")
ret = parser.parse_args()
if ret.msvc_version not in MSVC_VERSION_TABLE:
sys.exit("Error: unrecognized version: " + ret.msvc_version + ". " +
Expand All @@ -81,6 +90,12 @@ def checkoutGyp():
"https://chromium.googlesource.com/external/gyp",
"build-gyp"
])
subprocess.check_call([
"git.exe",
"clone",
"https://github.com/benjaminp/six.git",
"build-gyp/pylib/six"
])

def cleanMsvc():
common_ship.rmrf("""
Expand Down Expand Up @@ -141,10 +156,11 @@ def buildPackage():
common_ship.mkdir(packageDir)

checkoutGyp()
# cleanMsvc()
# build("ia32", packageDir, True)
# build("x64", packageDir, True)
cleanMsvc()
build("ia32", packageDir, True)
build("x64", packageDir, True)
cleanMsvc()
build("arm64", packageDir)
build("ia32", packageDir)
build("x64", packageDir)

Expand Down
3 changes: 3 additions & 0 deletions src/configurations.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
'Release_x64': {
'msvs_configuration_platform': 'x64',
},
'Release_arm64': {
'msvs_configuration_platform': 'arm64',
},
},
'msvs_configuration_attributes': {
'OutputDirectory': '$(SolutionDir)$(ConfigurationName)\\$(Platform)',
Expand Down
Binary file added winpty-0.4.4-dev-msvc2022.zip
Binary file not shown.