53 lines
1.3 KiB
Groovy
53 lines
1.3 KiB
Groovy
//plugins {
|
|
// id 'antlr'
|
|
//}
|
|
|
|
apply plugin: 'antlr'
|
|
|
|
sourceSets {
|
|
demo {
|
|
java {
|
|
srcDirs = ["src/demo/kotlin"]
|
|
compileClasspath += main.getCompileClasspath()
|
|
runtimeClasspath += main.getRuntimeClasspath()
|
|
}
|
|
}
|
|
main {
|
|
java {
|
|
srcDir("src/main/java")
|
|
srcDir("src/main/kotlin")
|
|
srcDir("build/generated-src/antlr")
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
generateGrammarSource {
|
|
maxHeapSize = "64m"
|
|
arguments += ["-visitor", "-long-messages"]
|
|
outputDirectory = file("${project.buildDir}/generated-src/antlr/org/openrndr/extra/keyframer/antlr".toString())
|
|
|
|
}
|
|
|
|
dependencies {
|
|
antlr(libs.antlr)
|
|
implementation(libs.antlrRuntime)
|
|
implementation(project(":orx-noise"))
|
|
implementation(project(":orx-easing"))
|
|
implementation libs.gson
|
|
implementation(libs.kotlin.reflect)
|
|
|
|
demoImplementation(project(":orx-camera"))
|
|
demoImplementation(project(":orx-jvm:orx-panel"))
|
|
|
|
demoImplementation(libs.openrndr.application)
|
|
demoImplementation(libs.openrndr.extensions)
|
|
demoRuntimeOnly(libs.openrndr.gl3)
|
|
demoRuntimeOnly(libs.openrndr.gl3.natives)
|
|
|
|
demoImplementation(sourceSets.getByName("main").output)
|
|
}
|
|
|
|
tasks.getByName("compileKotlin").dependsOn("generateGrammarSource")
|
|
tasks.getByName("compileTestKotlin").dependsOn("generateTestGrammarSource") |