[readme] Improve gradle-plugin readme

* Describe framework and dynamic library building
    * Describe setting custom targets for an artifact
This commit is contained in:
Ilya Matveev
2018-01-22 20:36:35 +07:00
committed by ilmat192
parent 618c53956f
commit d9a07c6b61
2 changed files with 97 additions and 27 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ garbage.
Q: How do I create shared library?
A: Use `-produce dynamic` compiler switch, or `konanArtifacts { dynamic {} }` in Gradle.
A: Use `-produce dynamic` compiler switch, or `konanArtifacts { dynamic('foo') {} }` in Gradle.
It will produce platform-specific shared object (.so on Linux, .dylib on macOS and .dll on Windows targets) and
C language header, allowing to use all public APIs available in your Kotlin/Native program from C code.
See `samples/python_extension` as an example of using such shared object to provide a bridge between Python and