[Commonizer] Integrate commonizer to the Gradle plugin, p.1

Detect when it's really necessary to run commonizer. Resolve Kotlin/Native
platform dependencies. Add dependencies to the proper Gradle configurations.

Note: The most common source sets such as "commonMain" and "commonTest"
should not be used as Native intermediate source sets.
This commit is contained in:
Dmitriy Dolovov
2020-02-01 17:00:51 +07:00
parent 4ccff3f1b1
commit d7e82bf899
5 changed files with 412 additions and 101 deletions
@@ -12,6 +12,7 @@ const val KONAN_STDLIB_NAME = "stdlib"
const val KONAN_DISTRIBUTION_KLIB_DIR = "klib"
const val KONAN_DISTRIBUTION_COMMON_LIBS_DIR = "common"
const val KONAN_DISTRIBUTION_PLATFORM_LIBS_DIR = "platform"
const val KONAN_DISTRIBUTION_COMMONIZED_LIBS_DIR = "commonized"
const val KONAN_DISTRIBUTION_SOURCES_DIR = "sources"