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 56c8b9b commit 65f0f0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ kotlin {

kjna {
generate {
include_dirs += listOf(current_platform.getNativeDependenciesDir(project).resolve("include").absolutePath)
include_dirs += listOf(
current_platform.getNativeDependenciesDir(project).resolve("include").absolutePath.replace("\\", "/")
)
parser_include_dirs += listOf(
"/usr/include/linux/",
"/usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/include/"
Expand Down Expand Up @@ -112,7 +114,7 @@ kotlin {

if (OperatingSystem.current().isWindows()) {
include_dirs += File("C:\\cygwin\\lib").listFiles().orEmpty().mapNotNull { file ->
file.resolve("include").takeIf { it.isDirectory }?.absolutePath
file.resolve("include").takeIf { it.isDirectory }?.absolutePath?.replace("\\", "/")
}
}
}
Expand Down

0 comments on commit 65f0f0f

Please sign in to comment.