Commit Graph

3364 Commits

Author SHA1 Message Date
Nikolay Igotti 19cc8c6bee API for object passing between platform threads. (#1270) 2018-01-30 13:19:56 +03:00
Ilya Matveev 23be291e1d [samples] Fix building all samples 2018-01-30 16:41:31 +07:00
Ilya Matveev 98c1ef4b5e [build] Use Gradle 4.5 2018-01-30 16:41:31 +07:00
Vasily Levchenko a5e8d3dfc9 [kotlin compiler][update] 1.2-20180126.115605-180 (#1269)
* [kotlin compiler][update] 1.2-20180126.115605-180

kotlinScriptRuntimeVersion=1.2-20180126.115623-180
kotlinStdLibVersion=1.2-20180126.115626-180
kotlinReflectVersion=1.2-20180126.115618-180
kotlinStdLibJdk8Version=1.2-20180126.115632-180
kotlinGradlePluginVersion=1.2-20180126.115615-180

* [build] Fix upload for Kotlin dependencies
2018-01-30 10:50:57 +03:00
Igor Chevdar 15ef5bd6c0 Fixed bug in default args lowering + test
Made proper overridden descriptor selection.
2018-01-29 16:24:01 +03:00
Vasily Levchenko 67c723b93b [win][build][batch] fix path variable calculation 2018-01-27 00:46:04 +03:00
Nikolay Igotti 12d3346c36 Minor code cleanup. (#1264) 2018-01-26 20:48:21 +03:00
Alexander Gorshenev d4b47ac709 Splitted KonanProperties into Configurables hierarchy.
Untangled Platfrom classes from the LinkStage and Distribution.
Simplified clang management a little.
2018-01-26 16:38:27 +03:00
Pavel Punegov c5276cf6da Add limits.h for max and min defines 2018-01-26 11:56:56 +03:00
Pavel Punegov 20437eff59 Fix indents
(cherry picked from commit 2da5bf2)
2018-01-26 11:56:56 +03:00
Pavel Punegov cc89dc2754 Fix floating point conversions to match Kotlin/JVM
(cherry picked from commit de078d6)
2018-01-26 11:56:56 +03:00
Clifton df41389ef7 Minor bugfix to correct error handling. (#1260) 2018-01-26 09:20:23 +03:00
Alvaro Miranda Aguilera af9c749035 put val definition inside if block 2018-01-25 16:25:40 +03:00
Alvaro Miranda Aguilera c170e261a7 add explicit import for platform.posix.size_t
on linux without this fails to import

per slack question on #kotlin-native due multiple size_t available
2018-01-25 16:25:40 +03:00
Alvaro Miranda Aguilera 0b9f5beed8 sample/libcurl: add body and writ_data function/callbacks 2018-01-25 16:25:40 +03:00
Alvaro Miranda Aguilera 532461647a sample/libcurl: add nobody method 2018-01-25 16:25:40 +03:00
SvyatoslavScherbina 7567c96bc9 Add basic support for multi-platform projects to the compiler (#1254)
Add compiler pass removing `expect` declarations

Thus support multi-platform projects in the compiler.

Also 

* Add some trivial checks to ensure that `expect` declarations
are not generated to bitcode.
* Add minor improvement to exported symbol name clash detection.
* Don't create LLVM declarations for Obj-C-interop fake functions.
2018-01-25 12:55:06 +03:00
Nikolay Igotti 155618c7dd Simple GC ergonomics. 2018-01-25 12:54:42 +03:00
Pavel Punegov 8e30a1c7cc Fix dependency with useCustomDist extension 2018-01-24 17:52:22 +03:00
Ilya Matveev d9a07c6b61 [readme] Improve gradle-plugin readme
* Describe framework and dynamic library building
    * Describe setting custom targets for an artifact
2018-01-24 15:24:59 +07:00
Ilya Matveev 618c53956f [gradle-plugin] Support headerFile property for dynamic libraries 2018-01-24 15:24:59 +07:00
Ilya Matveev 0224672c63 [build] Use Kotlin 1.2.20 for building 2018-01-23 19:00:34 +07:00
Igor Chevdar e75a39fdd1 Fixed evaluation of lambda arguments of inline call + test
A lambda argument should be inlined only if it is declared as a functional type.
2018-01-22 19:07:36 +03:00
Igor Chevdar 295f71a29c Fixed inline call arguments evaluation + test 2018-01-22 19:07:36 +03:00
Svyatoslav Scherbina cf5e6dac80 Add JVM part for calculator sample
Simple CLI Kotlin/JVM application making use of Kotlin parser library.
Fix #1222
2018-01-22 11:01:22 +03:00
Svyatoslav Scherbina 60046abda0 Support debug for calculator sample
Generate debug information if 'Debug' configuration used
2018-01-19 19:45:33 +03:00
Svyatoslav Scherbina 4abca13b73 Fix .dSYM bundle location for produced frameworks 2018-01-19 19:45:33 +03:00
Svyatoslav Scherbina 90e6ab07c3 Disable binary stripping on mac targets on -produce framework/dynamic
Fixes debug in these cases.
2018-01-19 19:45:33 +03:00
Svyatoslav Scherbina 7106b0e760 Avoid using Kotlin/Native-specific clang arguments for other sources 2018-01-19 16:20:48 +03:00
Svyatoslav Scherbina e171b99adb Remove KonanProperties.defaultCompilerOpts
Use ClangManager instead
2018-01-19 16:20:48 +03:00
Alexander Gorshenev f703877160 Introduced support for javascript Math and Kotlin Double to WASM32.
Implemented jsinterop tool for interaction with js math.
2018-01-19 13:46:53 +03:00
Ilya Matveev 1399ac9777 [gradle-plugin] Fix typo for framework building 2018-01-19 11:55:12 +07:00
Nikolay Igotti 1599eddfe1 Allow passing interop types to C API, refactoring. 2018-01-18 18:27:58 +03:00
Nikolay Igotti 76834dc7ce Fix predicate check in sample. 2018-01-18 18:27:58 +03:00
Kyle Kauffman 7b97916656 Resolve name conflicts when present (dyn lib generation) (#1204) 2018-01-18 16:25:24 +03:00
Igor Chevdar f218e2676e Fixed bug in LocalDeclarationsLowering + test
Bug was in determining whether a function was locally defined
2018-01-18 15:33:47 +03:00
Igor Chevdar b2098088ec Fixed bug with type projection building + test
Bug could be seen on fake overridden functions calls
2018-01-18 12:50:32 +03:00
Nikolay Igotti 77f220f335 Support @CName annotation for reverse C interop, similar to @JvmName. (#1237) 2018-01-17 19:34:00 +03:00
Ilya Matveev 76bfb9322d [build] Don't use full paths to specify platform lib dependencies 2018-01-17 16:58:44 +07:00
Ilya Matveev 9eb00ddb94 [build] Use gradle plugin in backend.native tests 2018-01-17 16:58:44 +07:00
Ilya Matveev aed28a3e2d [tests] Make tests using platform libs depending on distPlatformLibs 2018-01-17 16:58:44 +07:00
Ilya Matveev dab46b4c4d [gradle-plugin] Fix path to artifacts with prefixes 2018-01-17 16:58:44 +07:00
Ilya Matveev 525561eec3 [gradle-plugin] Add tests for custom targets and artifact paths 2018-01-17 16:58:44 +07:00
Ilya Matveev 32972af5bd [build] Fix 'shared' jar copying 2018-01-17 16:58:44 +07:00
Ilya Matveev 815f887465 [build] Fix gradle plugin shadowJar building and uploading 2018-01-17 16:58:44 +07:00
Ilya Matveev 1f74f4dc6d [build] Specify group and version in 'shared' project 2018-01-17 16:58:44 +07:00
Ilya Matveev d919c0859b [build] Rename installing tasks for platform libs 2018-01-17 16:58:44 +07:00
Ilya Matveev 2a1d0433ca [ring] Fix performance report 2018-01-17 16:58:44 +07:00
Ilya Matveev 3b7d16c70e [build] Create a root task for gradle-plugin uploading 2018-01-17 16:58:44 +07:00
Ilya Matveev 6d4b15867b [gradle-plugin] Support different targets for different artifacts 2018-01-17 16:58:44 +07:00