forked from OlehKulykov/PLzmaSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
executable file
·41 lines (39 loc) · 1.25 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "PLzmaSDK",
products: [
.library(name: "PLzmaSDK", targets: ["PLzmaSDK"]),
.library(name: "PLzmaSDK-Static", type: .static, targets: ["PLzmaSDK"]),
.library(name: "PLzmaSDK-Dynamic", type: .dynamic, targets: ["PLzmaSDK"])
],
targets: [
.target(name: "libplzma",
path: "src",
cSettings: [
.define("LIBPLZMA_VERSION_BUILD", to: "624")
],
cxxSettings: [
.define("LIBPLZMA_VERSION_BUILD", to: "624")
]
),
.target(name: "PLzmaSDK",
dependencies: [
.target(name: "libplzma")
],
path: "swift"),
.target(name: "plzma_test_files",
path: "test_files"),
.testTarget(
name: "PLzmaSDKTests",
dependencies: [
.target(name: "PLzmaSDK"),
.target(name: "libplzma"),
.target(name: "plzma_test_files")
],
path: "swift_pm_tests")
],
swiftLanguageVersions: [.v5],
cLanguageStandard: .c11,
cxxLanguageStandard: .cxx11
)