Skip to content

Commit

Permalink
Move glibconfig.h from lib to include
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Nov 9, 2023
1 parent a51d77c commit 6e683d8
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions glib2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,8 @@ tasks.register<MesonPortTask>("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"))
}
}
}
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -132,13 +128,15 @@ tasks.prefabPackage {
))
}
create("gmodule-2.0") {
includesPerAbi.set(true)
static.set(project.findProperty("libraryType") == "static")
dependencies.set(listOf(
":gmodule-no-export-2.0",
":glib-2.0",
))
}
create("gobject-2.0") {
includesPerAbi.set(true)
static.set(project.findProperty("libraryType") == "static")
dependencies.set(listOf(
":glib-2.0",
Expand All @@ -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",
Expand Down

0 comments on commit 6e683d8

Please sign in to comment.