-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBaiduBCEPlayerLSS.podspec
46 lines (39 loc) · 1.57 KB
/
BaiduBCEPlayerLSS.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
Pod::Spec.new do |s|
s.name = 'BaiduBCEPlayerLSS'
s.version = '1.6.5'
s.summary = 'Baidu BCE iOS Player SDK'
s.homepage = 'https://bce.baidu.com/doc/MCT/iOS-Player-SDK.html'
s.license = {
:type => 'Proprietary',
:text => <<-LICENSE
Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved.
LICENSE
}
s.description = <<-DESC
Baidu BCE iOS Player SDK supoort iOS 7.0 and later,
DESC
s.author = { 'Baidu Cloud Multimedia Team' => '[email protected]' }
s.source = { :http => 'http://sdk.bce.baidu.com/media-sdk/Baidu-T5Player-SDK-iOS-LSS-1.6.5.zip?responseContentDisposition=attachment',:sha1 => "7cf68c719bcf76c2940eea34825fb2564eef9303"}
s.ios.deployment_target = '7.0'
s.requires_arc = true
s.source_files = 'include/*.h'
s.prepare_command = <<-CMD
VERSION="1.6.5"
BASEPATH="${PWD}"
SDKPATH="Baidu-T5Player-SDK-iOS-${VERSION}"
rm -rf "${BASEPATH}/include"
rm -rf "${BASEPATH}/lib"
mkdir -p "${BASEPATH}/include"
mkdir -p "${BASEPATH}/lib"
# copy headers
cp ${SDKPATH}/include/CyberDownloader/*.h "${BASEPATH}/include/"
cp ${SDKPATH}/include/CyberPlayer/*.h "${BASEPATH}/include/"
# copy libs
cp "${SDKPATH}/lib/libCyberDownloader.a" "${BASEPATH}/lib/"
cp "${SDKPATH}/lib/libCyberPlayerController.a" "${BASEPATH}/lib/"
CMD
s.vendored_libraries = 'lib/libCyberPlayerController.a', 'lib/libCyberDownloader.a'
s.frameworks = 'Foundation', 'UIKit', 'AudioToolbox', 'MobileCoreServices'
s.dependency 'OpenSSL', '~> 1.0'
s.libraries = 'bz2', 'z'
end