Adds initial `Package.swift`.

This commit is contained in:
Krunoslav Zaher 2015-12-26 00:44:45 +01:00
parent d377f61794
commit f26167e10a
3 changed files with 82 additions and 0 deletions

11
.gitignore vendored
View File

@ -39,3 +39,14 @@ Carthage/Build
# Various
.DS_Store
# Linux
*.swp
*.swo
# Swift Package Manager
.build/

68
Package.swift Normal file
View File

@ -0,0 +1,68 @@
import PackageDescription
#if os(OSX)
let package = Package(
name: "RxSwift",
targets: [
Target(
name: "RxSwift"
),
Target(
name: "RxCocoa",
dependencies: [
.Target(name: "RxSwift")
]
),
Target(
name: "RxTests",
dependencies: [
.Target(name: "RxSwift")
]
),
Target(
name: "RxBlocking",
dependencies: [
.Target(name: "RxSwift")
]
),
Target(
name: "AllTests",
dependencies: [
.Target(name: "RxSwift"),
.Target(name: "RxBlocking"),
.Target(name: "RxTests")
]
)
]
)
#elseif os(Linux)
let package = Package(
name: "RxSwift",
targets: [
Target(
name: "RxSwift"
),
Target(
name: "RxTests",
dependencies: [
.Target(name: "RxSwift")
]
),
Target(
name: "RxBlocking",
dependencies: [
.Target(name: "RxSwift")
]
),
Target(
name: "AllTests",
dependencies: [
.Target(name: "RxSwift"),
.Target(name: "RxBlocking"),
.Target(name: "RxTests")
]
)
]
)
#else
#endif

View File

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Package.swift">
</FileRef>
<FileRef
location = "group:LICENSE.md">
</FileRef>