Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ kotlin {
hostOs == "Mac OS X" && arch == "aarch64" -> macosArm64("native")
hostOs == "Linux" && arch == "x86_64" -> linuxX64("native")
hostOs == "Linux" && arch == "aarch64" -> linuxArm64("native")
// Other supported targets are listed here: https://ktor.io/docs/native-server.html#targets
hostOs.startsWith("Windows") -> mingwX64("native")
// Other supported targets are listed here: https://ktor.io/docs/server-native.html#targets
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
}

Expand Down
1 change: 0 additions & 1 deletion topics/server-native.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Ktor supports [Kotlin/Native](https://kotlinlang.org/docs/native-overview.html)
* a [server should be created](server-create-and-configure.topic) using `embeddedServer`
* only the [CIO engine](server-engines.md) is supported
* [HTTPS](server-ssl.md) without a reverse proxy is not supported
* Windows [target](server-platforms.md) is not supported

<include from="client-engines.md" element-id="newmm-note"/>

Expand Down
35 changes: 35 additions & 0 deletions topics/server-platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,28 @@ The following [targets](https://kotlinlang.org/docs/multiplatform-dsl-reference.
</td>
</tr>

<tr>
<td>
Android
</td>
<td>
<list>
<li>
<code>androidNativeArm32</code>
</li>
<li>
<code>androidNativeArm64</code>
</li>
<li>
<code>androidNativeX86</code>
</li>
<li>
<code>androidNativeX64</code>
</li>
</list>
</td>
</tr>

<tr>
<td>
iOS
Expand Down Expand Up @@ -154,4 +176,17 @@ The following [targets](https://kotlinlang.org/docs/multiplatform-dsl-reference.
</list>
</td>
</tr>

<tr>
<td>
Windows
</td>
<td>
<list>
<li>
<code>mingwX64</code>
</li>
</list>
</td>
</tr>
</table>