BUILD 2.1 KB
Newer Older
1 2 3 4
load("//tools:cpplint.bzl", "cpplint")

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

5
cc_library(
G
GoLancer 已提交
6 7
    name = "common",
    deps = [
G
GoLancer 已提交
8 9 10 11 12 13 14 15
        "//cyber/common:environment",
        "//cyber/common:file",
        "//cyber/common:global_data",
        "//cyber/common:log",
        "//cyber/common:macros",
        "//cyber/common:time_conversion",
        "//cyber/common:types",
        "//cyber/common:util",
G
GoLancer 已提交
16 17 18 19 20 21
    ],
)

cc_library(
    name = "file",
    srcs = [
22
        "file.cc",
G
GoLancer 已提交
23 24
    ],
    hdrs = [
25
        "file.h",
G
GoLancer 已提交
26
    ],
27
    deps = [
G
GoLancer 已提交
28
        "//cyber/common:log",
29
    ],
30 31
)

32 33 34 35
cc_test(
    name = "file_test",
    size = "small",
    srcs = [
36
        "file_test.cc",
37 38
    ],
    deps = [
G
GoLancer 已提交
39 40
        "//cyber",
        "//cyber/proto:unit_test_cc_proto",
41 42 43 44
        "@gtest//:main",
    ],
)

G
GoLancer 已提交
45 46 47
cc_library(
    name = "log",
    hdrs = [
48 49 50 51
        "log.h",
    ],
    linkopts = [
        "-lglog",
G
GoLancer 已提交
52 53
    ],
    deps = [
G
GoLancer 已提交
54
        "//cyber:binary",
G
GoLancer 已提交
55 56 57
    ],
)

58 59 60 61
cc_test(
    name = "log_test",
    size = "small",
    srcs = [
62
        "log_test.cc",
63 64
    ],
    deps = [
G
GoLancer 已提交
65
        "//cyber",
66 67 68 69
        "@gtest//:main",
    ],
)

G
GoLancer 已提交
70 71 72
cc_library(
    name = "environment",
    hdrs = [
73
        "environment.h",
G
GoLancer 已提交
74 75 76 77 78 79
    ],
)

cc_library(
    name = "global_data",
    srcs = [
80
        "global_data.cc",
G
GoLancer 已提交
81 82
    ],
    hdrs = [
83
        "global_data.h",
G
GoLancer 已提交
84 85
    ],
    deps = [
G
GoLancer 已提交
86 87 88 89 90 91
        "//cyber/base:atomic_hash_map",
        "//cyber/base:atomic_rw_lock",
        "//cyber/common:environment",
        "//cyber/common:file",
        "//cyber/common:macros",
        "//cyber/common:util",
G
GoLancer 已提交
92
        "//cyber/proto:cyber_conf_cc_proto",
G
GoLancer 已提交
93 94 95
    ],
)

96 97 98 99 100 101 102 103 104 105 106 107
cc_test(
    name = "macros_test",
    size = "small",
    srcs = [
        "macros_test.cc",
    ],
    deps = [
        "//cyber",
        "@gtest//:main",
    ],
)

G
GoLancer 已提交
108 109 110
cc_library(
    name = "macros",
    hdrs = [
111
        "macros.h",
G
GoLancer 已提交
112
    ],
113 114 115
    deps = [
        "//cyber/base:macros",
    ],
G
GoLancer 已提交
116 117 118 119 120
)

cc_library(
    name = "time_conversion",
    hdrs = [
121
        "time_conversion.h",
G
GoLancer 已提交
122 123 124 125 126 127
    ],
)

cc_library(
    name = "types",
    hdrs = [
128
        "types.h",
G
GoLancer 已提交
129 130 131 132 133 134
    ],
)

cc_library(
    name = "util",
    hdrs = [
135
        "util.h",
G
GoLancer 已提交
136 137 138
    ],
)

139
cpplint()