-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD.bazel
33 lines (30 loc) · 906 Bytes
/
BUILD.bazel
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
load("@rules_java//java:defs.bzl", "java_binary")
load("//tools/project:build_defs.bzl", "project")
load("//tools/workspace:junit5.bzl", "java_junit5_test")
project()
java_binary(
name = "echobot-jvm",
srcs = glob(["src/main/java/**/*.java"]),
data = ["//jvm-toxcore-c:native"],
jvm_flags = ["-Djava.library.path=jvm-toxcore-c"],
main_class = "im.tox.echobot.EchoBot",
resources = glob(["src/main/resources/**/*"]),
deps = [
"//jvm-toxcore-api",
"//jvm-toxcore-c",
"@maven//:log4j_log4j",
"@maven//:org_slf4j_slf4j_log4j12",
],
)
java_junit5_test(
name = "echobot-jvm-test",
size = "small",
srcs = glob(["src/test/java/**/*.java"]),
jvm_flags = ["-Djava.library.path=jvm-toxcore-c"],
test_package = "im.tox.echobot",
deps = [
":echobot-jvm",
"//jvm-toxcore-api",
"//jvm-toxcore-c",
],
)