-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMetalImage.podspec
79 lines (65 loc) · 2.67 KB
/
MetalImage.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
#
# Be sure to run `pod spec lint MetalImage.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#
Pod::Spec.new do |s|
s.name = "MetalImage"
s.version = "0.0.1"
s.summary = "A short description of MetalImage."
s.description = <<-DESC
MetalImage 为 iOS 平台上一个简单的Metal滤镜处理框架
DESC
s.homepage = "https://github.com/hello-david/MetalImage.git"
s.license = {
:type => 'Copyright',
:text => <<-LICENSE
© 2008-2018 David.Dai. All rights reserved.
LICENSE
}
s.author = { "david.dai" => "[email protected]" }
s.platform = :ios, "9.0"
s.source = { :git => "https://github.com/hello-david/MetalImage.git", :tag => "#{s.version}" }
s.public_header_files = 'MetalImage/MetalImage.h'
s.default_subspec = 'Core'
# Core
s.subspec 'Core' do |core|
core.subspec 'Basic' do |basic|
basic.public_header_files = 'MetalImage/Basic/**/*.{h}'
basic.source_files = 'MetalImage/Basic/**/*.{h,m,cpp,mm}'
end
core.subspec 'Source' do |source|
source.public_header_files = 'MetalImage/Source/**/*.{h}'
source.source_files = 'MetalImage/Source/**/*.{h,m,cpp,mm}'
end
core.subspec 'Filter' do |filter|
filter.public_header_files = 'MetalImage/Filter/**/*.{h}'
filter.source_files = 'MetalImage/Filter/**/*.{h,m,cpp,mm}'
end
core.subspec 'Target' do |target|
target.public_header_files = 'MetalImage/Target/**/*.{h}'
target.source_files = 'MetalImage/Target/**/*.{h,m,cpp,mm}'
end
core.subspec 'Category' do |category|
category.public_header_files = 'MetalImage/Category/**/*.{h}'
category.source_files = 'MetalImage/Category/**/*.{h,m,cpp,mm}'
end
core.source_files = 'MetalImage/MetalImage.h'
core.resource_bundles = {
'MetalLibrary' => [
'MetalImage/Library/*.metal',
'MetalImage/Resource/*'
]
}
core.frameworks = "Metal", "MetalKit", "CoreVideo", "AVFoundation"
end
# 滤镜拓展
s.subspec 'ExtensionFilter' do |extensionFilter|
extensionFilter.public_header_files = 'MetalImage/ExtensionFilter/**/*.{h}'
extensionFilter.source_files = 'MetalImage/ExtensionFilter/**/*.{h,m,cpp,mm}'
extensionFilter.dependency 'MetalImage/Core'
end
s.requires_arc = true
end