summaryrefslogtreecommitdiff
path: root/Package.swift
blob: 345db023fcc9818252bebebc7105c5109819313e (plain)
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
42
43
44
// swift-tools-version:5.3
import PackageDescription

let package = Package(
    name: "SmartDeviceLink",
    defaultLocalization: "en",
    platforms: [
        .iOS(.v10)
    ],
    products: [
        .library(name: "SmartDeviceLink", targets: ["SmartDeviceLink"]),
        .library(name: "SmartDeviceLinkSwift", targets: ["SmartDeviceLinkSwift"])
    ],
    targets: [
        .target(
            name: "SmartDeviceLink",
            dependencies: ["BiSON"],
            path: "SmartDeviceLink",
            exclude: ["Info.plist"],
            publicHeadersPath: "public"
        ),
        .target(
            name: "SmartDeviceLinkSwift",
            dependencies: ["SmartDeviceLink"],
            path: "SmartDeviceLinkSwift",
            exclude: ["Info.plist"]
        ),
        .target(
            name: "BiSON",
            path: "bson_c_lib/src",
            exclude: [
                "Makefile.am",
                "Makefile.in",
                "emhashmap/LICENSE",
                "emhashmap/README.mkd",
                "emhashmap/Makefile.in",
                "emhashmap/Makefile.am",
                "emhashmap/runtests.sh",
                "emhashmap/tests.c"
            ],
            publicHeadersPath: "."
        )
    ]
)