forked from tbartelmess/swift-ical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
37 lines (35 loc) · 1.1 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
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "swift-ical",
products: [
.library(
name: "SwiftIcal",
targets: ["SwiftIcal"]),
.library(
name: "Libical",
targets: ["CLibical"])
],
targets: [
.target(
name: "CLibical",
publicHeadersPath: "Public",
cSettings: [
.define("HAVE_CONFIG_H"),
.define("_GNU_SOURCE", .when(platforms: [Platform.linux])),
.define("HAVE_ENDIAN_H", .when(platforms: [Platform.linux])),
.define("HAVE_BYTESWAP_H", .when(platforms: [Platform.linux])),
.define("PACKAGE_DATA_DIR=\"/tmp/zoneinfo\""),
.headerSearchPath("include")
]),
.target(
name: "SwiftIcal",
dependencies: ["CLibical"]
),
.testTarget(
name: "SwiftIcalTests",
dependencies: ["SwiftIcal"])
],
cLanguageStandard: .c11
)