forked from protobuf-c/protobuf-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
55 lines (48 loc) · 1.15 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
load("//build-bazel:base.bzl", "VER", "protobuf_cc_library")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "protobuf-c-inner",
srcs = ["protobuf-c/protobuf-c.c"],
hdrs = ["protobuf-c/protobuf-c.h"],
)
cc_shared_library(
name = "protobuf-c",
deps = [":protobuf-c-inner"],
)
protobuf_cc_library(
name = "protobuf-c_cc_proto",
srcs = ["protobuf-c/protobuf-c.proto"],
includes = [],
)
cc_binary(
name = "protoc-gen-c",
srcs = glob(["protoc-c/*.cc"]),
defines = ['PACKAGE_VERSION=\\"' + VER + '\\"'],
includes = ["protoc-c"],
deps = [
":protobuf-c-inner",
":protobuf-c_cc_proto",
],
)
filegroup(
name = "all",
srcs = [
":protoc-gen-c",
":protobuf-c",
],
)
test_suite(
name = "tests",
tests = [
"//t:test-generated-code",
"//t:test-generated-code2",
"//t:test-generated-code_v3",
"//t:test-version",
"//t/issue204",
"//t/issue220",
"//t/issue251",
"//t/issue330",
"//t/issue375",
"//t/issue440",
],
)