Skip to content

Commit bef67f8

Browse files
special purpose dotnet copy
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
1 parent 4be8b7d commit bef67f8

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

scripts/mk_win_dist_cmake.py

+16-4
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def mk_build_dir(arch):
215215
cmd.append("cmake -S .")
216216
if DOTNET_CORE_ENABLED:
217217
cmd.append(' -DZ3_BUILD_DOTNET_BINDINGS=ON')
218-
cmd.append(' -DZ3_INSTALL_DOTNET_BINDINGS=ON')
218+
# cmd.append(' -DZ3_INSTALL_DOTNET_BINDINGS=ON')
219219
if JAVA_ENABLED:
220220
cmd.append(' -DZ3_BUILD_JAVA_BINDINGS=ON')
221221
cmd.append(' -DZ3_INSTALL_JAVA_BINDINGS=ON')
@@ -273,9 +273,9 @@ def exec_cmds(cmds):
273273

274274

275275

276-
def mk_z3(arch):
276+
def build_z3(arch):
277277
if is_verbose():
278-
print("mk z3")
278+
print("build z3")
279279
build_dir = get_build_dir(arch)
280280
if arch == "arm64":
281281
arch = "x64_arm64"
@@ -360,6 +360,17 @@ def cp_license(arch):
360360
mk_dir(path)
361361
shutil.copy("LICENSE.txt", path)
362362

363+
def cp_dotnet(arch):
364+
if not DOTNET_CORE_ENABLED:
365+
return
366+
if is_verbose():
367+
print("copy dotnet")
368+
build_dir = get_build_dir(arch)
369+
dist_dir = get_build_dist_path(arch)
370+
shutil.copytree(os.path.join(build_dir, "Microsoft.Z3"),
371+
os.path.join(dist_dir, "Microsoft.Z3"),
372+
dirs_exist_ok=True)
373+
363374
def cp_pdb(arch):
364375
if is_verbose():
365376
print("copy pdb")
@@ -372,9 +383,10 @@ def cp_pdb(arch):
372383

373384
def build_for_arch(arch):
374385
mk_build_dir(arch)
375-
mk_z3(arch)
386+
build_z3(arch)
376387
cp_license(arch)
377388
cp_pdb(arch)
389+
cp_dotnet(arch)
378390
cp_vs_runtime(arch)
379391
mk_zip(arch)
380392

0 commit comments

Comments
 (0)