Skip to content

Commit

Permalink
Linux arm64 (#27)
Browse files Browse the repository at this point in the history
* 升级mahjongutils版本

* 添加linux arm64

* Build DokkaGfm documents

* 去除target开启检测

---------

Co-authored-by: ssttkkl <[email protected]>
  • Loading branch information
ssttkkl and ssttkkl committed Sep 14, 2024
1 parent 05b80ad commit 1365567
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,11 @@ class KmpLibConventionPlugin : Plugin<Project> {
iosX64()
iosSimulatorArm64()

val hostOs = System.getProperty("os.name")
val isMingwX64 = hostOs.startsWith("Windows")
val isAarch64 = System.getProperty("os.arch") == "aarch64"
when {
hostOs == "Mac OS X" -> {
if (isAarch64) {
macosArm64()
} else {
macosX64()
}
}

hostOs == "Linux" -> {
if (isAarch64) {
linuxArm64()
} else {
linuxX64()
}
}

isMingwX64 -> mingwX64()
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
}
macosArm64()
macosX64()
linuxArm64()
linuxX64()
mingwX64()

sourceSets {
val commonTest by getting {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@Serializable

interface [HoraHandPattern](index.md) : [HoraInfo](../-hora-info/index.md), [HandPattern](../../mahjongutils.models.hand/-hand-pattern/index.md)
sealed interface [HoraHandPattern](index.md) : [HoraInfo](../-hora-info/index.md), [HandPattern](../../mahjongutils.models.hand/-hand-pattern/index.md)

和牌手牌

Expand Down
2 changes: 1 addition & 1 deletion docs/mahjong-utils/mahjongutils.hora/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
| [HoraArgs](-hora-args/index.md) | [common]<br>@Serializable<br>data class [HoraArgs](-hora-args/index.md)<br>和牌分析参数 |
| [HoraArgsErrorInfo](-hora-args-error-info/index.md) | [common]<br>enum [HoraArgsErrorInfo](-hora-args-error-info/index.md) : [Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)&lt;[HoraArgsErrorInfo](-hora-args-error-info/index.md)&gt; , [ErrorInfo](../mahjongutils/-error-info/index.md) |
| [HoraArgsValidationException](-hora-args-validation-exception/index.md) | [common]<br>class [HoraArgsValidationException](-hora-args-validation-exception/index.md)(val args: [HoraArgs](-hora-args/index.md), val errors: [Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)&lt;[HoraArgsErrorInfo](-hora-args-error-info/index.md)&gt;) : [ValidationException](../mahjongutils/-validation-exception/index.md) |
| [HoraHandPattern](-hora-hand-pattern/index.md) | [common]<br>@Serializable<br>interface [HoraHandPattern](-hora-hand-pattern/index.md) : [HoraInfo](-hora-info/index.md), [HandPattern](../mahjongutils.models.hand/-hand-pattern/index.md)<br>和牌手牌 |
| [HoraHandPattern](-hora-hand-pattern/index.md) | [common]<br>@Serializable<br>sealed interface [HoraHandPattern](-hora-hand-pattern/index.md) : [HoraInfo](-hora-info/index.md), [HandPattern](../mahjongutils.models.hand/-hand-pattern/index.md)<br>和牌手牌 |
| [HoraInfo](-hora-info/index.md) | [common]<br>interface [HoraInfo](-hora-info/index.md)<br>和牌信息 |
| [HoraOptions](-hora-options/index.md) | [common]<br>@Serializable<br>data class [HoraOptions](-hora-options/index.md)(val aotenjou: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), val allowKuitan: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), val hasRenpuuJyantouHu: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), val hasKiriageMangan: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), val hasKazoeYakuman: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), val hasMultipleYakuman: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), val hasComplexYakuman: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))<br>和牌分析选项 |
| [KokushiHoraHandPattern](-kokushi-hora-hand-pattern/index.md) | [common]<br>@Serializable<br>@SerialName(value = &quot;KokushiHoraHandPattern&quot;)<br>data class [KokushiHoraHandPattern](-kokushi-hora-hand-pattern/index.md)(val repeated: [Tile](../mahjongutils.models/-tile/index.md), val agari: [Tile](../mahjongutils.models/-tile/index.md), val tsumo: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), val selfWind: [Wind](../mahjongutils.models/-wind/index.md)? = null, val roundWind: [Wind](../mahjongutils.models/-wind/index.md)? = null) : [HoraHandPattern](-hora-hand-pattern/index.md), [IKokushiHandPattern](../mahjongutils.models.hand/-i-kokushi-hand-pattern/index.md)<br>国士无双的和牌手牌 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@Serializable

interface [CommonHandPattern](index.md) : [HandPattern](../-hand-pattern/index.md)
sealed interface [CommonHandPattern](index.md) : [HandPattern](../-hand-pattern/index.md)

#### Inheritors

Expand Down
2 changes: 1 addition & 1 deletion docs/mahjong-utils/mahjongutils.models.hand/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
| Name | Summary |
|---|---|
| [ChitoiHandPattern](-chitoi-hand-pattern/index.md) | [common]<br>@Serializable<br>@SerialName(value = &quot;ChitoiHandPattern&quot;)<br>data class [ChitoiHandPattern](-chitoi-hand-pattern/index.md)(val pairs: [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)&lt;[Tile](../mahjongutils.models/-tile/index.md)&gt;, val remaining: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)&lt;[Tile](../mahjongutils.models/-tile/index.md)&gt;) : [IChitoiHandPattern](-i-chitoi-hand-pattern/index.md), [CommonHandPattern](-common-hand-pattern/index.md)<br>以七对子为目标的手牌 |
| [CommonHandPattern](-common-hand-pattern/index.md) | [common]<br>@Serializable<br>interface [CommonHandPattern](-common-hand-pattern/index.md) : [HandPattern](-hand-pattern/index.md) |
| [CommonHandPattern](-common-hand-pattern/index.md) | [common]<br>@Serializable<br>sealed interface [CommonHandPattern](-common-hand-pattern/index.md) : [HandPattern](-hand-pattern/index.md) |
| [Hand](-hand/index.md) | [common]<br>@Serializable<br>data class [Hand](-hand/index.md)&lt;out [P](-hand/index.md) : [CommonHandPattern](-common-hand-pattern/index.md)&gt;(val tiles: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)&lt;[Tile](../mahjongutils.models/-tile/index.md)&gt;, val furo: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)&lt;[Furo](../mahjongutils.models/-furo/index.md)&gt;, val patterns: [Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)&lt;[P](-hand/index.md)&gt;) : [IHasFuro](-i-has-furo/index.md)<br>手牌 |
| [HandPattern](-hand-pattern/index.md) | [common]<br>interface [HandPattern](-hand-pattern/index.md) : [IHasFuro](-i-has-furo/index.md)<br>手牌形 |
| [IChitoiHandPattern](-i-chitoi-hand-pattern/index.md) | [common]<br>interface [IChitoiHandPattern](-i-chitoi-hand-pattern/index.md) : [HandPattern](-hand-pattern/index.md)<br>以七对子为目标的手牌 |
Expand Down
2 changes: 1 addition & 1 deletion docs/mahjong-utils/mahjongutils.models/-furo/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@Serializable

interface [Furo](index.md)
sealed interface [Furo](index.md)

副露

Expand Down
2 changes: 1 addition & 1 deletion docs/mahjong-utils/mahjongutils.models/-mentsu/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@Serializable(with = MentsuSerializer::class)

interface [Mentsu](index.md)
sealed interface [Mentsu](index.md)

面子

Expand Down
2 changes: 1 addition & 1 deletion docs/mahjong-utils/mahjongutils.models/-tatsu/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@Serializable(with = TatsuSerializer::class)

interface [Tatsu](index.md)
sealed interface [Tatsu](index.md)

搭子

Expand Down
6 changes: 3 additions & 3 deletions docs/mahjong-utils/mahjongutils.models/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
| Name | Summary |
|---|---|
| [Chi](-chi/index.md) | [common]<br>@Serializable<br>@SerialName(value = &quot;Chi&quot;)<br>data class [Chi](-chi/index.md)(val tile: [Tile](-tile/index.md)) : [Furo](-furo/index.md)<br>吃 |
| [Furo](-furo/index.md) | [common]<br>@Serializable<br>interface [Furo](-furo/index.md)<br>副露 |
| [Furo](-furo/index.md) | [common]<br>@Serializable<br>sealed interface [Furo](-furo/index.md)<br>副露 |
| [Kan](-kan/index.md) | [common]<br>@Serializable<br>@SerialName(value = &quot;Kan&quot;)<br>data class [Kan](-kan/index.md)(val tile: [Tile](-tile/index.md), val ankan: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false) : [Furo](-furo/index.md)<br>杠 |
| [Kanchan](-kanchan/index.md) | [common]<br>@Serializable<br>@SerialName(value = &quot;Kanchan&quot;)<br>data class [Kanchan](-kanchan/index.md)(val first: [Tile](-tile/index.md)) : [Tatsu](-tatsu/index.md)<br>坎张 |
| [Kotsu](-kotsu/index.md) | [common]<br>@Serializable<br>@SerialName(value = &quot;Kotsu&quot;)<br>data class [Kotsu](-kotsu/index.md)(val tile: [Tile](-tile/index.md)) : [Mentsu](-mentsu/index.md)<br>刻子 |
| [Mentsu](-mentsu/index.md) | [common]<br>@Serializable(with = MentsuSerializer::class)<br>interface [Mentsu](-mentsu/index.md)<br>面子 |
| [Mentsu](-mentsu/index.md) | [common]<br>@Serializable(with = MentsuSerializer::class)<br>sealed interface [Mentsu](-mentsu/index.md)<br>面子 |
| [Penchan](-penchan/index.md) | [common]<br>@Serializable<br>@SerialName(value = &quot;Penchan&quot;)<br>data class [Penchan](-penchan/index.md)(val first: [Tile](-tile/index.md)) : [Tatsu](-tatsu/index.md)<br>边张 |
| [Pon](-pon/index.md) | [common]<br>@Serializable<br>@SerialName(value = &quot;Pon&quot;)<br>data class [Pon](-pon/index.md)(val tile: [Tile](-tile/index.md)) : [Furo](-furo/index.md)<br>碰 |
| [Ryanmen](-ryanmen/index.md) | [common]<br>@Serializable<br>@SerialName(value = &quot;Ryanmen&quot;)<br>data class [Ryanmen](-ryanmen/index.md)(val first: [Tile](-tile/index.md)) : [Tatsu](-tatsu/index.md)<br>两面 |
| [Shuntsu](-shuntsu/index.md) | [common]<br>@Serializable<br>@SerialName(value = &quot;Shuntsu&quot;)<br>data class [Shuntsu](-shuntsu/index.md)(val tile: [Tile](-tile/index.md)) : [Mentsu](-mentsu/index.md)<br>顺子 |
| [Tatsu](-tatsu/index.md) | [common]<br>@Serializable(with = TatsuSerializer::class)<br>interface [Tatsu](-tatsu/index.md)<br>搭子 |
| [Tatsu](-tatsu/index.md) | [common]<br>@Serializable(with = TatsuSerializer::class)<br>sealed interface [Tatsu](-tatsu/index.md)<br>搭子 |
| [Tile](-tile/index.md) | [common]<br>@Serializable(with = TileSerializer::class)<br>data class [Tile](-tile/index.md) : [Comparable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-comparable/index.html)&lt;[Tile](-tile/index.md)&gt; <br>麻将牌 |
| [TileType](-tile-type/index.md) | [common]<br>enum [TileType](-tile-type/index.md) : [Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)&lt;[TileType](-tile-type/index.md)&gt; <br>麻将牌的种类(万、筒、索、字) |
| [Toitsu](-toitsu/index.md) | [common]<br>@Serializable<br>@SerialName(value = &quot;Toitsu&quot;)<br>data class [Toitsu](-toitsu/index.md)(val first: [Tile](-tile/index.md)) : [Tatsu](-tatsu/index.md)<br>对子 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@Serializable

interface [CommonShantenResult](index.md)&lt;out [P](index.md) : [CommonHandPattern](../../mahjongutils.models.hand/-common-hand-pattern/index.md)&gt; : [ShantenResult](../-shanten-result/index.md)&lt;[CommonShanten](../-common-shanten/index.md), [P](index.md)&gt;
sealed interface [CommonShantenResult](index.md)&lt;out [P](index.md) : [CommonHandPattern](../../mahjongutils.models.hand/-common-hand-pattern/index.md)&gt; : [ShantenResult](../-shanten-result/index.md)&lt;[CommonShanten](../-common-shanten/index.md), [P](index.md)&gt;

#### Inheritors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@Serializable

interface [CommonShanten](index.md) : [Shanten](../-shanten/index.md)
sealed interface [CommonShanten](index.md) : [Shanten](../-shanten/index.md)

#### Inheritors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@Serializable

interface [ShantenResult](index.md)&lt;out [S](index.md) : [Shanten](../-shanten/index.md), out [P](index.md) : [CommonHandPattern](../../mahjongutils.models.hand/-common-hand-pattern/index.md)&gt;
sealed interface [ShantenResult](index.md)&lt;out [S](index.md) : [Shanten](../-shanten/index.md), out [P](index.md) : [CommonHandPattern](../../mahjongutils.models.hand/-common-hand-pattern/index.md)&gt;

#### Inheritors

Expand Down
2 changes: 1 addition & 1 deletion docs/mahjong-utils/mahjongutils.shanten/-shanten/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@Serializable

interface [Shanten](index.md)
sealed interface [Shanten](index.md)

向听信息

Expand Down
Loading

0 comments on commit 1365567

Please sign in to comment.