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:
parent
f680242620
commit
0b26f7e0ee
5 changed files with 72 additions and 3 deletions
26
BUILD.bazel
Normal file
26
BUILD.bazel
Normal 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"],
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue