-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
94 lines (83 loc) · 2.37 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
94 lines (83 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import org.gradle.kotlin.dsl.withType
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
plugins {
kotlin("multiplatform") version "2.3.0"
id("com.vanniktech.maven.publish") version "0.36.0"
}
group = "org.ntqqrev"
version = "0.1.0"
repositories {
mavenCentral()
}
val interopDir = file("src/nativeInterop")
fun libraryPath(target: String) = interopDir.resolve("lib/$target")
kotlin {
jvm()
mingwX64()
linuxX64()
linuxArm64()
macosX64()
macosArm64()
sourceSets {
commonMain.dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-io-core:0.8.2")
}
commonTest.dependencies {
implementation(kotlin("test"))
}
jvmMain.dependencies {
implementation("net.java.dev.jna:jna:5.18.1")
}
}
targets.withType<KotlinNativeTarget> {
val main by compilations.getting
val nativeInterop by main.cinterops.creating {
definitionFile.set(project.file("src/nativeInterop/interop.def"))
extraOpts("-libraryPath", libraryPath(targetName))
}
}
mingwX64 {
binaries.all {
linkerOpts(
"-Wl,-Bstatic",
"-lstdc++",
"-lgcc",
"-Wl,-Bdynamic"
)
}
}
jvmToolchain(25)
}
mavenPublishing {
publishToMavenCentral()
signAllPublications()
coordinates(
groupId = project.group.toString(),
artifactId = project.name,
version = project.version.toString()
)
pom {
name = project.name
description = "Kotlin binding of LagrangeCodec"
url = "https://github.com/SaltifyDev/acidify-codec"
inceptionYear = "2026"
licenses {
license {
name = "GNU General Public License v3.0"
url = "https://www.gnu.org/licenses/gpl-3.0.en.html"
}
}
developers {
developer {
id = "Wesley-Young"
name = "Wesley F. Young"
email = "wesley.f.young@outlook.com"
}
}
scm {
connection = "scm:git:git://github.com/SaltifyDev/acidify-codec.git"
developerConnection = "scm:git:ssh://github.com/SaltifyDev/acidify-codec.git"
url = "https://github.com/SaltifyDev/acidify-codec"
}
}
}