-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Harbeth.podspec
70 lines (58 loc) · 2.34 KB
/
Harbeth.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
#
# Be sure to run 'pod lib lint Harbeth.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'Harbeth'
s.version = '1.2.2'
s.summary = 'About image and video add filter for metal.'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.homepage = 'https://github.com/yangKJ/Harbeth'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Condy' => 'yangkj310@gmail.com' }
s.source = { :git => 'https://github.com/yangKJ/Harbeth.git', :tag => s.version }
s.swift_version = '5.0'
s.ios.deployment_target = '10.0'
s.macos.deployment_target = '10.13'
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '5.0' }
s.requires_arc = true
s.static_framework = true
s.module_name = 'Harbeth'
s.ios.source_files = 'Sources/Harbeth.h'
s.macos.source_files = 'Sources/Harbeth.h'
s.prefix_header_file = false
s.subspec 'Basic' do |xx|
xx.source_files = 'Sources/Basic/**/*.swift'
xx.weak_frameworks = 'ImageIO', 'MetalKit', 'AVFoundation'
end
s.subspec 'Compute' do |xx|
xx.source_files = 'Sources/Compute/**/*.swift'
xx.resource_bundles = { s.name => [ 'Sources/Compute/**/*.metal' ] }
xx.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'HARBETH_COMPUTE_LIBRARY_IN_BUNDLE',
'GCC_PREPROCESSOR_DEFINITIONS' => 'HARBETH_COMPUTE_LIBRARY_IN_BUNDLE=1'
}
xx.dependency 'Harbeth/Basic'
end
s.subspec 'CoreImage' do |xx|
xx.source_files = 'Sources/CoreImage/**/*.swift'
xx.weak_frameworks = 'CoreImage'
xx.dependency 'Harbeth/Basic'
end
s.subspec 'MPS' do |xx|
xx.source_files = 'Sources/MPS/*.swift'
xx.weak_frameworks = 'MetalPerformanceShaders'
xx.dependency 'Harbeth/Basic'
end
s.subspec 'SwiftUI' do |xx|
xx.source_files = 'Sources/SwiftUI/*.swift'
xx.dependency 'Harbeth/Basic'
end
end