Upgrade libcxx and use c++ 23

1. Meet latest glaze's requirements, and upgrade it
2. Get rid of glaze_write_json to avoid using iostream, which made binary size increased. Use C methods instead.

Signed-off-by: GarfieldHan <2652609017@qq.com>
This commit is contained in:
GarfieldHan
2024-07-18 10:27:54 +08:00
parent 4d7257fcc7
commit 55cbe69ad5
7 changed files with 47 additions and 110 deletions

View File

@@ -28,7 +28,7 @@ android {
}
externalNativeBuild {
cmake {
cppFlags("-std=c++20")
cppFlags("-std=c++23")
arguments(
"-DANDROID_STL=none",
"-DMODULE_NAME=$moduleId"
@@ -36,8 +36,14 @@ android {
}
}
}
buildFeatures {
prefab = true
}
externalNativeBuild {
cmake {
version = "3.28.0+"
path("src/main/cpp/CMakeLists.txt")
}
}
@@ -51,6 +57,10 @@ android {
}
}
dependencies {
compileOnly(libs.cxx)
}
androidComponents.onVariants { variant ->
afterEvaluate {
val variantLowered = variant.name.lowercase()