export TOPDIR=$(readlink -f "${SCRIPTDIR}/../..")
export CHROME_SRC="${TOPDIR}"
-function applyPatch {
- directory=$1
- shift
- patchfile=$1
- shift
- echo Applying $patchfile in $directory
- pushd "$directory" > /dev/null
- patch -p1 $@ < "$patchfile"
- popd > /dev/null
-}
-
function getHostOs() {
echo $(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')
}
function preBuild() {
adaptGbsSysrootToCrossCompilation $1
- ${SCRIPTDIR}/apply_patches.sh ${SCRIPTDIR}/patches
+ ${SCRIPTDIR}/apply_patches.sh
}
function postBuild() {
rollbackGbsSysrootChanges $1
- ${SCRIPTDIR}/apply_patches.sh -r ${SCRIPTDIR}/patches
+ ${SCRIPTDIR}/apply_patches.sh -r
}
if [ -z "$GYP_GENERATOR_OUTPUT" ]; then
function preBuild() {
adaptGbsSysrootToCrossCompilation $1
- ${SCRIPTDIR}/apply_patches.sh ${SCRIPTDIR}/patches
+ ${SCRIPTDIR}/apply_patches.sh
}
function postBuild() {
rollbackGbsSysrootChanges $1
- ${SCRIPTDIR}/apply_patches.sh -r ${SCRIPTDIR}/patches
+ ${SCRIPTDIR}/apply_patches.sh -r
}
if [ -z "$GYP_GENERATOR_OUTPUT" ]; then
# TODO : This execution will be removed by multimedia team
# Bug : http://107.108.218.239/bugzilla/show_bug.cgi?id=10516
-trap 'tizen_src/build/apply_patches.sh -r tizen_src/build/patches;\
+trap 'tizen_src/build/apply_patches.sh -r;\
error_report $0 $LINENO' ERR SIGINT SIGTERM SIGQUIT
-tizen_src/build/apply_patches.sh tizen_src/build/patches
+tizen_src/build/apply_patches.sh
# workaround for new nss library : search it in /usr/lib first, rather than /lib (system nss)
export LD_RUN_PATH=%{_libdir}
# TODO : This execution will be removed by multimedia team
# Bug : http://107.108.218.239/bugzilla/show_bug.cgi?id=10516
-tizen_src/build/apply_patches.sh -r tizen_src/build/patches
+tizen_src/build/apply_patches.sh -r
# XXX Workaround for using rpmlint with emulator build on Tizen_TV 3.0
#