Dmitry Savvinov
8f3c0e71fa
[native] Drop deprecated Kotlin/Native targets (5/8)
...
Adjust KGP: drop usages of deprecated KonanTargets, leave
@Deprecated-stubs in public APIs for readable errors
^KT-64517
2024-03-12 16:22:27 +00:00
Dmitrii Krasnov
7165d15d59
[Gradle Native] Added Kotlin Native Provider to all native tasks
...
This provider is a first step of "Kotlin Native Toolchain".
This solves several problems:
1) Resolving K/N bundle during configuration phase ->
now it happens during execution phase
2) Downloading K/N bundle with internal mechanisms ->
now it uses Gradle dependency resolvers and Transform Artifact
^KT-58303
^KT-52567
^KT-49268
2024-01-22 20:26:24 +00:00
Dmitrii Krasnov
f8507d5220
[Gradle, Native] Switched downloading k/n to from Maven Central in KGP
...
#KT-62907 Fixed
2023-11-06 16:50:43 +00:00
Yahor Berdnikau
0790fef161
Fix explicit api mode in commonizer
...
^KT-57653
2023-05-08 19:43:43 +00:00
Yahor Berdnikau
b3e6a3c274
Update test-data for Gradle 7.6 version.
2023-02-08 16:27:28 +00:00
Anton Lakotka
c358df7033
[Gradle] Include WATCHOS_DEVICE_ARM64 to Commonize unix platform test
...
^KT-53107
2022-10-05 19:32:05 +00:00
Anton Lakotka
1b3cc0dfaa
[Gradle] Register watchosDeviceArm64 in commonizer
...
^KT-53107
2022-10-05 19:32:03 +00:00
sebastian.sellmair
204bc4ca95
[Commonizer] Provide union of forwardDeclarations as common dependencies
...
^KT-52050 Verification Pending
The issue described in KT-52050 happened, because forwardDeclarations
were not carried into next commonization steps. For commonization
it is fair to choose the union of all modules forwardDeclarations
as common dependency (instead of a union), since we can assume that
all those forward declarations will be provided.
2022-04-22 08:47:39 +00:00
Pavel Punegov
cfe76343d5
[Commonizer][test] Get K/N distribution in the test instead of the build
...
Get distribution and home path in the test to simplify gradle build.
Using NativeCompilerDownloader in the build led to the undesired results
where test get old K/N compiler from the bootstrap, also blocking K/N
version class development.
2022-04-08 10:38:12 +00:00
sebastian.sellmair
14046b81ff
Replace transitiveClosure (commonizer-api) with closure (tooling-core)
2022-03-09 13:17:06 +00:00
Pavel Kirpichenkov
2609175d58
[Commonizer] Introduce commonizer settings
...
Add settings for a more fine-grained control over commonizer features
that will be added in the future
Add setting and KGP flag for optimistic number commonization
KT-51011
2022-01-28 12:22:50 +03:00
sebastian.sellmair
448302d19b
[Commonizer] CommonizeNativeDistributionTest.commonize - apple platforms(): Require macos
2021-07-05 09:00:45 +00:00
sebastian.sellmair
9794068f22
[Commonizer] typeAliasUtils: computeSuitableUnderlyingType: Consider commonized type-aliases
2021-07-05 09:00:42 +00:00
sebastian.sellmair
4bcae0cc6f
[Commonizer] Add CommonizeNativeDistributionTest.commonize - unix platforms()
2021-06-25 09:25:08 +00:00
sebastian.sellmair
21cef41ba5
[Commonizer] AbstractCommonizationFromSourcesTest remove assertions on commonized leaf/platform libraries
...
Those assertions are not necessary anymore, since the commonizer is not
expected to produce any new "actuals" per given expect.
The IDE is supposed to analyze leaf source sets against the original
platform libraries.
2021-06-23 13:43:37 +00:00
sebastian.sellmair
42f60d981f
[Commonizer] Implement associative commonization
...
^KT-47301 Verification Pending
2021-06-23 13:43:36 +00:00
sebastian.sellmair
14eca72913
Implement 'CommonizerTarget.fileName' and limit fileName length
...
^KT-46856 Fixed
2021-05-27 06:48:34 +00:00
sebastian.sellmair
f893709e5b
[Commonizer] CommonizeLibcurlTest: Add commonizeSuccessfully with unsupported targets
...
This test will assert behaviour on 'unsupported' targets requested from the commonizer
^KT-46077
2021-04-16 14:56:31 +00:00
sebastian.sellmair
bbcfde7231
[Commonizer] Add 'commonizer_target' and 'commonizer_native_targets' to commonized klib's manifest
...
^KT-46077 Fixed
2021-04-16 14:56:31 +00:00
sebastian.sellmair
b311820159
[Minor] Fix CommonizerDependencyTest.sample identityString on Windows
2021-04-09 23:36:02 +02:00
sebastian.sellmair
933c52d470
[Commonizer] Gracefully handle absent targets for hierarchical commonization
2021-04-09 23:35:59 +02:00
sebastian.sellmair
46a20c81cc
Implement CommonizerTarget.allLeaves
2021-04-09 23:35:56 +02:00
sebastian.sellmair
a78645e858
Implement CommonizerTarget.withAllAncestors
2021-04-09 23:35:56 +02:00
sebastian.sellmair
47f36c04fc
Move transitiveClosure into :commonizer-api
2021-04-09 23:35:56 +02:00
sebastian.sellmair
35e1f8a520
Implement CommonizerTarget isAncestorOf and isDescendentOf
2021-04-09 23:35:56 +02:00
sebastian.sellmair
79c6b406ba
[Commonizer] Allow empty SharedCommonizerTarget
2021-04-09 23:35:55 +02:00
sebastian.sellmair
e232a2be6c
CommonizeLibcurlTest: Provide necessary native distribution dependencies
2021-03-26 10:55:25 +00:00
Dmitriy Dolovov
5a35018a88
[Commonizer] Move source code to the folder that corresponds package name
2021-03-17 13:34:14 +03:00
Dmitriy Dolovov
fc4f66b702
[Commonizer] Change the main package name
...
org.jetbrains.kotlin.descriptors.commonizer -> org.jetbrains.kotlin.commonizer
2021-03-17 13:34:06 +03:00
sebastian.sellmair
4500b6ce74
[Commonizer] Implement :native:kotlin-klib-commonizer:api with support for library commonization
...
- Implement new Gradle module ':native:kotlin-klib-commonizer'
- Implement new NativeKlibCommonize task
- Implement CommonizerTarget.identityString
2021-02-17 19:24:54 +00:00