Skip to content
This repository was archived by the owner on Jan 14, 2023. It is now read-only.

Commit 62f865d

Browse files
authored
Add Bazel build for message_generation (#66)
This also allows other Bazel projects (rosjava_core in particular) to depend on this as an external repository. It uses https://github.com/johnynek/bazel-deps to describe the Maven dependencies. As a result, 3rdparty/ contains autogenerated files, and the other files contain a hand-written description of the BUILD. I will add documentation for the Bazel build to rosjava_core.
1 parent 2421241 commit 62f865d

File tree

18 files changed

+484
-0
lines changed

18 files changed

+484
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ bin
77
*.iml
88
.idea
99
local.properties
10+
bazel-*

3rdparty/BUILD

Whitespace-only changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Do not edit. bazel-deps autogenerates this file from dependencies.yaml.
2+
java_library(
3+
name = "jsr305",
4+
exports = [
5+
"//external:jar/com/google/code/findbugs/jsr305"
6+
],
7+
visibility = [
8+
"//visibility:public"
9+
]
10+
)
11+
12+

3rdparty/jvm/com/google/guava/BUILD

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Do not edit. bazel-deps autogenerates this file from dependencies.yaml.
2+
java_library(
3+
name = "guava",
4+
exports = [
5+
"//external:jar/com/google/guava/guava"
6+
],
7+
runtime_deps = [
8+
"//3rdparty/jvm/com/google/code/findbugs:jsr305"
9+
],
10+
visibility = [
11+
"//visibility:public"
12+
]
13+
)
14+
15+

3rdparty/jvm/commons_pool/BUILD

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Do not edit. bazel-deps autogenerates this file from dependencies.yaml.
2+
java_library(
3+
name = "commons_pool",
4+
exports = [
5+
"//external:jar/commons_pool/commons_pool"
6+
],
7+
visibility = [
8+
"//visibility:public"
9+
]
10+
)
11+
12+

3rdparty/jvm/dnsjava/BUILD

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Do not edit. bazel-deps autogenerates this file from dependencies.yaml.
2+
java_library(
3+
name = "dnsjava",
4+
exports = [
5+
"//external:jar/dnsjava/dnsjava"
6+
],
7+
runtime_deps = [
8+
"//3rdparty/jvm/junit:junit"
9+
],
10+
visibility = [
11+
"//visibility:public"
12+
]
13+
)
14+
15+

3rdparty/jvm/io/netty/BUILD

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Do not edit. bazel-deps autogenerates this file from dependencies.yaml.
2+
java_library(
3+
name = "netty",
4+
exports = [
5+
"//external:jar/io/netty/netty"
6+
],
7+
visibility = [
8+
"//visibility:public"
9+
]
10+
)
11+
12+

3rdparty/jvm/junit/BUILD

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Do not edit. bazel-deps autogenerates this file from dependencies.yaml.
2+
java_library(
3+
name = "junit",
4+
exports = [
5+
"//external:jar/junit/junit"
6+
],
7+
visibility = [
8+
"//visibility:public"
9+
]
10+
)
11+
12+

3rdparty/jvm/org/apache/commons/BUILD

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Do not edit. bazel-deps autogenerates this file from dependencies.yaml.
2+
java_library(
3+
name = "com_springsource_org_apache_commons_codec",
4+
exports = [
5+
"//external:jar/org/apache/commons/com_springsource_org_apache_commons_codec"
6+
],
7+
visibility = [
8+
"//visibility:public"
9+
]
10+
)
11+
12+
13+
14+
java_library(
15+
name = "com_springsource_org_apache_commons_httpclient",
16+
exports = [
17+
"//external:jar/org/apache/commons/com_springsource_org_apache_commons_httpclient"
18+
],
19+
runtime_deps = [
20+
":com_springsource_org_apache_commons_codec",
21+
":com_springsource_org_apache_commons_logging"
22+
],
23+
visibility = [
24+
"//visibility:public"
25+
]
26+
)
27+
28+
29+
30+
java_library(
31+
name = "com_springsource_org_apache_commons_io",
32+
exports = [
33+
"//external:jar/org/apache/commons/com_springsource_org_apache_commons_io"
34+
],
35+
visibility = [
36+
"//visibility:public"
37+
]
38+
)
39+
40+
41+
42+
java_library(
43+
name = "com_springsource_org_apache_commons_lang",
44+
exports = [
45+
"//external:jar/org/apache/commons/com_springsource_org_apache_commons_lang"
46+
],
47+
visibility = [
48+
"//visibility:public"
49+
]
50+
)
51+
52+
53+
54+
java_library(
55+
name = "com_springsource_org_apache_commons_logging",
56+
exports = [
57+
"//external:jar/org/apache/commons/com_springsource_org_apache_commons_logging"
58+
],
59+
visibility = [
60+
"//visibility:public"
61+
]
62+
)
63+
64+
65+
66+
java_library(
67+
name = "com_springsource_org_apache_commons_net",
68+
exports = [
69+
"//external:jar/org/apache/commons/com_springsource_org_apache_commons_net"
70+
],
71+
visibility = [
72+
"//visibility:public"
73+
]
74+
)
75+
76+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Do not edit. bazel-deps autogenerates this file from dependencies.yaml.
2+
java_library(
3+
name = "ws_commons_util",
4+
exports = [
5+
"//external:jar/org/apache/ws/commons/ws_commons_util"
6+
],
7+
runtime_deps = [
8+
"//3rdparty/jvm/junit:junit",
9+
"//3rdparty/jvm/xml_apis:xml_apis"
10+
],
11+
visibility = [
12+
"//visibility:public"
13+
]
14+
)
15+
16+

0 commit comments

Comments
 (0)