Upgrade to OPENRNDR 0.4 snapshot
This commit is contained in:
46
orx-jvm/orx-kotlin-parser/build.gradle
Normal file
46
orx-jvm/orx-kotlin-parser/build.gradle
Normal file
@@ -0,0 +1,46 @@
|
||||
//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/kotlin/antlr".toString())
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
antlr("org.antlr:antlr4:$antlrVersion")
|
||||
implementation("org.antlr:antlr4-runtime:$antlrVersion")
|
||||
|
||||
demoImplementation(project(":orx-camera"))
|
||||
demoImplementation(project(":orx-panel"))
|
||||
demoImplementation("org.openrndr:openrndr-application:$openrndrVersion")
|
||||
demoImplementation("org.openrndr:openrndr-extensions:$openrndrVersion")
|
||||
demoRuntimeOnly("org.openrndr:openrndr-gl3:$openrndrVersion")
|
||||
demoRuntimeOnly("org.openrndr:openrndr-gl3-natives-$openrndrOS:$openrndrVersion")
|
||||
demoImplementation(sourceSets.getByName("main").output)
|
||||
}
|
||||
|
||||
tasks.getByName("compileKotlin").dependsOn("generateGrammarSource")
|
||||
Reference in New Issue
Block a user