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: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
name: "WireGuardKit",
|
name: "WireGuardKit",
|
||||||
dependencies: ["libwg-go"],
|
dependencies: ["libwg-go", "WireGuardKitCTarget"],
|
||||||
path: "WireGuardKit/Sources/WireGuardKit"
|
path: "WireGuardKit/Sources/WireGuardKit"
|
||||||
),
|
),
|
||||||
|
.target(
|
||||||
|
name: "WireGuardKitCTarget",
|
||||||
|
dependencies: [],
|
||||||
|
path: "WireGuardKit/Sources/WireGuardKitCTarget"
|
||||||
|
),
|
||||||
.target(
|
.target(
|
||||||
name: "libwg-go",
|
name: "libwg-go",
|
||||||
dependencies: [],
|
dependencies: [],
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
import Network
|
import Network
|
||||||
import NetworkExtension
|
import NetworkExtension
|
||||||
|
import WireGuardKitCTarget
|
||||||
|
|
||||||
class PacketTunnelSettingsGenerator {
|
class PacketTunnelSettingsGenerator {
|
||||||
let tunnelConfiguration: TunnelConfiguration
|
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