forked from WireGuard/wireguard-apple
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWireGuardKit.podspec
58 lines (51 loc) · 2.28 KB
/
WireGuardKit.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Pod::Spec.new do |spec|
spec.name = "WireGuardKit"
spec.version = "0.5"
spec.summary = "WireGuard for iOS and macOS"
spec.description = <<-DESC
This project contains an application for iOS and for macOS, as well as many components shared between the two of them.
You may toggle between the two platforms by selecting the target from within Xcode.
DESC
spec.homepage = "https://mysterium.network"
spec.license = { :type => "MIT", :file => "COPYING" }
spec.author = "Mysterium Network"
spec.ios.deployment_target = "15.0"
spec.osx.deployment_target = "12.0"
spec.source = { :git => "https://github.com/mysteriumnetwork/wireguard-apple.git", :tag => "#{spec.version}" }
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# CocoaPods is smart about how it includes source code. For source files
# giving a folder will include any swift, h, m, mm, c & cpp files.
# For header files it will include any header in the folder.
# Not including the public_header_files will make all headers public.
#
spec.vendored_frameworks = "Frameworks/wg-go.xcframework"
spec.swift_version = "5.7"
spec.source_files = [
"Sources/WireGuardKitC/**/*.{c,h}",
"Sources/WireGuardKit/**/*.{swift}",
"Sources/Shared/**/*.{c,h,swift}",
"Sources/WireGuardKitGo/wireguard.h",
"Sources/WireGuardNetworkExtension/**/*.{c,h,swift}",
]
spec.exclude_files = [
"Sources/Shared/**/test*.*",
"Sources/WireGuardKitGo/out/**",
]
spec.preserve_paths = [
"Sources/WireGuardKitC/module.modulemap",
]
spec.pod_target_xcconfig = {
"SWIFT_INCLUDE_PATHS" => [
"${PODS_TARGET_SRCROOT}/WireGuardKit/Sources/WireGuardKitC/**",
"${PODS_TARGET_SRCROOT}/WireGuardKit/Sources/WireGuardKit/**",
"${PODS_TARGET_SRCROOT}/WireGuardKit/Sources/WireGuardKitGo/wireguard.h",
"${PODS_TARGET_SRCROOT}/WireGuardKit/Sources/Shared/**/*",
"${PODS_TARGET_SRCROOT}/WireGuardKit/Sources/WireGuardNetworkExtension/**/*",
],
"HEADER_SEARCH_PATHS" => [
"${PODS_TARGET_SRCROOT}/WireGuardKit/Sources/WireGuardKitGo/wireguard.h",
],
"APPLICATION_EXTENSION_API_ONLY" => "YES",
}
end