forked from mxcl/YOLOKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathYOLOKit.podspec
58 lines (52 loc) · 1.9 KB
/
YOLOKit.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
Pod::Spec.new do |s|
s.name = 'YOLOKit'
s.version = '11.1'
s.source = { :git => 'https://github.com/mxcl/YOLOKit.git', :tag => s.version }
s.requires_arc = true
s.summary = 'A delightful library for enumerating Foundation objects.'
s.homepage = 'https://github.com/mxcl/YOLOKit'
s.author = { 'Max Howell' => 'mxcl@me.com' }
s.license = { :type => 'Public Domain' }
s.subspec 'base' do |ss|
ss.source_files = 'YOLO.m', 'YOLO.h'
ss.preserve_paths = 'YOLO.ph'
end
%w{all any array chunk concat dict each extend find first flatMap flatten fmap get
groupBy has indexOf inject join last map max min none partition pick pluck
pmap pop push reduce reverse rotate sample select shift shuffle skip slice
snip sort split transpose uniq unshift upTo without
}.each do |subspec|
s.subspec(subspec) do |ss|
# adding this warning fails `pod spec lint`
# ss.compiler_flags = '-Wno-incomplete-implementation'
ss.dependency 'YOLOKit/base'
ss.source_files = "*+#{subspec}.m"
ss.xcconfig = { GCC_PREPROCESSOR_DEFINITIONS: "$(inherited) YOLO_#{subspec.upcase}=1" }
case subspec
when 'chunk', 'first', 'last', 'snip'
ss.dependency 'YOLOKit/slice'
when 'dict'
ss.dependency 'YOLOKit/transpose'
when 'fmap'
ss.dependency 'YOLOKit/map'
when 'join'
ss.dependency 'YOLOKit/pluck'
when 'reduce'
ss.dependency 'YOLOKit/last'
when 'rotate'
ss.dependency 'YOLOKit/concat'
ss.dependency 'YOLOKit/skip'
ss.dependency 'YOLOKit/snip'
when 'skip'
ss.dependency 'YOLOKit/last'
when 'sort'
ss.dependency 'YOLOKit/all'
ss.dependency 'YOLOKit/transpose'
when 'transpose'
ss.dependency 'YOLOKit/select'
ss.dependency 'YOLOKit/max'
ss.dependency 'YOLOKit/each'
end
end
end
end