mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 14:13:23 +00:00
[WIP] Suggestion: build .NET package for both x86 and x64 and rename (#5021)
* build package for x86 * build package for x86 * build package for x86 Co-authored-by: Don Syme <donsyme@fastmail.com>
This commit is contained in:
parent
4c3c15c015
commit
504b6559ab
5 changed files with 13 additions and 14 deletions
|
@ -26,8 +26,7 @@ os_info = {"z64-ubuntu-14" : ('so', 'ubuntu.14.04-x64'),
|
|||
'ubuntu-18' : ('so', 'ubuntu-x64'),
|
||||
'ubuntu-20' : ('so', 'ubuntu-x64'),
|
||||
'x64-win' : ('dll', 'win-x64'),
|
||||
# Skip x86 as I can't get dotnet build to produce AnyCPU TargetPlatform
|
||||
# 'x86-win' : ('dll', 'win-x86'),
|
||||
'x86-win' : ('dll', 'win-x86'),
|
||||
'osx' : ('dylib', 'macos'),
|
||||
'debian' : ('so', 'debian.8-x64') }
|
||||
|
||||
|
@ -79,7 +78,7 @@ def unpack(packages, symbols):
|
|||
|
||||
def mk_targets(source_root):
|
||||
mk_dir("out/build")
|
||||
shutil.copy(f"{source_root}/src/api/dotnet/Microsoft.Z3.targets.in", "out/build/Microsoft.Z3.x64.targets")
|
||||
shutil.copy(f"{source_root}/src/api/dotnet/Microsoft.Z3.targets.in", "out/build/Microsoft.Z3.targets")
|
||||
|
||||
def mk_icon(source_root):
|
||||
mk_dir("out/content")
|
||||
|
@ -90,7 +89,7 @@ def create_nuget_spec(version, repo, branch, commit, symbols):
|
|||
contents = """<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>Microsoft.Z3.x64</id>
|
||||
<id>Microsoft.Z3</id>
|
||||
<version>{0}</version>
|
||||
<authors>Microsoft</authors>
|
||||
<description>
|
||||
|
@ -114,7 +113,7 @@ Linux Dependencies:
|
|||
</package>""".format(version, repo, branch, commit)
|
||||
print(contents)
|
||||
sym = "sym." if symbols else ""
|
||||
file = f"out/Microsoft.Z3.x64.{sym}nuspec"
|
||||
file = f"out/Microsoft.Z3.{sym}nuspec"
|
||||
print(file)
|
||||
with open(file, 'w') as f:
|
||||
f.write(contents)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue