BUILD 547 字节
Newer Older
1 2 3 4 5 6 7 8 9
licenses(["notice"])  # Apache 2.0

load("@org_pubref_rules_protobuf//cpp:rules.bzl", "cpp_proto_library")

cpp_proto_library(
    name = "example_proto",
    protos = [
        "example.proto"
    ],
Y
Yi Wang 已提交
10
    with_grpc = True,
11 12 13 14 15 16 17 18
)

cc_library(
    name = "example_lib",
    srcs = ["example_lib.cc"],
    hdrs = ["example_lib.h"],
    deps = [":example_proto"],
)
Y
Yi Wang 已提交
19 20 21 22 23 24 25 26 27 28

cc_test(
    name = "example_lib_test",
    srcs = ["example_lib_test.cc"],
    copts = ["-Iexternal/gtest/include"],
    deps =[
        "@gtest//:main",
        ":example_lib",
    ],
)