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 413fa4d commit 15d5c1c
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,11 @@ kotlin {

kjna {
generate {
include_dirs +=
listOf(
current_platform.getNativeDependenciesDir(project).resolve("include").absolutePath.replace("\\", "/"),
"C:\\cygwin\\usr\\include\\gtk-3.0"
)
parser_include_dirs +=
listOf(
"/usr/include/linux/",
"/usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/include/"
)
include_dirs += listOf(current_platform.getNativeDependenciesDir(project).resolve("include").absolutePath)
parser_include_dirs += listOf(
"/usr/include/linux/",
"/usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/include/"
)

packages(native_targets) {
add("gen.libmpv") {
Expand Down Expand Up @@ -114,6 +109,10 @@ kotlin {
// _cairo_path_data_t
overrides.overrideAnonymousStructIndex(24, 10)
overrides.overrideAnonymousStructIndex(25, 11)

if (OperatingSystem.current().isWindows()) {
include_dirs += File("C:\\cygwin\\usr\\include").listFiles().orEmpty().map { it.absolutePath }
}
}
}
}
Expand Down

0 comments on commit 15d5c1c

Please sign in to comment.