(args)
| 349 | |
| 350 | |
| 351 | def build_suite_sparse(args): |
| 352 | if not args.with_suite_sparse: |
| 353 | return |
| 354 | |
| 355 | path = os.path.join(args.build_path, "suite-sparse") |
| 356 | if os.path.exists(path): |
| 357 | return |
| 358 | |
| 359 | url = "https://codeload.github.com/jlblancoc/" \ |
| 360 | "suitesparse-metis-for-windows/zip/" \ |
| 361 | "7bc503bfa2c4f1be9176147d36daf9e18340780a" |
| 362 | archive_path = os.path.join(args.download_path, "suite-sparse.zip") |
| 363 | download_zipfile(url, archive_path, args.build_path, |
| 364 | "e7c27075e8e0afc9d2cf188630090946") |
| 365 | shutil.move(os.path.join(args.build_path, |
| 366 | "suitesparse-metis-for-windows-" |
| 367 | "7bc503bfa2c4f1be9176147d36daf9e18340780a"), path) |
| 368 | |
| 369 | build_cmake_project(args, os.path.join(path, "__build__")) |
| 370 | |
| 371 | if PLATFORM_IS_WINDOWS: |
| 372 | lapack_blas_path = os.path.join(path, "lapack_windows/x64/*") |
| 373 | mkdir_if_not_exists(os.path.join(args.install_path, "lib64")) |
| 374 | mkdir_if_not_exists(os.path.join(args.install_path, |
| 375 | "lib64/lapack_blas_windows")) |
| 376 | for library_path in glob.glob(lapack_blas_path): |
| 377 | copy_file_if_not_exists( |
| 378 | library_path, os.path.join(args.install_path, |
| 379 | "lib64/lapack_blas_windows", |
| 380 | os.path.basename(library_path))) |
| 381 | |
| 382 | |
| 383 | def build_ceres_solver(args): |
no test coverage detected