-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
28 lines (27 loc) · 1.28 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
// swift-tools-version:4.2
// See: https://github.com/apple/swift-package-manager/blob/swift-4.2-branch-04-30-2018/Documentation/PackageDescriptionV4.md
import PackageDescription
let package = Package(
name: "SwiftCppBridgeTemplates",
products: [
.executable(name: "exec_cc", targets: ["exec_cc"]),
.executable(name: "exec_cpp", targets: ["exec_cpp"]),
.executable(name: "exec_swift", targets: ["exec_swift"]),
.library(name: "lib_c", targets: ["lib_c"]),
.library(name: "lib_cpp", targets: ["lib_cpp"]),
.library(name: "lib_cpp_cbind", targets: ["lib_cpp_cbind"]),
//.library(name: "LibCc", targets: ["lib_c"]),
//.library(name: "LibCcStatic", type: .static, targets: ["lib_c"]),
//.library(name: "LibCcDynamic", type: .dynamic, targets: ["lib_c"]),
],
dependencies: [],
targets: [
.target(name: "lib_c", dependencies:[]),
.target(name: "lib_cpp", dependencies:[]),
.target(name: "lib_cpp_cbind", dependencies:["lib_cpp"]),
.target(name: "exec_cc", dependencies:["lib_c", "lib_cpp_cbind"]),
.target(name: "exec_cpp", dependencies:["lib_c", "lib_cpp"]),
.target(name: "exec_swift", dependencies:["lib_c", "lib_cpp_cbind"]),
],
swiftLanguageVersions: [.v4_2]
)