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

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

6 7 8
cc_library(
    name = "utils",
    deps = [
9
        ":perception_perf",
10
        ":perception_time_util",
A
Aaron Xiao 已提交
11
        ":perception_timer",
12 13 14
    ],
)

15 16 17 18 19 20 21 22 23 24 25
cc_library(
    name = "perception_perf",
    hdrs = ["perf.h"],
)

cc_library(
    name = "perception_timer",
    srcs = ["timer.cc"],
    hdrs = ["timer.h"],
    deps = [
        ":perception_perf",
A
Aaron Xiao 已提交
26
        "//cyber",
27 28 29 30 31 32 33 34 35
    ],
)

cc_test(
    name = "perception_timer_test",
    size = "small",
    srcs = ["timer_test.cc"],
    deps = [
        ":perception_timer",
36
        "@com_google_googletest//:gtest_main",
37 38 39 40 41 42 43 44 45 46 47 48 49 50
    ],
)

cc_library(
    name = "perception_time_util",
    hdrs = ["time_util.h"],
)

cc_test(
    name = "perception_time_util_test",
    size = "small",
    srcs = ["time_util_test.cc"],
    deps = [
        ":perception_time_util",
51
        "@com_google_googletest//:gtest_main",
52 53 54 55
    ],
)

cpplint()