Commit 11d735b2 authored by Oleg Korshul's avatar Oleg Korshul

dos2unix part1

parent cca1c9fb
#!/bin/bash
export PATH=`pwd`/depot_tools:"$PATH"
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
os=$(uname -s)
platform=""
case "$os" in
Linux*) platform="linux" ;;
Darwin*) platform="mac" ;;
*) exit ;;
esac
architecture=$(uname -m)
arch=""
case "$architecture" in
x86_64*) arch="_64" ;;
*) arch="_32" ;;
esac
if [[ -d "$SCRIPTPATH/$platform$arch" ]]
then
echo
else
mkdir "$SCRIPTPATH/$platform$arch"
fi
cd "$SCRIPTPATH/v8"
if [[ "$platform" == *"linux"* ]]
then
CFLAGS="-fPIC" CXXFLAGS="-fPIC" make native
cp "./out/native/obj.target/tools/gyp/libv8_base.a" "./$platform$arch/"
cp "./out/native/obj.target/tools/gyp/libv8_libbase.a" "./$platform$arch/"
cp "./out/native/obj.target/tools/gyp/libv8_libplatform.a" "./$platform$arch/"
cp "./out/native/obj.target/tools/gyp/libv8_nosnapshot.a" "./$platform$arch/"
cp "./out/native/obj.target/tools/gyp/libv8_external_snapshot.a" "./$platform$arch/"
cp "./out/native/obj.target/third_party/icu/libicui18n.a" "./$platform$arch/"
cp "./out/native/obj.target/third_party/icu/libicuuc.a" "./$platform$arch/"
cp "./out/native/obj.target/third_party/icu/libicudata.a" "./$platform$arch/"
cp "./third_party/icu/linux/icudtl_dat.S" "./$platform$arch/"
fi
if [[ "$platform" == *"mac"* ]]
then
CFLAGS="-fPIC" CXXFLAGS="-fPIC -stdlib=libc++" LDFLAGS="-stdlib=libc++" make native
cp "./out/native/libv8_base.a" "./$platform$arch/"
cp "./out/native/libv8_libbase.a" "./$platform$arch/"
cp "./out/native/libv8_libplatform.a" "./$platform$arch/"
cp "./out/native/libv8_nosnapshot.a" "./$platform$arch/"
cp "./out/native/libv8_external_snapshot.a" "./$platform$arch/"
cp "./out/native/libicui18n.a" "./$platform$arch/"
cp "./out/native/libicuuc.a" "./$platform$arch/"
cp "./out/native/libicudata.a" "./$platform$arch/"
cp "./third_party/icu/mac/icudtl_dat.S" "./$platform$arch/"
fi
#!/bin/bash
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:"$PATH"
gclient
fetch v8
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