Commit Graph

211 Commits

Author SHA1 Message Date
Alexander Shabalin f2835f3534 [K/N] Use Gradle configurations for CompileToBitcode modules ^KT-53776 2022-12-16 13:48:30 +00:00
Alexander Shabalin 01cabefea7 [K/N] Use configurations for interproject compdb deps ^KT-53776
Merge-request: KT-MR-7158
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-12-09 09:42:08 +00:00
Pavel Punegov 7ee877f9aa [K/N][test] Improve simulator executor
Makes executor be able to find and download necessary runtimes and
create device with appropriate runtime available. Replaces device names
with identifiers


Co-authored-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>

Merge-request: KT-MR-7919
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
2022-12-08 11:11:00 +00:00
Alexander Shabalin 314edd7066 [K/N] Add clangFormat task for automatic patch formatting ^KT-53776
Merge-request: KT-MR-7880
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-12-07 14:46:55 +00:00
Yahor Berdnikau a14d0d148b Simplify Kotlin bootstrap application in the project
Move all the code to apply Kotlin bootstrap into settings script plugin
which does following:
- configures based either on the repo root 'local.properties' or on the
root project gradle properties or on the repo root 'gradle.properties'
current type of bootstrap
- automatically adds Kotlin bootstrap repository with
exclusive content, so bootstrap dependencies will not be by mistake
downloaded from other repository
- automatically forces all Kotlin plugins applied in the build to use
bootstrap version

This script should be applied only in project settings.gradle and then
it does all the configuration by itself.
2022-11-29 14:31:48 +00:00
Pavel Punegov 9e80290405 [K/N][test] Fix cache testing to use stdlib cache
Cache testing should use standard stdlib cache instead of building it.
The dependency is set to the stdlib cache task (part of dist build).

Merge-request: KT-MR-7830
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
2022-11-28 11:21:15 +00:00
Mikhail Glukhikh 774bed875a Fix opt-in related bootstrap problem in kotlin-native/build-tools 2022-11-23 12:00:09 +00:00
Alexander Shabalin d512420204 [K/N] Refactor Executor out of ExecutorService without gradle dependency
Merge-request: KT-MR-7622
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-11-21 19:52:29 +00:00
Alexander Shabalin b31a657494 [K/N] Add test support modules to runtime tests ^KT-53776
Previously all modules in a test group would also link in their tests.
This is not ideal. For example, an experimental module M depending on
module N might not yet implement enough functionality to run all Ns
integration tests, but we still want to run Ms unit tests.

Now, there's a separate `testSupportModules` list. For each module their
main sources and test support sources will get linked into the test
group, but the tests will not.

Merge-request: KT-MR-7731
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-11-18 16:11:37 +00:00
Vladimir Sukharev 44f638e952 Drop K/N dependency to JCenter 2022-11-03 10:51:56 +00:00
Dmitriy Novozhilov f2cc5310b9 [Native] Fix code to make it compilable with K2
Check KT-54663 for details
2022-10-27 11:08:56 +00:00
Pavel Punegov bc33f84678 [K/N] Choose watchOS simulator depending on Xcode version
Merge-request: KT-MR-7410
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
2022-10-17 12:52:52 +00:00
Pavel Punegov 51e337a148 [K/N] Fix watchOS-simulator device name changed in XCode 14 2022-10-11 15:11:01 +02:00
Pavel Punegov 6b97a7657d [K/N] Publish bundles to maven
Makes build be able to publish bundles to the maven. It uses common
properties and settings as all other Kotlin publications.
Add usage of the Gradle base plugin and correct version and name setting
for archive tasks
2022-10-06 12:18:48 +02:00
Sergey Bogolepov e669ad95fa [K/N] Compare distributions as a whole
We might move declarations between platform libraries
preserving their fqname. To make diff simpler
let's collect signatures from all platform libraries
and compare them together instead of per-file basis.
2022-10-04 18:27:45 +03:00
Alexander Likhachev daf14d0931 [Gradle, K/N] Deprecate endorsed libraries
#KT-54177 Fixed
2022-09-28 10:23:12 +00:00
Yahor Berdnikau c198d4d90d Simplify cache-redirector script apply method
Now it could be only be applied inside settings file pluginManagement
block. This will update both settings repositories and all projects in
the repo with cache redirection settings.
2022-09-27 14:04:43 +00:00
Yahor Berdnikau e94c1ea0ed Update Kotlin repo for bootstrap update
^KT-27301 Fixed
2022-09-19 12:30:42 +02:00
Alexander Shabalin 529a29ae52 [K/N] Use TargetDomainObjectContainer ^KT-53776
Merge-request: KT-MR-7110
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-09-17 08:40:09 +00:00
Vladimir Sukharev 77ab69240e Do inline safepoints for watchos_arm64
Merge-request: KT-MR-6993
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2022-09-01 08:14:41 +00:00
Svyatoslav Scherbina 7bf6d64cfb Native: move samples to backend.native/tests/ 2022-08-31 16:10:04 +00:00
Vladimir Sukharev 7f1ab29668 Fix Windows targets has bad addresses in stacktrace
^KT-49240 Fixed

Merge-request: KT-MR-6883
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2022-08-24 09:05:06 +00:00
Alexander Shabalin 94b550b9dc [K/N] Do not make compdb depend on runtime building
Merge-request: KT-MR-6907
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-08-23 07:41:59 +00:00
Nikita Bobko 2a4f3f41aa 2/5 Replace source dependency on kotlin-reflect with binary dependency
Review: https://jetbrains.team/p/kt/reviews/6753

Meaningful semantic change was splitted into 5 commits to simplify the
change review. Sinle commit would be too big.

Why replace source to binary: to get rid of kotlin-reflect in Kotlin
plugin artifact KTIJ-22276

Note: Kotlin Maven artifacts (./gradlew publish) changed their
dependency on kotlin-reflect
2022-08-22 15:43:49 +02:00
Igor Chevdar 228141aeea [K/N][build] Supported per-file caches in K/N tests 2022-08-06 17:40:25 +00:00
Alexander Shabalin 8b2f761c75 [K/N] Compile each cpp file separately.
Merge-request: KT-MR-6711
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-08-01 14:13:22 +00:00
Pavel Punegov 911512ba96 [K/N][perf] Add try-clause for sending request 2022-07-27 09:06:33 +00:00
Pavel Punegov f13c71bb06 [K/N][perf] Add Parameter to specify URL to the performance server 2022-07-25 21:25:22 +00:00
Alexander Shabalin bfe0d4108b [K/N] Modernize CompileToBitcode
Merge-request: KT-MR-6367
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-07-19 06:54:12 +00:00
Alexander Shabalin eaad75fd52 [K/N] Refactor runtime testing tasks
Merge-request: KT-MR-6360
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-06-25 09:55:27 +00:00
Alexander Shabalin 66c6e4e16f [K/N] Fix compdb usage for CLion
Merge-request: KT-MR-6483
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-06-20 10:31:40 +00:00
Alexander Shabalin ed881f3f31 [K/N] Make PlatformManager serializable
Merge-request: KT-MR-6358
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-05-30 15:52:08 +00:00
Pavel Punegov dbd383aa2a [K/N] Fix kotlin gradle plugin usage in build-tools 2022-05-26 10:37:29 +00:00
Pavel Punegov cda0308760 [K/N] Fix kotlin-native-shared usage in build-tools 2022-05-26 10:37:29 +00:00
Pavel Punegov 83c2b3657f [K/N] Fix build-tools project compilation
Add necessary subprojects and dependencies
Add OptIn annotation for experimental stdlib methods in 1.5
Fix compilation errors and cleanup
2022-05-26 10:37:28 +00:00
Alexander Shabalin 00892c2903 [K/N] Add SAM with receiver plugin
(cherry picked from commit a58e2459c6)
2022-05-26 10:37:27 +00:00
Pavel Punegov 987930a0e5 [K/N] Add build-tools as a module for IDEA
Adds a module to project making it able to use analysis
and syntax highlight

(cherry picked from commit c545fd5ef8)
2022-05-26 10:37:26 +00:00
Alexander Shabalin 20884d82eb [K/N] Modernize CompilationDatabase tasks
Merge-request: KT-MR-6276
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-05-25 21:49:35 +00:00
Pavel Punegov 7bd7c09c4a Revert "[K/N] Add build-tools as a module for IDEA"
This reverts commit c545fd5ef8.
2022-05-18 10:58:47 +03:00
Pavel Punegov 3f10ab919f Revert "[K/N] Add SAM with receiver plugin"
This reverts commit a58e2459c6.
2022-05-18 10:58:47 +03:00
Alexander Shabalin a58e2459c6 [K/N] Add SAM with receiver plugin 2022-05-16 11:00:42 +00:00
Pavel Punegov c545fd5ef8 [K/N] Add build-tools as a module for IDEA
Adds a module to project making it able to use analysis
and syntax highlight
2022-05-16 11:00:41 +00:00
Alexander Shabalin d77041aad0 [K/N] Move all knowledge about CompileToBitcode to the plugin.
Merge-request: KT-MR-6215
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-05-12 12:20:31 +00:00
Sergey Bogolepov 6a8ebeb1bc [K/N] Test case for KT-50983 2022-05-11 18:34:27 +00:00
Vyacheslav Gerasimov 7157a54155 Fix unnecessary usages of Locale.getDefault() 2022-05-06 22:08:25 +00:00
Vyacheslav Gerasimov dcd17e41a4 Fix capitalization related deprecation warnings 2022-05-04 19:15:01 +00:00
Alexander Shabalin caf90de2b8 [K/N] Compile runtime tests in parallel.
Merge-request: KT-MR-6164
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-04-29 20:30:57 +00:00
Igor Chevdar 2b75ba203a [K/N][tests] Possible intermediate library for interop test
Now along with earlier [interop] <- [main] scheme one can also use
[interop] <- [lib] <- [main] which previously was only for link tests
2022-04-28 14:31:29 +00:00
Svyatoslav Scherbina 5fd468c066 Native: mention the way to suppress Xcode version check in the build
When building Kotlin/Native from sources on macOS, build scripts check
that installed Xcode has specific major version. It is possible to
suppress the version mismatch error (with caution), but the error
message didn't mention that.

Fix that by adding a hint to the error message.
2022-04-27 12:41:53 +00:00
Dmitriy Dolovov b33e525d1a [Native][tests] Old test infra: fail immediately if static cache not supported for the tested target 2022-04-15 15:11:41 +03:00