WireGuardKit: Add WireGuardKitCTarget with private C sources

Signed-off-by: Andrej Mihajlov <and@mullvad.net>
This commit is contained in:
Andrej Mihajlov 2020-11-05 12:41:31 +01:00
parent 4cb21b5eb0
commit ddf8ade9c6
7 changed files with 15 additions and 1 deletions

View File

@ -16,9 +16,14 @@ let package = Package(
targets: [
.target(
name: "WireGuardKit",
dependencies: ["libwg-go"],
dependencies: ["libwg-go", "WireGuardKitCTarget"],
path: "WireGuardKit/Sources/WireGuardKit"
),
.target(
name: "WireGuardKitCTarget",
dependencies: [],
path: "WireGuardKit/Sources/WireGuardKitCTarget"
),
.target(
name: "libwg-go",
dependencies: [],

View File

@ -4,6 +4,7 @@
import Foundation
import Network
import NetworkExtension
import WireGuardKitCTarget
class PacketTunnelSettingsGenerator {
let tunnelConfiguration: TunnelConfiguration

View File

@ -0,0 +1,4 @@
// SPDX-License-Identifier: MIT
// Copyright © 2018-2019 WireGuard LLC. All Rights Reserved.
#include "../key.h"

View File

@ -0,0 +1,4 @@
module WireGuardKitCTarget {
umbrella header "include/WireGuardKitCTarget.h"
export *
}