build.xml: add kotlin-build target
This commit is contained in:
committed by
Zalim Bashorov
parent
a61e5a6736
commit
3615ca5b02
@@ -604,6 +604,51 @@
|
|||||||
</jar>
|
</jar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="kotlin-build">
|
||||||
|
<cleandir dir="${output}/classes/kotlin-build"/>
|
||||||
|
|
||||||
|
<javac2 destdir="${output}/classes/kotlin-build" debug="true" debuglevel="lines,vars,source" includeAntRuntime="false"
|
||||||
|
source="${java.target}" target="${java.target}">
|
||||||
|
<withKotlin modulename="kotlin-build"/>
|
||||||
|
<skip pattern="kotlin/jvm/internal/.*"/>
|
||||||
|
<src>
|
||||||
|
<pathelement path="build/src"/>
|
||||||
|
</src>
|
||||||
|
<classpath>
|
||||||
|
<pathelement path="${bootstrap.runtime}"/>
|
||||||
|
<pathelement path="${bootstrap.reflect}"/>
|
||||||
|
<pathelement path="${idea.sdk}/lib/util.jar"/>
|
||||||
|
<pathelement path="${kotlin-home}/lib/kotlin-compiler.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</javac2>
|
||||||
|
|
||||||
|
<jar destfile="${kotlin-home}/lib/kotlin-build.jar">
|
||||||
|
<fileset dir="${output}/classes/kotlin-build"/>
|
||||||
|
<zipfileset file="${kotlin-home}/build.txt" prefix="META-INF"/>
|
||||||
|
|
||||||
|
<manifest>
|
||||||
|
<attribute name="Built-By" value="${manifest.impl.vendor}"/>
|
||||||
|
|
||||||
|
<attribute name="Implementation-Vendor" value="${manifest.impl.vendor}"/>
|
||||||
|
<attribute name="Implementation-Title" value="${manifest.impl.title.kotlin.build}"/>
|
||||||
|
<attribute name="Implementation-Version" value="${build.number}"/>
|
||||||
|
</manifest>
|
||||||
|
</jar>
|
||||||
|
|
||||||
|
<jar jarfile="${output}/kotlin-build-sources.jar">
|
||||||
|
<fileset dir="build/src"/>
|
||||||
|
<zipfileset file="${kotlin-home}/build.txt" prefix="META-INF"/>
|
||||||
|
|
||||||
|
<manifest>
|
||||||
|
<attribute name="Built-By" value="${manifest.impl.vendor}"/>
|
||||||
|
|
||||||
|
<attribute name="Implementation-Vendor" value="${manifest.impl.vendor}"/>
|
||||||
|
<attribute name="Implementation-Title" value="${manifest.impl.title.kotlin.build.sources}"/>
|
||||||
|
<attribute name="Implementation-Version" value="${build.number}"/>
|
||||||
|
</manifest>
|
||||||
|
</jar>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="daemon-client">
|
<target name="daemon-client">
|
||||||
<cleandir dir="${output}/classes/daemon-client"/>
|
<cleandir dir="${output}/classes/daemon-client"/>
|
||||||
|
|
||||||
@@ -1011,7 +1056,7 @@
|
|||||||
depends="builtins,stdlib,kotlin-test,core,reflection,pack-runtime,pack-runtime-sources"/>
|
depends="builtins,stdlib,kotlin-test,core,reflection,pack-runtime,pack-runtime-sources"/>
|
||||||
|
|
||||||
<target name="dist"
|
<target name="dist"
|
||||||
depends="clean,init,prepare-dist,preloader,runner,serialize-builtins,compiler,compiler-sources,ant-tools,jdk-annotations,android-sdk-annotations,runtime,kotlin-js-stdlib,android-compiler-plugin,daemon-client"
|
depends="clean,init,prepare-dist,preloader,runner,serialize-builtins,compiler,compiler-sources,kotlin-build,ant-tools,jdk-annotations,android-sdk-annotations,runtime,kotlin-js-stdlib,android-compiler-plugin,daemon-client"
|
||||||
description="Builds redistributables from sources"/>
|
description="Builds redistributables from sources"/>
|
||||||
|
|
||||||
<target name="dist-quick"
|
<target name="dist-quick"
|
||||||
|
|||||||
@@ -105,6 +105,24 @@ messages/**)
|
|||||||
# for j2k
|
# for j2k
|
||||||
-keep class com.intellij.codeInsight.NullableNotNullManager { public protected *; }
|
-keep class com.intellij.codeInsight.NullableNotNullManager { public protected *; }
|
||||||
|
|
||||||
|
# for kotlin-build (consider repacking compiler together with kotlin-build and remove this part afterwards)
|
||||||
|
-keep class com.intellij.util.io.IOUtil { public *; }
|
||||||
|
-keep class com.intellij.openapi.util.io.FileUtil { public *; }
|
||||||
|
-keep class com.intellij.util.SystemProperties { public *; }
|
||||||
|
-keep class jsr166e.extra.SequenceLock { *; }
|
||||||
|
-keep class com.intellij.util.containers.hash.LinkedHashMap { *; }
|
||||||
|
-keep class com.intellij.util.containers.ConcurrentIntObjectMap { *; }
|
||||||
|
-keep class com.intellij.util.containers.ComparatorUtil { *; }
|
||||||
|
-keep class com.intellij.util.io.PersistentHashMapValueStorage { *; }
|
||||||
|
-keep class com.intellij.util.io.PersistentHashMap { *; }
|
||||||
|
-keep class com.intellij.util.io.BooleanDataDescriptor { *; }
|
||||||
|
-keep class com.intellij.util.io.EnumeratorStringDescriptor { *; }
|
||||||
|
-keep class com.intellij.util.io.ExternalIntegerKeyDescriptor { *; }
|
||||||
|
-keep class com.intellij.util.containers.hash.EqualityPolicy { *; }
|
||||||
|
-keep class com.intellij.util.containers.hash.EqualityPolicy.* { *; }
|
||||||
|
-keep class gnu.trove.TIntHashSet { *; }
|
||||||
|
-keep class gnu.trove.TIntIterator { *; }
|
||||||
|
|
||||||
-keepclassmembers enum * {
|
-keepclassmembers enum * {
|
||||||
public static **[] values();
|
public static **[] values();
|
||||||
public static ** valueOf(java.lang.String);
|
public static ** valueOf(java.lang.String);
|
||||||
|
|||||||
@@ -24,3 +24,6 @@ manifest.impl.title.kotlin.jdk.annotations=Kotlin Compiler JDK Annotations
|
|||||||
manifest.impl.title.kotlin.android.sdk.annotations=Kotlin Compiler Android SDK Annotations
|
manifest.impl.title.kotlin.android.sdk.annotations=Kotlin Compiler Android SDK Annotations
|
||||||
|
|
||||||
manifest.impl.title.kotlin.daemon-client=Kotlin Compile Daemon Client
|
manifest.impl.title.kotlin.daemon-client=Kotlin Compile Daemon Client
|
||||||
|
|
||||||
|
manifest.impl.title.kotlin.build=Kotlin Builder
|
||||||
|
manifest.impl.title.kotlin.build.sources=Kotlin Builder Sources
|
||||||
|
|||||||
Reference in New Issue
Block a user