Move all source files to `Sources/` and rename WireGuardKit targets

Signed-off-by: Andrej Mihajlov <and@mullvad.net>
This commit is contained in:
Andrej Mihajlov 2020-12-02 12:27:39 +01:00
parent 9c38a1b897
commit ec57408570
209 changed files with 54 additions and 58 deletions

View File

@ -10,24 +10,21 @@ let package = Package(
.iOS(.v12)
],
products: [
.library(name: "WireGuardKit", targets: ["WireGuardKit"])
.library(name: "WireGuardKit", targets: ["WireGuardKitSwift"])
],
dependencies: [],
targets: [
.target(
name: "WireGuardKit",
dependencies: ["libwg-go", "WireGuardKitCTarget"],
path: "WireGuardKit/Sources/WireGuardKit"
name: "WireGuardKitSwift",
dependencies: ["WireGuardKitGo", "WireGuardKitC"]
),
.target(
name: "WireGuardKitCTarget",
dependencies: [],
path: "WireGuardKit/Sources/WireGuardKitCTarget"
name: "WireGuardKitC",
dependencies: []
),
.target(
name: "libwg-go",
name: "WireGuardKitGo",
dependencies: [],
path: "WireGuardKit/Sources/libwg-go",
linkerSettings: [.linkedLibrary("wg-go")]
)
]

View File

@ -54,7 +54,7 @@ $ open ./WireGuard/WireGuard.xcodeproj
the "External Build Tool Configuration":
```
$BUILD_DIR/../../SourcePackages/checkouts/wireguard-apple/wireguard-go-bridge
$BUILD_DIR/../../SourcePackages/checkouts/Sources/WireGuardGo
```
- Switch to "Build Settings" and find `SDKROOT`.

Some files were not shown because too many files have changed in this diff Show More