SPB Git

Repository Public License

Package.swift 1.9 KB 39 lines swift

1// swift-tools-version: 6.02// ORIX Convert — Packages/EngineScientific/Package.swift3// Description: Scientific data engine of ORIX Convert (HDF5, NetCDF classic and NetCDF-4; CSV, Parquet and JSON as4//              tabular targets). Requires EmbeddedEngines/hdf5/build.sh to have produced CHDF5.xcframework.5// Author: Simon-Pierre Boucher — contact@spboucher.ai6import PackageDescription78let package = Package(9    name: "EngineScientific",10    platforms: [.macOS(.v15)],11    products: [12        .library(name: "EngineScientific", targets: ["EngineScientific"]),13        .executable(name: "EngineScientificBench", targets: ["EngineScientificBench"]),14        // Helper run in its own process to contain crashes of the HDF5 C library on damaged files. To be copied15        // into the app's Contents/Helpers (or EmbeddedEngines/tools) under this name.16        .executable(name: "orix-hdf5-probe", targets: ["HDF5Probe"]),17    ],18    dependencies: [.package(path: "../ORIXConvertCore")],19    targets: [20        .binaryTarget(name: "CHDF5", path: "../../EmbeddedEngines/hdf5/CHDF5.xcframework"),21        // Macros of the HDF5 API (type and property-list identifiers), error-stack capture, link-traversal refusal.22        .target(name: "CHDF5Shim", dependencies: ["CHDF5"]),23        .target(24            name: "EngineScientific",25            dependencies: [.product(name: "ConvertCore", package: "ORIXConvertCore"), "CHDF5", "CHDF5Shim"],26            linkerSettings: [.linkedLibrary("z")]27        ),28        .executableTarget(name: "HDF5Probe", dependencies: ["EngineScientific"]),29        .executableTarget(30            name: "EngineScientificBench",31            dependencies: ["EngineScientific", .product(name: "ConvertCore", package: "ORIXConvertCore")]32        ),33        .testTarget(34            name: "EngineScientificTests",35            dependencies: ["EngineScientific", "CHDF5", "CHDF5Shim", .product(name: "ConvertCore", package: "ORIXConvertCore")]36        ),37    ]38)39
Files main
Menu

Theme