diff --git a/Common/3dParty/boost/build.bat b/Common/3dParty/boost/build.bat deleted file mode 100644 index fd26082fa3..0000000000 --- a/Common/3dParty/boost/build.bat +++ /dev/null @@ -1,73 +0,0 @@ -SET SCRIPTPATH=%~dp0 -CD /D %~dp0 - -SET outputdir=%SCRIPTPATH%boost_1_58_0\build\%platform% -echo "%outputdir%" - -SET TOOLSET=msvc-14.0 - -CD "%SCRIPTPATH%\boost_1_58_0" -call .\bootstrap.bat - -if exist "stage" ( - RMDIR "stage" /S /Q -) - -md build - -SET folder=build/win_32 - -if not exist "%folder%" ( - echo "x86..." - - md %folder% - md %folder%\static - md %folder%\static_fpic - md %folder%\shared - - .\b2.exe --clean - .\bjam.exe link=static --with-filesystem --with-system --with-date_time --with-regex --toolset=%TOOLSET% || goto :error - XCOPY /Y stage\lib\* "%folder%\static\" - - .\b2.exe --clean - .\bjam.exe link=static cxxflags=-fPIC --with-filesystem --with-system --with-date_time --with-regex --toolset=%TOOLSET% || goto :error - XCOPY /Y stage\lib\* "%folder%\static_fpic\" - - .\b2.exe --clean - .\bjam.exe link=shared --with-filesystem --with-system --with-date_time --with-regex --toolset=%TOOLSET% || goto :error - XCOPY /Y stage\lib\* "%folder%\shared\" -) - -SET folder=build/win_64 - - -if not exist "%folder%" ( - echo "x64..." - - if exist "stage" ( - RMDIR "stage" /S /Q - ) - - md %folder% - md %folder%\static - md %folder%\static_fpic - md %folder%\shared - - .\b2.exe --clean - .\bjam.exe link=static --with-filesystem --with-system --with-date_time --with-regex address-model=64 --toolset=%TOOLSET% || goto :error - XCOPY /Y stage\lib\* "%folder%\static\" - - .\b2.exe --clean - .\bjam.exe link=static cxxflags=-fPIC --with-filesystem --with-system --with-date_time --with-regex address-model=64 --toolset=%TOOLSET% || goto :error - XCOPY /Y stage\lib\* "%folder%\static_fpic\" - - .\b2.exe --clean - .\bjam.exe link=shared --with-filesystem --with-system --with-date_time --with-regex address-model=64 --toolset=%TOOLSET% || goto :error - XCOPY /Y stage\lib\* "%folder%\shared\" -) - -exit /b 0 - -:error -echo "Failed with error #%errorlevel%." -exit /b %errorlevel% diff --git a/Common/3dParty/boost/build.sh b/Common/3dParty/boost/build.sh deleted file mode 100755 index 25de0a0623..0000000000 --- a/Common/3dParty/boost/build.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -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 - -outputdir="$SCRIPTPATH/boost_1_58_0/build/$platform$arch" -echo $outputdir - -cd "$SCRIPTPATH/boost_1_58_0" - -folder="build/$platform$arch" -if [ ! -d $folder ]; then - ./bootstrap.sh --with-libraries=filesystem,system,date_time,regex - - stage="stage" - if [ -d $stage ]; then - rm -R $stage - fi - - mkdir -p "$folder" - mkdir -p "$folder/static" - mkdir -p "$folder/static_fpic" - mkdir -p "$folder/shared" - - ./b2 --clean - ./bjam link=static - cp stage/lib/* "$folder/static/" - - ./b2 --clean - ./bjam link=static cxxflags=-fPIC - cp stage/lib/* "$folder/static_fpic/" - - ./b2 --clean - ./bjam link=shared - cp stage/lib/* "$folder/shared/" -fi - -if [[ "$OO_PLATFORM" == *"ios"* ]] -then - if [ ! -d "$SCRIPTPATH/boost_1_58_0/build/ios" ]; then - cd "$SCRIPTPATH" - ./boost_ios.sh - fi -fi - - diff --git a/Common/3dParty/boost/fetch.bat b/Common/3dParty/boost/fetch.bat deleted file mode 100644 index d21fea2f69..0000000000 --- a/Common/3dParty/boost/fetch.bat +++ /dev/null @@ -1,20 +0,0 @@ -SET SCRIPTPATH=%~dp0 -CD /D %~dp0 - -if exist "%SCRIPTPATH%boost_1_58_0.7z" ( - echo "boost already downloaded" -) else ( - Powershell.exe Invoke-WebRequest -OutFile boost_1_58_0.7z https://downloads.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.7z -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox -) - -SET UNSIP_PROGRAMM="C:\Program Files\7-Zip\7z.exe" -SET UNSIP_PROGRAMM2="C:\Program Files (x86)\7-Zip\7z.exe" -if exist %UNSIP_PROGRAMM2% ( - SET UNSIP_PROGRAMM=%UNSIP_PROGRAMM2% -) - -if exist "%SCRIPTPATH%boost_1_58_0/" ( - echo "boost already extracted" -) else ( - call %UNSIP_PROGRAMM% x "%SCRIPTPATH%/boost_1_58_0.7z" -o"%SCRIPTPATH%/" -) diff --git a/Common/3dParty/boost/fetch.sh b/Common/3dParty/boost/fetch.sh deleted file mode 100755 index 3e700761b5..0000000000 --- a/Common/3dParty/boost/fetch.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -BOOST_URL=https://downloads.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.7z - -os=$(uname -s) -platform="" - -case "$os" in - Linux*) platform="linux" ;; - Darwin*) platform="mac" ;; - *) exit ;; -esac - -if [[ -f "$SCRIPTPATH/boost_1_58_0.7z" ]] -then -echo "boost already downloaded" -else -wget $BOOST_URL || curl -O -L $BOOST_URL -fi - -if [ -d "$SCRIPTPATH/boost_1_58_0" ]; then -echo "boost already extracted" -else -if [[ "$platform" == *"linux"* ]] -then -7z x -y "$SCRIPTPATH/boost_1_58_0.7z" -o"$SCRIPTPATH/" -else -7za x "$SCRIPTPATH/boost_1_58_0.7z" -o"$SCRIPTPATH/" -fi -fi diff --git a/Common/3dParty/cef/build.bat b/Common/3dParty/cef/build.bat deleted file mode 100644 index cf31d17f62..0000000000 --- a/Common/3dParty/cef/build.bat +++ /dev/null @@ -1 +0,0 @@ -echo "build: OK!" \ No newline at end of file diff --git a/Common/3dParty/cef/build.sh b/Common/3dParty/cef/build.sh deleted file mode 100755 index faf05d49f7..0000000000 --- a/Common/3dParty/cef/build.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -echo "build: OK!" diff --git a/Common/3dParty/cef/download.ps1 b/Common/3dParty/cef/download.ps1 deleted file mode 100644 index 92ccbb903d..0000000000 --- a/Common/3dParty/cef/download.ps1 +++ /dev/null @@ -1,62 +0,0 @@ -Add-Type -AssemblyName System.IO.Compression.FileSystem - -# ---------------------------------------------------------------------------------------------- -# download a file -# ---------------------------------------------------------------------------------------------- -function Download-File -{ - param ([string]$url,[string]$file) - - $downloadRequired = $true - if (Test-Path $file) - { - $localModified = (Get-Item $file).CreationTime - $webRequest = [System.Net.HttpWebRequest]::Create($url) - $webRequest.Method = "HEAD" - $webResponse = $webRequest.GetResponse() - $remoteLastModified = ($webResponse.LastModified) -as [DateTime] - $webResponse.Close() - - if ($remoteLastModified -gt $localModified) - { - Write-Host "$file is out of date" - } - else - { - $downloadRequired = $false - } - } - - if ($downloadRequired) - { - $clnt = new-object System.Net.WebClient - Write-Host "Downloading from $url to $file" - $clnt.DownloadFile($url, $file) - } - else - { - Write-Host "$file is up to date." - } - - return $downloadRequired -} - -# ---------------------------------------------------------------------------------------------- -# unzip a file -# ---------------------------------------------------------------------------------------------- -function RemoveCef -{ - param([string]$outpath) - - if (Test-Path $outpath) - { - Write-Host "Remove folder $outpath" - Remove-Item $outpath -Force -Recurse - } -} - -$output = Download-File -url $args[0] -file $args[1] -if ($output) - { - RemoveCef -outpath $args[2] - } \ No newline at end of file diff --git a/Common/3dParty/cef/fetch.bat b/Common/3dParty/cef/fetch.bat deleted file mode 100644 index df158b2818..0000000000 --- a/Common/3dParty/cef/fetch.bat +++ /dev/null @@ -1,58 +0,0 @@ -@echo off - -SET SCRIPTPATH=%~dp0 -CD /D %~dp0 - -setlocal - -SET UNSIP_PROGRAMM="%ProgramFiles%\7-Zip\7z.exe" -SET UNSIP_PROGRAMM2="%ProgramFiles(x86)%\7-Zip\7z.exe" -if exist %UNSIP_PROGRAMM2% ( - SET UNSIP_PROGRAMM=%UNSIP_PROGRAMM2% -) - -if defined BUILD_PLATFORM ( - if not "%BUILD_PLATFORM%"=="%BUILD_PLATFORM:xp=%" ( - SET "BUILD_PLATFORMS=win_64 win_32 winxp_64 winxp_32" - GOTO :found - ) - if not "%BUILD_PLATFORM%"=="%BUILD_PLATFORM:all=%" ( - SET "BUILD_PLATFORMS=win_64 win_32" - GOTO :found - ) -) - -SET "BUILD_PLATFORMS=win_32" -if defined ProgramFiles(x86) ( - SET "BUILD_PLATFORMS=win_64" - GOTO :found -) -if defined TARGET ( - SET "BUILD_PLATFORMS=%TARGET%" - GOTO :found -) - -echo "error" -GOTO :end - -:found -for %%a in (%BUILD_PLATFORMS%) do ( - echo "platform: %%a" - mkdir "%SCRIPTPATH%%%a" - cd "%SCRIPTPATH%%%a" - Powershell.exe -executionpolicy remotesigned -file %SCRIPTPATH%download.ps1 http://d2ettrnqo7v976.cloudfront.net/cef/3163/%%a/cef_binary.7z cef_binary.7z cef_binary - - if exist "cef_binary" ( - echo "cef_binary.7z already extracted" - ) else ( - call %UNSIP_PROGRAMM% x "cef_binary.7z" - mkdir build - xcopy /Y /S cef_binary\Release\* build\ - xcopy /Y /S cef_binary\Resources\* build\ - ) -) - -:end -endlocal - -@echo on \ No newline at end of file diff --git a/Common/3dParty/cef/fetch.sh b/Common/3dParty/cef/fetch.sh deleted file mode 100755 index aa9f31b21b..0000000000 --- a/Common/3dParty/cef/fetch.sh +++ /dev/null @@ -1,88 +0,0 @@ -#!/bin/bash -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 - -if [[ -d "$SCRIPTPATH/$platform$arch" ]] -then -echo -else -mkdir "$SCRIPTPATH/$platform$arch" -fi - -cd "$SCRIPTPATH/$platform$arch" - -if [ -d "build" ] -then -echo "" -else -mkdir "build" -fi -cef_binary=cef_binary -cef_arch=$cef_binary.7z -cef_version="3163" - -if [[ "$platform" == *"linux"* ]] -then -cef_version="3202" -cef_url=http://d2ettrnqo7v976.cloudfront.net/cef/$cef_version/$platform$arch/$cef_arch -else -cef_url=http://d2ettrnqo7v976.cloudfront.net/cef/$cef_version/$platform/$cef_arch -fi - -if [[ "$platform" == *"linux"* ]] -then - - if [[ -f $cef_arch ]] - then - cef_mod_time=$(date -d"$(curl -sI $cef_url | awk '/Last-Modified/ {print ($3, $4, $5, $6, $7, $8)}')" +"%s") - local_mod_time=$(stat -c %Y $cef_arch) - if [[ $cef_mod_time -eq $local_mod_time ]] - then - echo "cef_binary already downloaded" - else - wget $cef_url -O $cef_arch - rm -fr $cef_binary/ - fi - else - wget $cef_url - rm -fr $cef_binary/ - fi - - if [ -d $cef_binary ] - then - echo "cef_binary already extracted" - else - 7z x -y $cef_arch - fi - - cp -r -t build/ ./$cef_binary/Release/* ./$cef_binary/Resources/* - chmod a+xr build/locales -fi - -if [[ "$platform" == *"mac"* ]] -then - if [ -d "build/Chromium Embedded Framework.framework" ] - then - echo "cef_binary already extracted" - else - wget $cef_url || curl -O $cef_url - 7za x $cef_arch - mv "$cef_binary" "build/Chromium Embedded Framework.framework" - fi -fi diff --git a/Common/3dParty/icu/build.bat b/Common/3dParty/icu/build.bat deleted file mode 100644 index cf31d17f62..0000000000 --- a/Common/3dParty/icu/build.bat +++ /dev/null @@ -1 +0,0 @@ -echo "build: OK!" \ No newline at end of file diff --git a/Common/3dParty/icu/build.sh b/Common/3dParty/icu/build.sh deleted file mode 100755 index faf05d49f7..0000000000 --- a/Common/3dParty/icu/build.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -echo "build: OK!" diff --git a/Common/3dParty/icu/fetch.bat b/Common/3dParty/icu/fetch.bat deleted file mode 100644 index 5237b2d69f..0000000000 --- a/Common/3dParty/icu/fetch.bat +++ /dev/null @@ -1,84 +0,0 @@ -@echo off - -SET SCRIPTPATH=%~dp0 -CD /D %~dp0 - -setlocal - -SET ICU_MAJOR_VER=58 -SET ICU_MINOR_VER=2 - -SET VC=%ProgramFiles%\Microsoft Visual Studio 14.0\VC -SET VC64=%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC -if exist %VC64% ( - SET VC=%VC64% -) - -SET UNSIP_PROGRAMM="%ProgramFiles%\7-Zip\7z.exe" -SET UNSIP_PROGRAMM2="%ProgramFiles(x86)%\7-Zip\7z.exe" -if exist %UNSIP_PROGRAMM2% ( - SET UNSIP_PROGRAMM=%UNSIP_PROGRAMM2% -) - -if defined BUILD_PLATFORM ( - if not "%BUILD_PLATFORM%"=="%BUILD_PLATFORM:all=%" ( - SET "BUILD_PLATFORMS=win_64 win_32" - GOTO :found - ) - if not "%BUILD_PLATFORM%"=="%BUILD_PLATFORM:xp=%" ( - SET "BUILD_PLATFORMS=win_64 win_32" - GOTO :found - ) -) - -SET "BUILD_PLATFORMS=win_32" -if defined ProgramFiles(x86) ( - SET "BUILD_PLATFORMS=win_64" - GOTO :found -) -if defined TARGET ( - SET "BUILD_PLATFORMS=%TARGET%" - GOTO :found -) - -echo "error" -GOTO :end - -:found -for %%a in (%BUILD_PLATFORMS%) do ( - cd "%SCRIPTPATH%" - if not exist "%%a" ( - md "%%a" - ) - if not exist "%%a\build" ( - md "%%a\build" - ) - cd "%SCRIPTPATH%%%a" - if exist "icu" ( - echo "icu already exported" - ) else ( - svn export https://github.com/unicode-org/icu/tags/release-%ICU_MAJOR_VER%-%ICU_MINOR_VER%/icu4c ./icu - ) - - if "%%a" == "win_64" ( - call "%VC%\vcvarsall.bat" x64 - MSBuild.exe icu\source\allinone\allinone.sln /p:Configuration=Release /p:PlatformToolset=v140 /p:Platform="X64" - XCOPY /Y "icu\bin64\icudt%ICU_MAJOR_VER%.dll" "build\" - XCOPY /Y "icu\bin64\icuuc%ICU_MAJOR_VER%.dll" "build\" - XCOPY /Y "icu\lib64\icudt.lib" "build\" - XCOPY /Y "icu\lib64\icuuc.lib" "build\" - ) else ( - call "%VC%\vcvarsall.bat" x86 - MSBuild.exe icu\source\allinone\allinone.sln /p:Configuration=Release /p:PlatformToolset=v140 /p:Platform="Win32" - XCOPY /Y "icu\bin\icudt%ICU_MAJOR_VER%.dll" "build\" - XCOPY /Y "icu\bin\icuuc%ICU_MAJOR_VER%.dll" "build\" - XCOPY /Y "icu\lib\icudt.lib" "build\" - XCOPY /Y "icu\lib\icuuc.lib" "build\" - ) -) -cd "%SCRIPTPATH%" - -:end -endlocal - -@echo on \ No newline at end of file diff --git a/Common/3dParty/icu/fetch.sh b/Common/3dParty/icu/fetch.sh deleted file mode 100755 index c574a7e815..0000000000 --- a/Common/3dParty/icu/fetch.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/bin/bash -SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" - -ICU_MAJOR_VER=58 -ICU_MINOR_VER=2 - -SHARED_LIB_VER=$ICU_MAJOR_VER.$ICU_MINOR_VER - -os=$(uname -s) -platform="" - -case "$os" in - Linux*) - platform="linux" - BUILD_PLATFORM=Linux - SHARED_LIB_EXT=.so.$SHARED_LIB_VER - SHARED_LIB_SHORT_EXT=.so.$ICU_MAJOR_VER - ;; - Darwin*) - platform="mac" - BUILD_PLATFORM=MacOSX - SHARED_LIB_EXT=.$SHARED_LIB_VER.dylib - SHARED_LIB_SHORT_EXT=.$ICU_MAJOR_VER.dylib - ;; - *) 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/$platform$arch" - -if [ -d "build" ] -then - echo "" -else - mkdir "build" -fi - -if [ -d "./icu" ] -then - echo "icu already exported" -else - svn export https://github.com/unicode-org/icu/tags/release-$ICU_MAJOR_VER-$ICU_MINOR_VER/icu4c ./icu -fi - -if [[ "$platform" == *"linux"* ]] -then - # Workaround for building icu older than 60.0 - # on systems without xlocale.h (removed from glibc since 2.26) - # See https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27xlocale.h.27 - # See https://bugs.archlinux.org/task/55246 - sed -i 's/xlocale/locale/' ./icu/source/i18n/digitlst.cpp -fi - -if [[ "$platform" == *"mac"* ]] -then - sed -i -e 's/cmd\, \"%s %s -o %s%s %s %s%s %s %s\"\,/cmd\, \"%s %s -o %s%s %s %s %s %s %s\"\,/' ./icu/source/tools/pkgdata/pkgdata.cpp -fi - -cd ./icu/source/ - -if [ ! -f "./Makefile" ] -then - ./runConfigureICU $BUILD_PLATFORM -fi - -make - -if [ ! -d "$SCRIPTPATH/$platform$arch/usr/local" ] -then - DESTDIR="$SCRIPTPATH/$platform$arch" make install -fi - -cd ../../ - -cp "./icu/source/lib/libicudata$SHARED_LIB_EXT" "build/libicudata$SHARED_LIB_SHORT_EXT" -cp "./icu/source/lib/libicuuc$SHARED_LIB_EXT" "build/libicuuc$SHARED_LIB_SHORT_EXT" diff --git a/Common/3dParty/openssl/build.sh b/Common/3dParty/openssl/build.sh deleted file mode 100755 index f557707980..0000000000 --- a/Common/3dParty/openssl/build.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash -SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" - -cd "$SCRIPTPATH"/openssl - -os=$(uname -s) -platform="" - -case "$os" in - Linux*) platform="linux" ;; - Darwin*) platform="darwin64-x86_64-cc" ;; - *) exit ;; -esac - -platformLinux="" - -architecture=$(uname -m) -arch="" - -if [[ "$platform" == "linux" ]] -then -case "$architecture" in - x86_64*) arch="-64" ;; - *) arch="-32" ;; -esac -fi - -echo "$platform$arch" - -if [ ! -f Makefile ]; then - #perl ./Configure $platform$arch - ./config no-shared no-asm -fi - -make build_libs diff --git a/Common/3dParty/openssl/fetch.sh b/Common/3dParty/openssl/fetch.sh deleted file mode 100755 index a3a748f6db..0000000000 --- a/Common/3dParty/openssl/fetch.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" - -cd "$SCRIPTPATH" - -if [ ! -d openssl ]; then - git clone --depth=1 https://github.com/openssl/openssl.git -fi diff --git a/Common/3dParty/v8/build.bat b/Common/3dParty/v8/build.bat deleted file mode 100644 index a1216920b3..0000000000 --- a/Common/3dParty/v8/build.bat +++ /dev/null @@ -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% \ No newline at end of file diff --git a/Common/3dParty/v8/build.sh b/Common/3dParty/v8/build.sh deleted file mode 100755 index 9dbd402fdc..0000000000 --- a/Common/3dParty/v8/build.sh +++ /dev/null @@ -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 diff --git a/Common/3dParty/v8/fetch.bat b/Common/3dParty/v8/fetch.bat deleted file mode 100644 index f2a58e1638..0000000000 --- a/Common/3dParty/v8/fetch.bat +++ /dev/null @@ -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 -) diff --git a/Common/3dParty/v8/fetch.sh b/Common/3dParty/v8/fetch.sh deleted file mode 100755 index 83406f9248..0000000000 --- a/Common/3dParty/v8/fetch.sh +++ /dev/null @@ -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 diff --git a/Common/3dParty/v8/fetch_linux_correct.sh b/Common/3dParty/v8/fetch_linux_correct.sh deleted file mode 100755 index 39365f9864..0000000000 --- a/Common/3dParty/v8/fetch_linux_correct.sh +++ /dev/null @@ -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 diff --git a/Common/3dParty/v8/fix-depot_tools.ps1 b/Common/3dParty/v8/fix-depot_tools.ps1 deleted file mode 100644 index a8815c9bd1..0000000000 --- a/Common/3dParty/v8/fix-depot_tools.ps1 +++ /dev/null @@ -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 \ No newline at end of file diff --git a/Common/3dParty/v8/fix-static_crt.ps1 b/Common/3dParty/v8/fix-static_crt.ps1 deleted file mode 100644 index ae33c412c3..0000000000 --- a/Common/3dParty/v8/fix-static_crt.ps1 +++ /dev/null @@ -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