swiftPM for macos

This commit is contained in:
Mike Renoir 2022-01-27 20:50:21 +05:00
parent 1e2695839a
commit ac815cd695
3 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,28 @@
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "ManagedFile",
platforms: [.macOS(.v10_11)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "ManagedFile",
targets: ["ManagedFile"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "ManagedFile",
dependencies: [],
path: ".",
exclude: ["BUILD"]),
]
)

View File

@ -19,6 +19,7 @@ let package = Package(
.package(name: "Crc32", path: "../Crc32"),
.package(name: "sqlcipher", path: "../sqlcipher"),
.package(name: "StringTransliteration", path: "../StringTransliteration"),
.package(name: "ManagedFile", path: "../ManagedFile"),
.package(name: "SSignalKit", path: "../SSignalKit"),
],
targets: [
@ -28,6 +29,7 @@ let package = Package(
name: "Postbox",
dependencies: [.product(name: "MurMurHash32", package: "MurMurHash32", condition: nil),
.product(name: "SwiftSignalKit", package: "SSignalKit", condition: nil),
.product(name: "ManagedFile", package: "ManagedFile", condition: nil),
.product(name: "sqlcipher", package: "sqlcipher", condition: nil),
.product(name: "StringTransliteration", package: "StringTransliteration", condition: nil),
.product(name: "Crc32", package: "Crc32", condition: nil)],

View File

@ -0,0 +1,32 @@
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "YuvConversion",
platforms: [.macOS(.v10_11)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "YuvConversion",
targets: ["YuvConversion"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "YuvConversion",
dependencies: [],
path: ".",
exclude: ["BUILD"],
publicHeadersPath: "PublicHeaders",
cSettings: [
.headerSearchPath("PublicHeaders")
]),
]
)