Commit febb63be authored by Felix Paul Kühne's avatar Felix Paul Kühne

compilation script: add option to compile the unstable VLCKit

Note that is an advanced option and should not be used unless you know what you are doing
parent 33890198
......@@ -11,6 +11,7 @@ VERBOSE=no
CONFIGURATION="Release"
NONETWORK=no
SKIPLIBVLCCOMPILATION=no
UNSTABLEVLCKIT=no
TESTEDVLCKITHASH=766c3b7fa
TESTEDMEDIALIBRARYKITHASH=225ab43aa
......@@ -19,7 +20,7 @@ TESTEDQUINCYKITHASH=f1d93b96b
usage()
{
cat << EOF
usage: $0 [-s] [-v] [-k sdk]
usage: $0 [-s] [-v] [-k sdk] [-d] [-n] [-l] [-u]
OPTIONS
-k Specify which sdk to use (see 'xcodebuild -showsdks', current: ${SDK})
......@@ -28,6 +29,7 @@ OPTIONS
-d Enable Debug
-n Skip script steps requiring network interaction
-l Skip libvlc compilation
-u Compile unstable version of MobileVLCKit
EOF
}
......@@ -69,7 +71,7 @@ buildxcodeproj()
IPHONEOS_DEPLOYMENT_TARGET=${SDK_MIN} > ${out}
}
while getopts "hvsdnlk:" OPTION
while getopts "hvsdnluk:" OPTION
do
case $OPTION in
h)
......@@ -93,6 +95,9 @@ do
k)
SDK=$OPTARG
;;
u)
UNSTABLEVLCKIT=yes
;;
?)
usage
exit 1
......@@ -138,6 +143,7 @@ git pull --rebase
git reset --hard ${TESTEDMEDIALIBRARYKITHASH}
cd ..
fi
if [ "$UNSTABLEVLCKIT" = "no" ]; then
if ! [ -e VLCKit ]; then
git clone git://git.videolan.org/vlc-bindings/VLCKit.git
cd VLCKit
......@@ -150,6 +156,13 @@ git pull --rebase
git reset --hard ${TESTEDVLCKITHASH}
cd ..
fi
else
if ! [ -e VLCKit ]; then
git clone git://git.videolan.org/vlc-bindings/VLCKit.git
else
git pull --rebase
fi
fi
if ! [ -e OBSlider ]; then
git clone git://github.com/ole/OBSlider.git
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment