我几乎总是使用 nmake 来构建 Z3,因为我在工作中使用老式的编辑器。
您也可以将 Z3 导入 VS。尽管您仍然可以将 VS 的 VS 调试器和性能工具与来自 nmake 的可执行文件一起使用,但它使修复构建错误变得更加容易,并且与调试的集成更加顺畅。
在命令行帮助之后,用于构建 vs 项目的选项称为 -v 或 --vsproj。
C:\z3>scripts\mk_make.py --help
mk_make.py: Z3 Makefile generator
This script generates the Makefile for the Z3 theorem prover.
It must be executed from the Z3 root directory.
Options:
-h, --help display this message.
-s, --silent do not print verbose messages.
--parallel=num use cl option /MP with 'num' parallel processes
-b <sudir>, --build=<subdir> subdirectory where Z3 will be built
(default: build).
--githash=hash include the given hash in the binaries.
-d, --debug compile Z3 in debug mode.
-t, --trace enable tracing in release mode.
-x, --x64 create 64 binary when using Visual Studio.
-m, --makefiles generate only makefiles.
-v, --vsproj generate Visual Studio Project Files.
-n, --nodotnet do not generate Microsoft.Z3.dll make rules.
-j, --java generate Java bindinds.
--staticlib build Z3 static library.
Some influential environment variables:
JDK_HOME JDK installation directory (only relevant if -j or --java option is provided)
JNI_HOME JNI bindings directory (only relevant if -j or --java option is provided)