Bartleby 0.1.0
A symbol renaming toolkit
Loading...
Searching...
No Matches
bazel/BUILD.bazel

This is an example of how to use the Bazel rule .

1load("@com_sandboxquantum_bartleby//:rules.bzl", "bartleby")
2
3cc_library(
4 name = "api_1",
5 srcs = ["api_1.c"],
6 hdrs = ["api_1.h"],
7 copts = [
8 "-fvisibility=hidden",
9 ],
10 deps = [
11 ":external_dep",
12 ],
13)
14
15cc_library(
16 name = "api_2",
17 srcs = ["api_2.c"],
18 hdrs = ["api_2.h"],
19 copts = [
20 "-fvisibility=hidden",
21 ],
22 deps = [
23 ":api_1",
24 ":external_dep",
25 ],
26)
27
28cc_library(
29 name = "external_dep",
30 srcs = ["external_dep.c"],
31 hdrs = ["external_dep.h"],
32 copts = [
33 "-fvisibility=hidden",
34 ],
35)
36
38 name = "external_dep_versioned",
39 srcs = [":external_dep"],
40 prefix = "__private_1.2.3_",
41)
Definition: Bartleby.h:32