chore: CI pipeline and build optimizations

This commit is contained in:
zhoubinjia committed 2026-09-14 17:24:51 +08:00
1 parent c7479060e8
commit 9946f89684
5 files changed
+120 -29

No files matched your search

+11 -4
View File
@@ -38,6 +38,8 @@ android {
externalNativeBuild {
cmake {
arguments += "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-z,max-page-size=16384"
// Build the JNI library and its dependencies, excluding libjpeg tools/tests.
targets += "my-native-lib"
}
}
@@ -84,6 +86,11 @@ android {
}
}
lint {
// Keep fatal lint analysis off the Release packaging path.
checkReleaseBuilds = false
}
flavorDimensions += "channel"
productFlavors {
create("dev") {
@@ -204,10 +211,10 @@ dependencies {
implementation("com.google.mediapipe:tasks-vision:1.0.0")
// Bugly for default flavor
"defaultImplementation"("com.tencent.bugly:crashreport:latest.release")
"samsungImplementation"("com.tencent.bugly:crashreport:latest.release")
"meituImplementation"("com.tencent.bugly:crashreport:latest.release")
"devImplementation"("com.tencent.bugly:crashreport:latest.release")
"defaultImplementation"(libs.bugly.crashreport)
"samsungImplementation"(libs.bugly.crashreport)
"meituImplementation"(libs.bugly.crashreport)
"devImplementation"(libs.bugly.crashreport)
// Billing for google flavor
"googleImplementation"(libs.google.billing)
+11 -4
View File
@@ -42,7 +42,6 @@ configure_file(
set_source_files_properties(
"${MGC_DENOISE_ASM}"
PROPERTIES
GENERATED TRUE
OBJECT_DEPENDS "${MGC_DENOISE_CAPSULE}"
)
@@ -77,7 +76,6 @@ configure_file(
set_source_files_properties(
"${MGC_DEMOIRE_ASM}"
PROPERTIES
GENERATED TRUE
OBJECT_DEPENDS "${MGC_DEMOIRE_CAPSULE}"
)
@@ -112,7 +110,6 @@ configure_file(
set_source_files_properties(
"${MGC_SABRE_ASM}"
PROPERTIES
GENERATED TRUE
OBJECT_DEPENDS "${MGC_SABRE_CAPSULE}"
)
@@ -151,10 +148,20 @@ configure_file(
set_source_files_properties(
"${MGC_SPATIAL_RGB_ASM}"
PROPERTIES
GENERATED TRUE
OBJECT_DEPENDS "${MGC_SPATIAL_RGB_CAPSULE}"
)
# These are configure-time outputs, so do not mark them GENERATED: Ninja clean
# would delete them without a build-time command to recreate them. Track them
# as configure dependencies so a missing output also causes CMake to regenerate it.
set_property(
DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS
"${MGC_DENOISE_ASM}"
"${MGC_DEMOIRE_ASM}"
"${MGC_SABRE_ASM}"
"${MGC_SPATIAL_RGB_ASM}"
)
# 4. 添加头文件路径
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/LibRaw)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libjpeg-turbo/src)