Build lite runtime of protobuf-java
Saves ~400kb (3.25mb -> 2.85mb) of runtime+reflect size
This commit is contained in:
@@ -279,6 +279,17 @@
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
<macrodef name="build-protobuf-java-lite">
|
||||
<sequential>
|
||||
<exec executable="dependencies/bootstrap-compiler/Kotlin/kotlinc/bin/kotlinc" failonerror="true" vmlauncher="false">
|
||||
<arg value="-script"/>
|
||||
<arg value="generators/infrastructure/build-protobuf-lite.kts"/>
|
||||
<arg value="${basedir}/ideaSDK/lib/protobuf-2.5.0.jar"/>
|
||||
<arg value="${basedir}/dependencies/protobuf-2.5.0-lite.jar"/>
|
||||
</exec>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
<macrodef name="get-asm-sources-and-rename-packages">
|
||||
<attribute name="asm.version"/>
|
||||
<sequential>
|
||||
@@ -469,6 +480,8 @@
|
||||
many nice features of IDEA including diffs in the test console.
|
||||
-->
|
||||
<delete file="ideaSDK/lib/junit.jar"/>
|
||||
|
||||
<build-protobuf-java-lite/>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user