[Gradle, JS] Return back deprecated options noStdlib and metaInfo
This commit is contained in:
committed by
Space Team
parent
2340d59f40
commit
d02be30e3b
+1
@@ -47,6 +47,7 @@ fun copyK2JSCompilerArguments(from: K2JSCompilerArguments, to: K2JSCompilerArgum
|
||||
to.metaInfo = from.metaInfo
|
||||
to.moduleKind = from.moduleKind
|
||||
to.moduleName = from.moduleName
|
||||
to.noStdlib = from.noStdlib
|
||||
to.optimizeGeneratedJs = from.optimizeGeneratedJs
|
||||
to.outputDir = from.outputDir
|
||||
to.outputFile = from.outputFile
|
||||
|
||||
+27
@@ -43,6 +43,23 @@ class K2JSCompilerArguments : CommonCompilerArguments() {
|
||||
field = if (value.isNullOrEmpty()) null else value
|
||||
}
|
||||
|
||||
@GradleOption(
|
||||
value = DefaultValue.BOOLEAN_TRUE_DEFAULT,
|
||||
gradleInputType = GradleInputTypes.INPUT,
|
||||
shouldGenerateDeprecatedKotlinOptions = true,
|
||||
)
|
||||
@GradleDeprecatedOption(
|
||||
message = "Only for legacy backend.",
|
||||
level = DeprecationLevel.WARNING,
|
||||
removeAfter = "2.0.0"
|
||||
)
|
||||
@Argument(value = "-no-stdlib", description = "Don't automatically include the default Kotlin/JS stdlib in compilation dependencies.")
|
||||
var noStdlib = false
|
||||
set(value) {
|
||||
checkFrozen()
|
||||
field = value
|
||||
}
|
||||
|
||||
@Argument(
|
||||
value = "-libraries",
|
||||
valueDescription = "<path>",
|
||||
@@ -126,6 +143,16 @@ class K2JSCompilerArguments : CommonCompilerArguments() {
|
||||
field = if (value.isNullOrEmpty()) null else value
|
||||
}
|
||||
|
||||
@GradleOption(
|
||||
value = DefaultValue.BOOLEAN_TRUE_DEFAULT,
|
||||
gradleInputType = GradleInputTypes.INPUT,
|
||||
shouldGenerateDeprecatedKotlinOptions = true,
|
||||
)
|
||||
@GradleDeprecatedOption(
|
||||
message = "Only for legacy backend.",
|
||||
level = DeprecationLevel.WARNING,
|
||||
removeAfter = "2.0.0"
|
||||
)
|
||||
@Deprecated("It is senseless to use with IR compiler. Only for compatibility.")
|
||||
@Argument(value = "-meta-info", description = "Generate .meta.js and .kjsm files with metadata. Use this to create a library.")
|
||||
var metaInfo = false
|
||||
|
||||
Reference in New Issue
Block a user