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-02 13:02:36 +01:00
parent de6aa3eb58
commit fd527f73e6
3 changed files with 6 additions and 4 deletions

View File

@ -20,11 +20,13 @@ let package = Package(
),
.target(
name: "WireGuardKitC",
dependencies: []
dependencies: [],
publicHeadersPath: "."
),
.target(
name: "WireGuardKitGo",
dependencies: [],
publicHeadersPath: ".",
linkerSettings: [.linkedLibrary("wg-go")]
)
]

View File

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

View File

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