BUILD 985 字节
Newer Older
1
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
2 3 4 5 6
load("//tools:cpplint.bzl", "cpplint")

package(default_visibility = ["//visibility:public"])

cc_library(
G
GoLancer 已提交
7
    name = "time",
8 9
    srcs = ["time.cc"],
    hdrs = ["time.h"],
10
    deps = [
11
        ":duration",
A
Aaron Xiao 已提交
12
        "//cyber/common",
13 14 15
    ],
)

16
cc_test(
G
GoLancer 已提交
17
    name = "time_test",
18
    size = "small",
19
    srcs = ["time_test.cc"],
20
    deps = [
G
GoLancer 已提交
21
        "//cyber:cyber_core",
22
        "@com_google_googletest//:gtest_main",
23 24 25
    ],
)

G
GoLancer 已提交
26 27
cc_library(
    name = "rate",
28 29
    srcs = ["rate.cc"],
    hdrs = ["rate.h"],
G
GoLancer 已提交
30
    deps = [
31 32
        ":duration",
        ":time",
A
Aaron Xiao 已提交
33
        "//cyber/common",
G
GoLancer 已提交
34 35 36 37 38
    ],
)

cc_library(
    name = "duration",
39 40
    srcs = ["duration.cc"],
    hdrs = ["duration.h"],
G
GoLancer 已提交
41
    deps = [
A
Aaron Xiao 已提交
42
        "//cyber/common",
G
GoLancer 已提交
43 44 45
    ],
)

46
cc_test(
G
GoLancer 已提交
47
    name = "duration_test",
48
    size = "small",
49
    srcs = ["duration_test.cc"],
50
    deps = [
G
GoLancer 已提交
51
        "//cyber:cyber_core",
52
        "@com_google_googletest//:gtest_main",
53 54 55
    ],
)

G
GoLancer 已提交
56
cpplint()