Provide LZO as an optional subspec
This commit is contained in:
parent
7a449f90ee
commit
0b20faed27
|
@ -147,6 +147,10 @@ The goal of this module is packaging up a black box implementation of a [NEPacke
|
|||
|
||||
Currently, the extension supports VPN over both [UDP][ne-udp] and [TCP][ne-tcp] sockets. A debug log snapshot is optionally maintained and shared to host apps via the App Group container.
|
||||
|
||||
### LZO
|
||||
|
||||
Due to the restrictive license (GPLv2), LZO support is provided as an optional subspec.
|
||||
|
||||
## License
|
||||
|
||||
### Part I
|
||||
|
|
|
@ -12,6 +12,8 @@ Pod::Spec.new do |s|
|
|||
s.ios.deployment_target = "11.0"
|
||||
s.osx.deployment_target = "10.11"
|
||||
|
||||
s.default_subspecs = "Core", "AppExtension"
|
||||
|
||||
s.subspec "Core" do |p|
|
||||
p.source_files = "TunnelKit/Sources/Core/**/*.{h,m,swift}"
|
||||
p.private_header_files = "TunnelKit/Sources/Core/**/*.h"
|
||||
|
@ -31,4 +33,13 @@ Pod::Spec.new do |s|
|
|||
p.dependency "TunnelKit/Core"
|
||||
p.dependency "SwiftyBeaver"
|
||||
end
|
||||
|
||||
s.subspec "LZO" do |p|
|
||||
p.source_files = "TunnelKit/Sources/Core/LZO.h",
|
||||
"TunnelKit/Sources/Core/Errors.{h,m}",
|
||||
"TunnelKit/Sources/LZO/**/*.{h,m,c}"
|
||||
p.private_header_files = "TunnelKit/Sources/Core/LZO.h",
|
||||
"TunnelKit/Sources/LZO/lib/*.h"
|
||||
p.pod_target_xcconfig = { "APPLICATION_EXTENSION_API_ONLY" => "YES" }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue