完善预编译库下载工具

This commit is contained in:
2025-03-21 12:34:44 +08:00
parent 049a70afc2
commit f343d28540
3 changed files with 26 additions and 26 deletions

View File

@ -140,7 +140,6 @@ async function downloadFromURL(name, url, resolver) {
fs.rmSync(outputDir, { recursive: true, force: true });
}
async function main() {
//OpenCV
if (buildOptions.withOpenCV) cmakeBuildFromSource("OpenCV", "https://github.com/opencv/opencv.git", "4.11.0", null, [
@ -155,7 +154,12 @@ async function main() {
"-DBUILD_FAT_JAVA_LIB=OFF",
"-DBUILD_ANDROID_SERVICE=OFF",
"-DBUILD_JAVA=OFF",
"-DBUILD_PERF_TESTS=OFF"
"-DBUILD_PERF_TESTS=OFF",
"-DBUILD_TIFF=ON",
"-DBUILD_OPENJPEG=ON",
"-DBUILD_JPEG=ON",
"-DBUILD_PNG=ON",
"-DBUILD_WEBP=ON",
], (root) => [
`set(OpenCV_STATIC ON)`,
os.platform() == "win32" ?