Skip to content

Commit e46ca72

Browse files
committed
Add linuxArm64 support
1 parent a5a532b commit e46ca72

File tree

7 files changed

+21
-14
lines changed

7 files changed

+21
-14
lines changed

build.gradle.kts

-9
This file was deleted.

settings.gradle.kts

+8
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@ pluginManagement {
99
}
1010
}
1111

12+
dependencyResolutionManagement {
13+
repositories {
14+
mavenLocal()
15+
mavenCentral()
16+
google()
17+
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev")
18+
}
19+
}

sqliter-driver/build.gradle.kts

+13-5
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ kotlin {
4848
watchosDeviceArm64(),
4949
mingwX64(),
5050
mingwX86(),
51-
linuxX64()
51+
linuxX64(),
52+
linuxArm64(),
5253
)
5354

5455
knTargets
@@ -59,13 +60,11 @@ kotlin {
5960
sourceSets {
6061
commonMain {
6162
dependencies {
62-
implementation("org.jetbrains.kotlin:kotlin-stdlib-common")
6363
}
6464
}
6565
commonTest {
6666
dependencies {
67-
implementation("org.jetbrains.kotlin:kotlin-test-common")
68-
implementation("org.jetbrains.kotlin:kotlin-test-annotations-common")
67+
implementation("org.jetbrains.kotlin:kotlin-test")
6968
}
7069
}
7170

@@ -75,9 +74,15 @@ kotlin {
7574
val appleMain = sourceSets.maybeCreate("appleMain").apply {
7675
dependsOn(nativeCommonMain)
7776
}
78-
val linuxMain = sourceSets.maybeCreate("linuxX64Main").apply {
77+
val linuxMain = sourceSets.maybeCreate("linuxMain").apply {
7978
dependsOn(nativeCommonMain)
8079
}
80+
val linuxX64Main = sourceSets.maybeCreate("linuxX64Main").apply {
81+
dependsOn(linuxMain)
82+
}
83+
val linuxArm64Main = sourceSets.maybeCreate("linuxArm64Main").apply {
84+
dependsOn(linuxMain)
85+
}
8186

8287
val mingwMain = sourceSets.maybeCreate("mingwMain").apply {
8388
dependsOn(nativeCommonMain)
@@ -112,8 +117,11 @@ kotlin {
112117

113118
if(!HostManager.hostIsLinux) {
114119
tasks.findByName("linuxX64Test")?.enabled = false
120+
tasks.findByName("linuxArm64Test")?.enabled = false
115121
tasks.findByName("linkDebugTestLinuxX64")?.enabled = false
122+
tasks.findByName("linkDebugTestLinuxArm64")?.enabled = false
116123
tasks.findByName("publishLinuxX64PublicationToMavenRepository")?.enabled = false
124+
tasks.findByName("publishLinuxArm64PublicationToMavenRepository")?.enabled = false
117125
}
118126

119127
if(!HostManager.hostIsMingw) {

0 commit comments

Comments
 (0)