forked from Light-City/CPlusPlusThings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
44 lines (41 loc) · 1008 Bytes
/
BUILD
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
40
41
42
43
44
# please run `bazel run //learn_class/modern_cpp_30/reference:reference`
# please run `bazel run //learn_class/modern_cpp_30/reference:forward`
# please run `bazel run //learn_class/modern_cpp_30/reference:ref`
# please run `bazel run //learn_class/modern_cpp_30/reference:collapses`
# please run `bazel run //learn_class/modern_cpp_30/reference:lifetime`
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
cc_library(
name = "shape",
hdrs = ["shape.h"],
)
cc_binary(
name = "reference",
srcs = ["reference.cpp"],
copts = ["-std=c++11"],
)
cc_binary(
name = "forward",
srcs = ["forward.cpp"],
copts = ["-std=c++11"],
deps = [
":shape",
],
)
cc_binary(
name = "ref",
srcs = ["ref.cpp"],
copts = ["-std=c++11"],
)
cc_binary(
name = "collapses",
srcs = ["collapses.cpp"],
copts = ["-std=c++11"],
)
cc_binary(
name = "lifetime",
srcs = ["lifetime.cpp"],
copts = ["-std=c++11"],
deps = [
":shape",
],
)