b6fdc96994
Move ParseUtils to 'psi', and ImportPath to 'frontend.common'. Now 'psi' depends on 'frontend.common', and that allows to remove dependency of 'fir:tree:tree-generator' on 'psi', allowing the former to compile in parallel with the old frontend code.
43 lines
966 B
Kotlin
43 lines
966 B
Kotlin
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
repositories {
|
|
maven("https://jetbrains.bintray.com/intellij-third-party-dependencies")
|
|
}
|
|
|
|
val jflexPath by configurations.creating
|
|
|
|
dependencies {
|
|
val compile by configurations
|
|
val compileOnly by configurations
|
|
|
|
compile(project(":core:descriptors"))
|
|
compile(project(":compiler:util"))
|
|
compile(project(":compiler:frontend.common"))
|
|
compile(project(":kotlin-script-runtime"))
|
|
|
|
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
|
compileOnly(intellijDep()) { includeJars("guava", "trove4j", rootProject = rootProject) }
|
|
|
|
jflexPath(commonDep("org.jetbrains.intellij.deps.jflex", "jflex"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" {}
|
|
}
|
|
|
|
|
|
|
|
ant.importBuild("buildLexer.xml")
|
|
|
|
ant.properties["builddir"] = buildDir.absolutePath
|
|
|
|
tasks.findByName("lexer")!!.apply {
|
|
doFirst {
|
|
ant.properties["flex.classpath"] = jflexPath.asPath
|
|
}
|
|
}
|