Skip to content

Commit

Permalink
Documentation tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
olonho committed Jun 28, 2018
1 parent 9f64280 commit e2b051e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 7 additions & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ Q: How do I create shared library?

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.
C language header, allowing to use all public APIs available in your Kotlin/Native program from C/C++ code.
See `samples/python_extension` as an example of using such shared object to provide a bridge between Python and
Kotlin/Native.

Q: How do I create static library or an object file?

A: Use `-produce static` compiler switch, or `konanArtifacts { static('foo') {} }` in Gradle.
It will produce platform-specific static object (.a library format) and C language header, allowing to
use all public APIs available in your Kotlin/Native program from C/C++ code.

Q: How do I run Kotlin/Native behind corporate proxy?

A: As Kotlin/Native need to download platform specific toolchain, you need to specify
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ without the need to ship an additional execution runtime.

Prerequisites:
* install JDK for your platform, instead of JRE. The build requires ```tools.jar```, which is not included in JRE;
* on macOS install Xcode 9.3
* on macOS install Xcode 9.4.1
* on Fedora 26+ ```yum install ncurses-compat-libs``` may be needed

To compile from sources use following steps:
Expand Down
4 changes: 2 additions & 2 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ the following platforms:
(`-target linux`, default on Linux hosts)
* Microsoft Windows x86-64 (tested on Windows 7 and Windows 10), host and target (`-target mingw`,
default on Windows hosts)
* Apple iOS (arm64), cross-compiled target (`-target ios`), hosted on macOS
* Apple iOS (armv7 and arm64 devices, x86 simulator), cross-compiled target (`-target ios_arm64`), hosted on macOS
* Linux arm32 hardfp, Raspberry Pi, cross-compiled target (`-target raspberrypi`), hosted on Linux
* Linux mips big endian, cross-compiled target (`-target mips`), hosted on Linux
* Linux mips little endian, cross-compiled target (`-target mipsel`), hosted on Linux
Expand All @@ -38,7 +38,7 @@ the following platforms:

To run _Kotlin/Native_ JDK 8 or Java 9 (JDK) for the host platform has to be installed.

On macOS it also requires Xcode 9.3 or newer to be installed.
On macOS it also requires Xcode 9.4.1 or newer to be installed.

The language and library version supported by this EAP release mostly match Kotlin 1.2.60.
However, there are certain limitations, see section [Known Limitations](#limitations).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ class K2NativeCompilerArguments : CommonCompilerArguments() {
@Argument(value = "-entry", shortName = "-e", valueDescription = "<name>", description = "Qualified entry point name")
var mainPackage: String? = null

@Argument(value = "-produce", shortName = "-p", valueDescription = "{program|dynamic|framework|library|bitcode}", description = "Specify output file kind")
@Argument(value = "-produce", shortName = "-p",
valueDescription = "{program|static|dynamic|framework|library|bitcode}",
description = "Specify output file kind")
var produce: String? = null

@Argument(value = "-repo", shortName = "-r", valueDescription = "<path>", description = "Library search path")
Expand Down

0 comments on commit e2b051e

Please sign in to comment.