This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
forked from ursachec/CPAProxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CPAProxy.podspec
36 lines (30 loc) · 1.73 KB
/
CPAProxy.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
Pod::Spec.new do |s|
s.name = "CPAProxy"
s.version = "1.2.0"
s.summary = "CPAProxy is a thin Objective-C wrapper around Tor."
s.author = "Claudiu-Vlad Ursache <[email protected]>"
s.homepage = "https://github.com/ursachec/CPAProxy"
s.license = { :type => 'MIT', :file => 'LICENSE.md' }
s.source = { :git => "https://github.com/ursachec/CPAProxy.git", :branch => "master"}
s.prepare_command = <<-CMD
export PLATFORM_TARGET="iOS"
bash ./scripts/build-all.sh
export PLATFORM_TARGET="macOS"
bash ./scripts/build-all.sh
CMD
s.dependency 'CocoaAsyncSocket'
s.ios.deployment_target = "8.0"
s.ios.source_files = "CPAProxy/*.{h,m}", "CPAProxyDependencies-iOS/tor_cpaproxy.h"
s.ios.private_header_files = "CPAProxyDependencies-iOS/tor_cpaproxy.h"
s.ios.vendored_libraries = "CPAProxyDependencies-iOS/*.a"
s.ios.resource_bundles = {"CPAProxy" => ["CPAProxyDependencies-iOS/geoip", "CPAProxyDependencies-iOS/geoip6", "CPAProxyDependencies-iOS/torrc"]}
s.osx.deployment_target = "10.10"
s.osx.source_files = "CPAProxy/*.{h,m}", "CPAProxyDependencies-macOS/tor_cpaproxy.h"
s.osx.private_header_files = "CPAProxyDependencies-macOS/tor_cpaproxy.h"
s.osx.vendored_libraries = "CPAProxyDependencies-macOS/*.a"
s.osx.resource_bundles = {"CPAProxy" => ["CPAProxyDependencies-macOS/geoip", "CPAProxyDependencies-macOS/geoip6", "CPAProxyDependencies-macOS/torrc"]}
s.libraries = 'crypto', 'curve25519_donna', 'event_core', 'event_extra', 'event_openssl',
'event_pthreads', 'event', 'or-crypto', 'or-event', 'or', 'ssl', 'tor', 'z',
'or-trunnel', 'ed25519_donna', 'ed25519_ref10', 'or-ctime'
s.requires_arc = true
end