WireGuardKit: Set publicHeadersPath = "." to flatten public headers structure

Signed-off-by: Andrej Mihajlov <and@mullvad.net>
This commit is contained in:
Andrej Mihajlov
2020-12-03 13:32:24 +01:00
parent de6aa3eb58
commit fd527f73e6
3 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -20,11 +20,13 @@ let package = Package(
), ),
.target( .target(
name: "WireGuardKitC", name: "WireGuardKitC",
dependencies: [] dependencies: [],
publicHeadersPath: "."
), ),
.target( .target(
name: "WireGuardKitGo", name: "WireGuardKitGo",
dependencies: [], dependencies: [],
publicHeadersPath: ".",
linkerSettings: [.linkedLibrary("wg-go")] linkerSettings: [.linkedLibrary("wg-go")]
) )
] ]
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// Copyright © 2018-2019 WireGuard LLC. All Rights Reserved. // Copyright © 2018-2019 WireGuard LLC. All Rights Reserved.
#include "../key.h" #include "key.h"
#include "../x25519.h" #include "x25519.h"
+1 -1
View File
@@ -1,4 +1,4 @@
module WireGuardKitC { module WireGuardKitC {
umbrella header "include/WireGuardKitCTarget.h" umbrella header "WireGuardKitC.h"
export * export *
} }