Remove unused files

This commit is contained in:
Oleg Korshul
2020-03-18 09:55:30 +03:00
parent bb022c49bd
commit a7c868d3d1
22 changed files with 0 additions and 819 deletions

View File

@ -1,33 +0,0 @@
SET SCRIPTPATH=%~dp0
CD /D %~dp0
SET PATH=%SCRIPTPATH%depot_tools;%PATH%
SET DEPOT_TOOLS_WIN_TOOLCHAIN=0
SET GYP_MSVS_VERSION=2015
call powershell -File .\fix-static_crt.ps1
cd v8
call gn gen out.gn/win_64/release --args="is_debug=false target_cpu=\"x64\" v8_target_cpu=\"x64\" v8_static_library=true is_component_build=false v8_use_snapshot=false is_clang=false"
call ninja -C out.gn/win_64/release || goto :error
call gn gen out.gn/win_64/debug --args="is_debug=true target_cpu=\"x64\" v8_target_cpu=\"x64\" v8_static_library=true is_component_build=false v8_use_snapshot=false is_clang=false"
call ninja -C out.gn/win_64/debug || goto :error
call gn gen out.gn/win_32/release --args="is_debug=false target_cpu=\"x86\" v8_target_cpu=\"x86\" v8_static_library=true is_component_build=false v8_use_snapshot=false is_clang=false"
call ninja -C out.gn/win_32/release || goto :error
call gn gen out.gn/win_32/debug --args="is_debug=true target_cpu=\"x86\" v8_target_cpu=\"x86\" v8_static_library=true is_component_build=false v8_use_snapshot=false is_clang=false"
call ninja -C out.gn/win_32/debug || goto :error
rem v8_use_snapshot=true v8_use_external_startup_data=true
if not "%BUILD_PLATFORM%"=="%BUILD_PLATFORM:xp=%" (
call %~dp0v8_xp\build.bat || goto :error
cd %~dp0
)
exit /b 0
:error
echo "Failed with error #%errorlevel%."
exit /b %errorlevel%

View File

@ -1,45 +0,0 @@
#!/bin/bash
export PATH=`pwd`/depot_tools:"$PATH"
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
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
cd "$SCRIPTPATH/v8"
if [[ "$platform$arch" == "linux_64" ]]
then
gn gen out.gn/linux_64 --args='is_debug=false target_cpu="x64" v8_target_cpu="x64" v8_static_library=true is_component_build=false v8_use_snapshot=false is_clang=false use_sysroot=false'
ninja -C out.gn/linux_64
fi
if [[ "$platform$arch" == "linux_32" ]]
then
gn gen out.gn/linux_32 --args='is_debug=false target_cpu="x86" v8_target_cpu="x86" v8_static_library=true is_component_build=false v8_use_snapshot=false is_clang=false use_sysroot=false'
ninja -C out.gn/linux_32
fi
if [[ "$platform" == "mac" ]]
then
sed -i -e "s/if (mac_sdk_version != mac_sdk_min_build_override/if (false \&\& mac_sdk_version != mac_sdk_min_build_override/g" build/config/mac/mac_sdk.gni
# for new macOS!!!
#sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
gn gen out.gn/mac_64 --args='is_debug=false target_cpu="x64" v8_static_library=true is_component_build=false v8_use_snapshot=false'
ninja -C out.gn/mac_64
fi

View File

@ -1,28 +0,0 @@
SET SCRIPTPATH=%~dp0
CD /D %~dp0
SET DEPOT_TOOLS_WIN_TOOLCHAIN=0
SET GYP_MSVS_VERSION=2015
if exist "depot_tools" (
echo "depot_tools already fetched"
) else (
call git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
call powershell -File .\fix-depot_tools.ps1
)
SET PATH=%SCRIPTPATH%depot_tools;%PATH%
call gclient
call ./depot_tools/fetch v8
cd v8
call git checkout -b 6.0 -t branch-heads/6.0
cd ../
call gclient sync --no-history
if not "%BUILD_PLATFORM%"=="%BUILD_PLATFORM:xp=%" (
call v8_xp\fetch.bat
cd %~dp0
)

View File

@ -1,49 +0,0 @@
#!/bin/bash
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$SCRIPTPATH"
if [ ! -d "depot_tools" ]
then
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
fi
export PATH=`pwd`/depot_tools:"$PATH"
gclient
#detect gcc version
currentver="$(gcc -dumpversion)"
requiredver="6.0.0"
v8_version="6.0"
if [ "$(printf '%s\n' "$requiredver" "$currentver" | sort -V | head -n1)" = "$requiredver" ]
then
v8_version="7.0"
fi
echo "v8 version: $v8_version"
if [ ! -d "./v8" ]
then
fetch v8
cd v8
git checkout -b $v8_version -t branch-heads/$v8_version
else
cd v8
fi
gclient sync --no-history
os=$(uname -s)
platform=""
case "$os" in
Linux*) platform="linux" ;;
*) exit ;;
esac
cd "$SCRIPTPATH"
if [[ "$platform" == "linux" ]]
then
./fetch_linux_correct.sh
fi

View File

@ -1,40 +0,0 @@
#!/bin/bash
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
export PATH=`pwd`/depot_tools:"$PATH"
if [ -d "$SCRIPTPATH/v8/third_party/binutils/Linux_x64/Release" ]; then
rm -rf "$SCRIPTPATH/v8/third_party/binutils/Linux_x64/Release"
fi
if [ -d "$SCRIPTPATH/v8/third_party/binutils/Linux_ia32/Release" ]; then
rm -rf "$SCRIPTPATH/v8/third_party/binutils/Linux_ia32/Release"
fi
cd "$SCRIPTPATH/v8"
gclient sync --no-history
if [ -d "$SCRIPTPATH/v8/third_party/binutils/Linux_x64/Release/bin" ]; then
cd "$SCRIPTPATH/v8/third_party/binutils/Linux_x64/Release/bin"
for file in *
do
echo $file
if [ $file != "ld.gold" ]
then
mv "$file" "old_${file}"
ln -s /usr/bin/"$file" ./"$file"
fi
done
fi
if [ -d "$SCRIPTPATH/v8/third_party/binutils/Linux_ia32/Release/bin" ]; then
cd "$SCRIPTPATH/v8/third_party/binutils/Linux_ia32/Release/bin"
for file in *
do
echo $file
if [ $file != "ld.gold" ]
then
mv "$file" "old_${file}"
ln -s /usr/bin/"$file" ./"$file"
fi
done
fi

View File

@ -1,4 +0,0 @@
$gclient_path = "depot_tools\gclient.bat"
$fetch_path = "depot_tools\fetch.bat"
(Get-Content $gclient_path) | ForEach-Object { $_ -replace "^(`"%~dp0python`")", "call $&" } | Set-Content $gclient_path
(Get-Content $fetch_path) | ForEach-Object { $_ -replace "^(%~dp0python)", "call $&" } | Set-Content $fetch_path

View File

@ -1,2 +0,0 @@
$gn_path = "v8\build\config\win\BUILD.gn"
(Get-Content $gn_path) | ForEach-Object { $_ -replace ":static_crt", ":dynamic_crt" } | Set-Content $gn_path