-
Notifications
You must be signed in to change notification settings - Fork 271
/
libksygpulive.podspec
114 lines (112 loc) · 4.43 KB
/
libksygpulive.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
Pod::Spec.new do |s|
s.name = 'libksygpulive'
s.version = '3.0.4'
s.license = {
:type => 'Proprietary',
:text => <<-LICENSE
Copyright 2015 kingsoft Ltd. All rights reserved.
LICENSE
}
s.homepage = 'http://v.ksyun.com/doc.html'
s.authors = { 'ksyun' => '[email protected]' }
s.summary = 'libksylive help you play and stream live video from ios mobile devices.'
s.description = <<-DESC
* KSYMediaPlayer lite/vod manages the playback of movie or live streaming
* libksygpulive lite/265 capture video, compress and publish stream to rtmp server
DESC
s.platform = :ios, '7.0'
s.ios.library = 'z', 'iconv', 'c++', 'bz2'
s.ios.frameworks = [ 'AVFoundation', 'VideoToolbox']
s.ios.deployment_target = '7.0'
s.source = {
:git => 'https://github.com/ksvc/KSYLive_iOS.git',
:tag => 'v'+s.version.to_s
}
s.requires_arc = true
s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-lObjC -all_load' }
# Exclude optional Search and Testing modules
s.default_subspec = 'libksygpulive'
# Internal dependency
subLibs = [ 'yuv','mediacodec',
'mediacore_dec_lite',
'mediacore_dec_vod',
'mediacore_enc_lite',
'mediacore_enc_265',
'mediacore_enc_base']
subLibs.each do |subName|
s.subspec subName do |sub|
sub.vendored_library = 'prebuilt/libs/libksy%s.a' % subName
end
end
s.subspec 'base' do |sub|
sub.source_files = 'prebuilt/include/KSYBase/*.h'
sub.vendored_library = 'prebuilt/libs/libksybase.a'
end
# lite version of KSYMediaPlayer (less decoders)
s.subspec 'KSYMediaPlayer' do |sub|
sub.source_files = 'prebuilt/include/KSYPlayer/*.h'
sub.vendored_library = 'prebuilt/libs/libksyplayer.a'
sub.dependency '%s/base' % s.name
sub.dependency '%s/mediacore_dec_lite' % s.name
end
# vod version of KSYMediaPlayer (more decoders)
s.subspec 'KSYMediaPlayer_vod' do |sub|
sub.source_files = 'prebuilt/include/KSYPlayer/*.h'
sub.vendored_library = 'prebuilt/libs/libksyplayer.a'
sub.dependency '%s/base' % s.name
sub.dependency '%s/mediacore_dec_vod' % s.name
end
s.subspec 'streamerbase' do |sub|
sub.source_files = ['prebuilt/include/KSYStreamerBase/*.h']
sub.vendored_library = ['prebuilt/libs/libksystreamerbase.a'];
sub.dependency '%s/base' % s.name
sub.dependency '%s/yuv' % s.name
sub.dependency '%s/mediacodec' % s.name
sub.dependency '%s/mediacore_enc_base' % s.name
sub.dependency '%s/mediacore_enc_lite' % s.name
end
s.subspec 'libksygpulive' do |sub|
sub.source_files = ['prebuilt/include/*.h',
'prebuilt/include/**/*.h',
'source/*.{h,m}']
sub.vendored_library = ['prebuilt/libs/libksyplayer.a',
'prebuilt/libs/libksystreamerengine.a',
'prebuilt/libs/libksygpufilter.a'];
sub.dependency 'GPUImage'
sub.dependency '%s/streamerbase' % s.name
end
s.subspec 'libksygpulive_noKit' do |sub|
sub.source_files = ['prebuilt/include/*.h',
'prebuilt/include/**/*.h']
sub.vendored_library = ['prebuilt/libs/libksyplayer.a',
'prebuilt/libs/libksystreamerengine.a',
'prebuilt/libs/libksygpufilter.a'];
sub.dependency 'GPUImage'
sub.dependency '%s/streamerbase' % s.name
end
s.subspec 'streamerbase_265' do |sub|
sub.source_files = ['prebuilt/include/KSYStreamerBase/*.h']
sub.vendored_library = ['prebuilt/libs/libksystreamerbase.a'];
sub.dependency '%s/base' % s.name
sub.dependency '%s/yuv' % s.name
sub.dependency '%s/mediacodec' % s.name
sub.dependency '%s/mediacore_enc_base' % s.name
sub.dependency '%s/mediacore_enc_265' % s.name
end
s.subspec 'libksygpulive_265' do |sub|
sub.source_files = ['prebuilt/include/*.h',
'prebuilt/include/**/*.h',
'source/*.{h,m}']
sub.vendored_library = ['prebuilt/libs/libksyplayer.a',
'prebuilt/libs/libksystreamerengine.a',
'prebuilt/libs/libksygpufilter.a'];
sub.dependency 'GPUImage'
sub.dependency '%s/streamerbase_265' % s.name
end
s.subspec 'KSYGPUResource' do |sub|
sub.resource = 'resource/KSYGPUResource.bundle'
end
s.subspec 'KSYGPUResourceFull' do |sub|
sub.resource = 'resource/KSYGPUResourceFull.bundle'
end
end