Commit c3a1b4b2 authored by Thomas Guillem's avatar Thomas Guillem

build: add buildall.sh and buildcommon

parent bd5637fa
#!/bin/bash
SCRIPT=$(readlink -f "$0")
PROJECTPATH=$(dirname "$SCRIPT")
source ${PROJECTPATH}/buildcommon
${PROJECTPATH}/buildvlc.sh
checkfail "buildvlc.sh failed"
${PROJECTPATH}/buildemotion.sh
checkfail "buildemotion.sh failed"
echo -e "\e[1m\e[32mDone! You can now build the Tizen application.\e[0m"
#############
# DEFINES #
#############
GCCVER=4.8
GCCVERFULL=4.8.3
#############
# FUNCTIONS #
#############
checkfail()
{
if [ ! $? -eq 0 ];then
echo -e "\e[1m\e[31m$1\e[0m"
exit 1
fi
}
#############
# ARGUMENTS #
#############
RELEASE=0
while [ $# -gt 0 ]; do
case $1 in
help|--help)
echo "Use -a to set the ARCH"
echo "Use --release to build in release mode"
exit 1
;;
a|-a)
TIZEN_ABI=$2
shift
;;
release|--release)
RELEASE=1
;;
esac
shift
done
if [ -z "$TIZEN_SDK" ]; then
echo "Please set the TIZEN_SDK environment variable with its path."
exit 1
fi
if [ -z "$TIZEN_ABI" ]; then
echo "Please pass the TIZEN_ABI to the correct architecture, using
${SCRIPT} -a ARCH
ARM: armv7l
X86: x86_64"
exit 1
fi
source ${TIZEN_SDK}/sdk.version
mkdir -p ${PROJECTPATH}/lib
#!/bin/bash
#############
# DEFINES #
#############
GCCVER=4.8
GCCVERFULL=4.8.3
source ${TIZEN_SDK}/sdk.version
#############
# FUNCTIONS #
#############
checkfail()
{
if [ ! $? -eq 0 ];then
echo -e "\e[1m\e[31m$1\e[0m"
exit 1
fi
}
#############
# ARGUMENTS #
#############
SCRIPT=$(readlink -f "$0")
PROJECTPATH=$(dirname "$SCRIPT")
RELEASE=0
while [ $# -gt 0 ]; do
case $1 in
help|--help)
echo "Use -a to set the ARCH"
echo "Use --release to build in release mode"
exit 1
;;
a|-a)
TIZEN_ABI=$2
shift
;;
release|--release)
RELEASE=1
;;
esac
shift
done
if [ -z "$TIZEN_SDK" ]; then
echo "Please set the TIZEN_SDK environment variable with its path."
exit 1
fi
if [ -z "$TIZEN_ABI" ]; then
echo "Please pass the TIZEN_ABI to the correct architecture, using
${SCRIPT} -a ARCH
ARM: armv7l
X86: x86_64"
exit 1
fi
source ${PROJECTPATH}/buildcommon
#########################
# FETCH EMOTION SOURCES #
......
#!/bin/bash
#############
# DEFINES #
#############
VLC_TESTED_HASH=044730b
GCCVER=4.8
GCCVERFULL=4.8.3
source ${TIZEN_SDK}/sdk.version
#############
# FUNCTIONS #
#############
checkfail()
{
if [ ! $? -eq 0 ];then
echo -e "\e[1m\e[31m$1\e[0m"
exit 1
fi
}
#############
# ARGUMENTS #
#############
SCRIPT=$(readlink -f "$0")
PROJECTPATH=$(dirname "$SCRIPT")
RELEASE=0
while [ $# -gt 0 ]; do
case $1 in
help|--help)
echo "Use -a to set the ARCH"
echo "Use --release to build in release mode"
exit 1
;;
a|-a)
TIZEN_ABI=$2
shift
;;
release|--release)
RELEASE=1
;;
esac
shift
done
if [ -z "$TIZEN_SDK" ]; then
echo "Please set the TIZEN_SDK environment variable with its path."
exit 1
fi
if [ -z "$TIZEN_ABI" ]; then
echo "Please pass the TIZEN_ABI to the correct architecture, using
${SCRIPT} -a ARCH
ARM: armv7l
X86: x86_64"
exit 1
fi
source ${PROJECTPATH}/buildcommon
#####################
# FETCH VLC SOURCES #
......
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