Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterofbread committed Nov 24, 2024
1 parent 2fa37b7 commit 428d5de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ clikt.version=4.4.0
mediasession.version=0.1.1
ytm.version=0.2.5
ktor.version=3.0.0-beta-1
kjna.version=0.0.5
kjna.version=0.0.5-TEST11

# Nix
org.gradle.java.installations.fromEnv=JAVA_21_HOME,JAVA_22_HOME
11 changes: 5 additions & 6 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ kotlin {
libraries = listOf("mpv")

jextract {
// macros += listOf("size_t=unsigned long")
if (!OperatingSystem.current().isWindows()) {
macros += listOf("size_t=unsigned long")
}
}

// if (OperatingSystem.current().isWindows()) {
Expand Down Expand Up @@ -360,16 +362,13 @@ enum class CinteropLibraries {
else -> {}
}

val def_file_text: String =
def_file.writeText(
"""
staticLibraries = ${lib_filenames.joinToString(" ")}
libraryPaths = ${lib_dirs.map { it.absolutePath.replace("\\", "/") }.joinToString(" ")}
linkerOpts = ${linker_opts.joinToString(" ")}
""".trimIndent()

println("DEF FILE TEXT:\n$def_file_text")

def_file.writeText(def_file_text)
)

settings.defFile(def_file)
}
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pluginManagement {

repositories {
mavenLocal()
maven("https://maven.toastbits.dev/")
mavenCentral()
gradlePluginPortal()
maven("https://jitpack.io")
Expand All @@ -34,6 +35,7 @@ pluginManagement {
dependencyResolutionManagement {
repositories {
mavenLocal()
maven("https://maven.toastbits.dev/")
maven("https://jitpack.io")
mavenCentral()
}
Expand Down

0 comments on commit 428d5de

Please sign in to comment.