3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-17 00:32:16 +00:00

Add support for building Z3 using Bazel. (#7646)

Signed-off-by: Steffen Smolka <smolkaj@google.com>
This commit is contained in:
Steffen Smolka 2025-05-15 09:47:29 -06:00 committed by GitHub
parent f680242620
commit 0b26f7e0ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 72 additions and 3 deletions

26
BUILD.bazel Normal file
View file

@ -0,0 +1,26 @@
load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
load("@rules_license//rules:license.bzl", "license")
package(default_applicable_licenses = [":license"])
license(
name = "license",
license_kinds = ["@rules_license//licenses/spdx:MIT"],
license_text = "LICENSE.txt",
)
exports_files(["LICENSE.txt"])
filegroup(
name = "all_files",
srcs = glob(["**"]),
)
cmake(
name = "z3",
generate_args = ["-G Ninja"],
lib_source = ":all_files",
out_binaries = ["z3"],
out_shared_libs = ["libz3.so"],
visibility = ["//visibility:public"],
)