// swift-tools-version: 6.2 // MDit의 그림 엔진 프레임워크(MDitImaging)를 따로 빌드하는 패키지 정의. // LocalImageEngine.swift.txt를 받아 .txt를 떼고 Sources/Imaging/ 아래에 두고, 고친 라이브러리를 쓰려면 아래 의존을 그 라이브러리로 바꾼다. // The package definition that builds MDit's picture engine framework (MDitImaging) on its own. // Download LocalImageEngine.swift.txt, drop the .txt, and put it under Sources/Imaging/. To use a modified library, point the dependency below at it. import PackageDescription let package = Package( name: "MDitImaging", platforms: [.iOS(.v26), .macOS(.v26)], products: [ .library(name: "MDitImaging", type: .dynamic, targets: ["Imaging"]), ], dependencies: [ .package(url: "https://github.com/drawthingsai/media-generation-kit.git", revision: "8868a9685d9c299816f43ef53efd455ffca437f0"), ], targets: [ .target(name: "Imaging", dependencies: [.product(name: "MediaGenerationKit", package: "media-generation-kit")]), ] )