diff --git a/glib2/build.gradle.kts b/glib2/build.gradle.kts index 4ee90e0..73d278a 100644 --- a/glib2/build.gradle.kts +++ b/glib2/build.gradle.kts @@ -93,14 +93,8 @@ tasks.register("buildPort") { doLast { com.android.ndkports.Abi.values().forEach { abi -> installDirectoryFor(abi).let { iDir -> - val glibConfigFile = File("lib/glib-2.0/include/glibconfig.h") - val dst = iDir.resolve("include/android.${abi.abiName}").resolve(glibConfigFile).apply { - parentFile.mkdirs() - if (exists()) { - delete() - } - } - iDir.resolve(glibConfigFile).copyTo(dst) + iDir.resolve("lib/glib-2.0/include/glibconfig.h") + .copyTo(iDir.resolve("include/glib-2.0/glibconfig.h")) } } } @@ -113,6 +107,7 @@ tasks.prefabPackage { modules { create("glib-2.0") { + includesPerAbi.set(true) static.set(project.findProperty("libraryType") == "static") dependencies.set(listOf( "//proxy-libintl:intl", @@ -122,6 +117,7 @@ tasks.prefabPackage { )) } create("gio-2.0") { + includesPerAbi.set(true) static.set(project.findProperty("libraryType") == "static") dependencies.set(listOf( ":glib-2.0", @@ -132,6 +128,7 @@ tasks.prefabPackage { )) } create("gmodule-2.0") { + includesPerAbi.set(true) static.set(project.findProperty("libraryType") == "static") dependencies.set(listOf( ":gmodule-no-export-2.0", @@ -139,6 +136,7 @@ tasks.prefabPackage { )) } create("gobject-2.0") { + includesPerAbi.set(true) static.set(project.findProperty("libraryType") == "static") dependencies.set(listOf( ":glib-2.0", @@ -147,6 +145,7 @@ tasks.prefabPackage { )) } create("gthread-2.0") { + includesPerAbi.set(true) static.set(project.findProperty("libraryType") == "static") dependencies.set(listOf( ":glib-2.0",