-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
39 lines (34 loc) · 1.07 KB
/
MODULE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"static library for mysql c++ connector using bazel"
module(
name = "mysql-connector-cpp-bazel",
version = "1.0",
)
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
###################################################################
module_dot_bazel_file = """
module(
name = "mysql-connector-cpp"
)
"""
build_dot_bazel_file = """
filegroup(
name = "all_srcs",
srcs = glob(["**"]),
visibility = ["//visibility:public"],
)
"""
###################################################################
bazel_dep(name = "rules_foreign_cc", version = "0.13.0")
http_archive(
name = "mysql-connector-cpp",
integrity = "sha256-ZMf1xxjhTqcIOXfhlStU8iFsb6ajVAhN4+PWf4xbGNA=",
strip_prefix = "mysql-connector-cpp-9.1.0",
urls = [
"https://github.com/mysql/mysql-connector-cpp/archive/refs/tags/9.1.0.tar.gz",
],
patch_cmds = [
"echo '"+ module_dot_bazel_file +"' > MODULE.bazel",
"echo '"+ build_dot_bazel_file +"' > BUILD.bazel",
"rm cdk/extra/protobuf/protobuf-3.19.6/BUILD"
],
)