-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
110 lines (93 loc) · 3.42 KB
/
build.gradle.kts
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import us.ihmc.idl.generator.IDLGenerator
buildscript {
dependencies {
classpath("us.ihmc:ihmc-pub-sub-generator:1.1.5")
}
}
plugins {
id("us.ihmc.ihmc-build")
id("us.ihmc.log-tools-plugin") version "0.6.4"
}
ihmc {
group = "us.ihmc"
version = "0.30.2"
vcsUrl = "https://github.com/ihmcrobotics/ihmc-robot-data-logger"
openSource = true
configureDependencyResolution()
resourceDirectory("main", "idl")
javaDirectory("main", "java-generated")
configurePublications()
}
mainDependencies {
api("com.google.protobuf:protobuf-java:2.6.1")
api("net.sf.trove4j:trove4j:3.0.3")
api("com.martiansoftware:jsap:2.1")
api("com.google.guava:guava:18.0")
api("org.tukaani:xz:1.5")
api("org.xerial.snappy:snappy-java:1.1.1-M1")
api("net.jpountz.lz4:lz4:1.3.0")
api("io.netty:netty-all:4.1.77.Final")
api("org.openjdk.jol:jol-core:0.9")
api("org.apache.commons:commons-text:1.9")
api("us.ihmc:euclid:0.22.2")
api("us.ihmc:ihmc-video-codecs:2.1.6")
api("us.ihmc:ihmc-realtime:1.7.0")
api("us.ihmc:ihmc-java-decklink-capture:0.4.0")
api("us.ihmc:ihmc-pub-sub:1.1.5")
api("us.ihmc:ihmc-pub-sub-serializers-extra:1.1.5")
api("us.ihmc:ihmc-commons:0.34.0")
api("us.ihmc:ihmc-graphics-description:0.26.0")
api("us.ihmc:mecano:17-0.19.0")
api("com.hierynomus:sshj:0.31.0")
val opencvVersion = "4.7.0-1.5.9"
api("org.bytedeco:opencv:$opencvVersion")
api("org.bytedeco:opencv:$opencvVersion:linux-x86_64")
api("org.bytedeco:opencv:$opencvVersion:linux-arm64")
api("org.bytedeco:opencv:$opencvVersion:windows-x86_64")
val ffmpegVersion = "6.0-1.5.9"
api("org.bytedeco:ffmpeg:$ffmpegVersion")
api("org.bytedeco:ffmpeg:$ffmpegVersion:linux-x86_64")
api("org.bytedeco:ffmpeg:$ffmpegVersion:linux-arm64")
api("org.bytedeco:ffmpeg:$ffmpegVersion:windows-x86_64")
val openblasVersion = "0.3.23-1.5.9" // TODO: This can probably be removed in 1.5.10
api("org.bytedeco:openblas:$openblasVersion")
api("org.bytedeco:openblas:$openblasVersion:linux-x86_64")
api("org.bytedeco:openblas:$openblasVersion:linux-arm64")
api("org.bytedeco:openblas:$openblasVersion:windows-x86_64")
api("org.freedesktop.gstreamer:gst1-java-core:1.4.0")
var javaFXVersion = "17.0.2"
api(ihmc.javaFXModule("base", javaFXVersion))
api(ihmc.javaFXModule("controls", javaFXVersion))
api(ihmc.javaFXModule("graphics", javaFXVersion))
api(ihmc.javaFXModule("fxml", javaFXVersion))
}
testDependencies {
api("us.ihmc:ihmc-commons-testing:0.34.0")
}
app.entrypoint("IHMCLogger", "us.ihmc.robotDataLogger.logger.YoVariableLoggerDispatcher")
app.entrypoint("BlackMagicCapture", "us.ihmc.javadecklink.Capture")
tasks.register<JavaExec>("deploy") {
dependsOn("generateMessages")
dependsOn("distTar")
group = "Deploy"
description = "Deploy logger"
classpath = sourceSets.main.get().runtimeClasspath
mainClass.set("us.ihmc.publisher.logger.ui.LoggerDeployApplication")
var p = projectDir.toPath().resolve("build/distributions/" + project.name + "-" + project.version + ".tar").normalize()
args("--logger-dist=" + p)
}
tasks.create("generateMessages") {
doLast {
generateMessages()
}
}
fun generateMessages()
{
val idlFiles = fileTree("src/main/idl")
val targetDirectory = file("src/main/java-generated")
val packagePrefix = ""
for (idl in idlFiles)
{
IDLGenerator.execute(idl, packagePrefix, targetDirectory, listOf(file(".")))
}
}