forked from cnsuhao/SGPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile-clean.sh
35 lines (31 loc) · 1009 Bytes
/
compile-clean.sh
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
#!/bin/bash
do_clean_framework_SGPlatform () {
echo "clean SGPlatform..."
if [ -d ".git" ]; then
echo "remove SGPlatform from git submodule."
git submodule deinit --all
fi
if [ -d "Vendors/SGPlatform/SGPlatform.xcodeproj" ]; then
echo "remove SGPlatform files."
rm -rf Vendors/SGPlatform
fi
echo "clean SGPlatform done."
}
do_clean_lib_ffmpeg () {
echo "clean lib ffmpeg..."
if [ -d "SGPlayer/Classes/Core/SGFFPlayer/ffmpeg/lib-iOS" ]; then
echo "remove lib ffmpeg for iOS"
rm -rf SGPlayer/Classes/Core/SGFFPlayer/ffmpeg/lib-iOS
fi
if [ -d "SGPlayer/Classes/Core/SGFFPlayer/ffmpeg/lib-macOS" ]; then
echo "remove lib ffmpeg for macOS"
rm -rf SGPlayer/Classes/Core/SGFFPlayer/ffmpeg/lib-macOS
fi
if [ -d "SGPlayer/Classes/Core/SGFFPlayer/ffmpeg/lib-tvOS" ]; then
echo "remove lib ffmpeg for tvOS"
rm -rf SGPlayer/Classes/Core/SGFFPlayer/ffmpeg/lib-tvOS
fi
echo "clean lib ffmpeg done."
}
do_clean_framework_SGPlatform
do_clean_lib_ffmpeg