WireGuardKit: Add WireGuardKitCTarget with private C sources
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
This commit is contained in:
parent
4cb21b5eb0
commit
ddf8ade9c6
|
@ -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: [],
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
import Foundation
|
||||
import Network
|
||||
import NetworkExtension
|
||||
import WireGuardKitCTarget
|
||||
|
||||
class PacketTunnelSettingsGenerator {
|
||||
let tunnelConfiguration: TunnelConfiguration
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
// Copyright © 2018-2019 WireGuard LLC. All Rights Reserved.
|
||||
|
||||
#include "../key.h"
|
|
@ -0,0 +1,4 @@
|
|||
module WireGuardKitCTarget {
|
||||
umbrella header "include/WireGuardKitCTarget.h"
|
||||
export *
|
||||
}
|
Loading…
Reference in New Issue