-
Notifications
You must be signed in to change notification settings - Fork 55
/
Arti.podspec
93 lines (72 loc) · 2.66 KB
/
Arti.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Pod::Spec.new do |m|
m.name = 'Tor'
m.version = '408.13.1'
m.summary = 'Tor.framework is the easiest way to embed Tor in your iOS application.'
m.description = 'Tor.framework is the easiest way to embed Tor in your iOS application.'
m.homepage = 'https://github.com/iCepa/Tor.framework'
m.license = { :type => 'MIT', :file => 'LICENSE' }
m.authors = {
'Conrad Kramer' => '[email protected]',
'Chris Ballinger' => '[email protected]',
'Mike Tigas' => '[email protected]',
'Benjamin Erhart' => '[email protected]', }
m.source = {
:git => 'https://github.com/iCepa/Tor.framework.git',
:branch => 'pure_pod',
:tag => "v#{m.version}",
:submodules => true }
m.social_media_url = 'https://chaos.social/@tla'
m.ios.deployment_target = '12.0'
m.macos.deployment_target = '10.13'
script = <<-ENDSCRIPT
cd "${PODS_TARGET_SRCROOT}/Tor/%1$s"
../%1$s.sh
ENDSCRIPT
m.subspec 'Core' do |s|
s.requires_arc = true
s.source_files = 'Tor/Classes/Core/**/*'
end
m.subspec 'Arti' do |s|
s.dependency 'Tor/Core'
s.source_files = 'Tor/Classes/Arti/**/*'
s.pod_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_TARGET_SRCROOT}/Tor/arti/common"',
'OTHER_LDFLAGS' => '$(inherited) -L"${BUILT_PRODUCTS_DIR}/Tor" -l"arti_mobile_ex"',
}
s.user_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => 'USE_ARTI=1',
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) USE_ARTI',
}
s.script_phases = [
{
:name => 'Build Arti',
:execution_position => :before_compile,
:output_files => ['arti-always-execute-this-but-supress-warning'],
:script => sprintf(script, "arti")
},
]
s.preserve_paths = 'Tor/arti', 'Tor/arti.sh'
end
m.subspec 'Onionmasq' do |s|
s.dependency 'Tor/Core'
s.source_files = 'Tor/Classes/Onionmasq/**/*'
s.pod_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_TARGET_SRCROOT}/Tor/onionmasq"',
'OTHER_LDFLAGS' => '$(inherited) -L"${BUILT_PRODUCTS_DIR}/Tor" -l"onionmasq_apple"',
}
s.user_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => 'USE_ONIONMASQ=1',
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) USE_ONIONMASQ',
}
s.script_phases = [
{
:name => 'Build Onionmasq',
:execution_position => :before_compile,
:output_files => ['onionmasq-always-execute-this-but-supress-warning'],
:script => sprintf(script, "onionmasq")
},
]
s.preserve_paths = 'Tor/onionmasq', 'Tor/onionmasq.sh'
end
m.default_subspecs = 'Arti'
end