mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-04 07:30:15 +08:00
Enable all targets when IDEA active
This commit is contained in:
parent
b82517e513
commit
bdf412cd62
@ -79,7 +79,8 @@ val ENABLED_TARGETS by lazy {
|
|||||||
System.getProperty(
|
System.getProperty(
|
||||||
"mirai.target",
|
"mirai.target",
|
||||||
if (IDEA_ACTIVE)
|
if (IDEA_ACTIVE)
|
||||||
"jvm;android;${HOST_KIND.targetName};!other"
|
// "jvm;android;${HOST_KIND.targetName};!other"
|
||||||
|
"other" // we must enable all targets otherwise you won't be able to edit code for non-host targets
|
||||||
else
|
else
|
||||||
""
|
""
|
||||||
).split(';').toSet()
|
).split(';').toSet()
|
||||||
@ -352,6 +353,7 @@ fun KotlinMultiplatformExtension.configureNativeTargetsHierarchical(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
project.disableCrossCompile() // improve speed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -378,6 +380,7 @@ fun Project.disableCrossCompile() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun disableTargetLink(project: Project, target: String) {
|
private fun disableTargetLink(project: Project, target: String) {
|
||||||
|
// Don't disable compileKotlin tasks. These tasks ensure code syntax is correct.
|
||||||
project.tasks.findByName("linkDebugTest${target.titlecase()}")?.enabled = false
|
project.tasks.findByName("linkDebugTest${target.titlecase()}")?.enabled = false
|
||||||
project.tasks.findByName("linkReleaseTest${target.titlecase()}")?.enabled = false
|
project.tasks.findByName("linkReleaseTest${target.titlecase()}")?.enabled = false
|
||||||
project.tasks.findByName("linkDebugShared${target.titlecase()}")?.enabled = false
|
project.tasks.findByName("linkDebugShared${target.titlecase()}")?.enabled = false
|
||||||
|
Loading…
Reference in New Issue
Block a user