Skip to content

Commit

Permalink
Add dynamic linking options (#4)
Browse files Browse the repository at this point in the history
* Added dynamic linking options

* Fixed naming convention to match Jamf internal convention

Co-authored-by: Cyrus Ingraham <cyrus.ingraham@jamf.com>
  • Loading branch information
cyrusingraham and cyrusingraham authored May 15, 2020
1 parent 00f236f commit 4eae51a
Showing 1 changed file with 43 additions and 6 deletions.
49 changes: 43 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,50 @@ let package = Package(
name: "Subprocess",
platforms: [ .macOS(.v10_12) ],
products: [
.library(name: "Subprocess", targets: [ "Subprocess" ]),
.library(name: "SubprocessMocks", targets: [ "SubprocessMocks" ])
.library(
name: "Subprocess",
type: .static,
targets: [ "Subprocess" ]
),
.library(
name: "SubprocessMocks",
type: .static,
targets: [ "SubprocessMocks" ]
),
.library(
name: "libSubprocess",
type: .dynamic,
targets: [ "Subprocess" ]
),
.library(
name: "libSubprocessMocks",
type: .dynamic,
targets: [ "SubprocessMocks" ]
)
],
targets: [
.target( name: "Subprocess", dependencies: []),
.target( name: "SubprocessMocks", dependencies: [ "Subprocess" ]),
.testTarget(name: "UnitTests", dependencies: [ "Subprocess", "SubprocessMocks" ]),
.testTarget(name: "SystemTests", dependencies: [ "Subprocess" ])
.target(
name: "Subprocess",
dependencies: []
),
.target(
name: "SubprocessMocks",
dependencies: [
.target(name: "Subprocess")
]
),
.testTarget(
name: "UnitTests",
dependencies: [
.target(name: "Subprocess"),
.target(name: "SubprocessMocks")
]
),
.testTarget(
name: "SystemTests",
dependencies: [
.target(name: "Subprocess")
]
)
]
)

0 comments on commit 4eae51a

Please sign in to comment.