Commit 3ae6811c authored by atraczyk's avatar atraczyk Committed by Andreas Traczyk

build: change to archive downloads only on UWP build

- Changes fetch scripts urls to archived tarballs if possible to
  facilitate caching of the contrib source on the UWP Jenkins
  build machine.

Change-Id: I51eac783eea964bfe08727baf1ad7b9e08a5096d
Tuleap: #790
parent 8ceeb8b4
......@@ -5,7 +5,13 @@ set BOOST_VERSION_2=1_61_0
set BOOST_URL="https://sourceforge.net/projects/boost/files/boost/%BOOST_VERSION_1%/boost_%BOOST_VERSION_2%.zip"
mkdir %BUILD%
wget %BOOST_URL%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\boost_%BOOST_VERSION_2%.zip %cd%
) else (
wget %BOOST_URL%
)
unzip -q boost_%BOOST_VERSION_2%.zip -d %BUILD%
del boost_%BOOST_VERSION_2%.zip
rename %BUILD%\boost_%BOOST_VERSION_2% boost
......
set BUILD=%SRC%..\build
set CRYPTOPP_VERSION=54557b18275053bbfc34594f7e65808dd92dd1a6
set CRYPTOPP_URL="https://github.com/weidai11/cryptopp.git"
set CRYPTOPP_URL=https://github.com/weidai11/cryptopp/archive/%CRYPTOPP_VERSION%.tar.gz
mkdir %BUILD%
cd %BUILD%
git clone %CRYPTOPP_URL%
cd cryptopp
git checkout %CRYPTOPP_VERSION%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%CRYPTOPP_VERSION%.tar.gz %cd%
) else (
wget %CRYPTOPP_URL%
)
7z -y x %CRYPTOPP_VERSION%.tar.gz && 7z -y x %CRYPTOPP_VERSION%.tar -o%BUILD%
del %CRYPTOPP_VERSION%.tar && del %CRYPTOPP_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\cryptopp-%CRYPTOPP_VERSION% cryptopp
cd %BUILD%\cryptopp
git apply --reject --whitespace=fix %SRC%\cryptopp\cryptopp-uwp.patch
......
set BUILD=%SRC%..\build
set FFMPEG_URL=git://github.com/Microsoft/FFmpegInterop.git
mkdir %BUILD%
cd %BUILD%
git clone --recursive %FFMPEG_URL%
cd FFmpegInterop
git apply --reject --whitespace=fix %SRC%\ffmpeg\ffmpeg-uwp.patch
cd ffmpeg
git apply --reject --whitespace=fix %SRC%\ffmpeg\0004-avformat-fix-find_stream_info-not-considering-extradata.patch
set BUILD=%SRC%..\build
set FFMPEGINTEROP_VERSION=6f8062f68176a23d4cbc953668677edb07fd7984
set FFMPEGINTEROP_URL=https://github.com/Microsoft/FFmpegInterop/archive/%FFMPEGINTEROP_VERSION%.tar.gz
mkdir %BUILD%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%FFMPEGINTEROP_VERSION%.tar.gz %cd%
) else (
wget %FFMPEGINTEROP_URL%
)
7z -y x %FFMPEGINTEROP_VERSION%.tar.gz && 7z -y x %FFMPEGINTEROP_VERSION%.tar -o%BUILD%
del %FFMPEGINTEROP_VERSION%.tar && del %FFMPEGINTEROP_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\FFmpegInterop-%FFMPEGINTEROP_VERSION% FFmpegInterop
cd %BUILD%\FFmpegInterop
rmdir /s /q ffmpeg
git apply --reject --whitespace=fix %SRC%\ffmpeg\ffmpeg-uwp.patch
set FFMPEG_VERSION=12320c08221f0eecf6d9af3a6f12f42e656f0674
set FFMPEG_URL=https://github.com/FFmpeg/FFmpeg/archive/%FFMPEG_VERSION%.tar.gz
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%FFMPEG_VERSION%.tar.gz %cd%
) else (
wget %FFMPEG_URL%
)
7z -y x %FFMPEG_VERSION%.tar.gz && 7z -y x %FFMPEG_VERSION%.tar
del %FFMPEG_VERSION%.tar && del %FFMPEG_VERSION%.tar.gz && del pax_global_header
rename FFmpeg-%FFMPEG_VERSION% ffmpeg
cd ffmpeg
git apply --reject --whitespace=fix %SRC%\ffmpeg\0004-avformat-fix-find_stream_info-not-considering-extradata.patch
cd %SRC%
\ No newline at end of file
set BUILD=%SRC%..\build
set GMP_VERSION=3c8f5a0ae0c2ac9ff0ea31b27f71b152979b556d
set GMP_URL="https://github.com/ShiftMediaProject/gmp.git"
set GMP_URL=https://github.com/ShiftMediaProject/gmp/archive/%GMP_VERSION%.tar.gz
mkdir %BUILD%
cd %BUILD%
git clone %GMP_URL%
cd %GMP_URL%
git checkout %GMP_VERSION%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%GMP_VERSION%.tar.gz %cd%
) else (
wget %GMP_URL%
)
7z -y x %GMP_VERSION%.tar.gz && 7z -y x %GMP_VERSION%.tar -o%BUILD%
del %GMP_VERSION%.tar && del %GMP_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\gmp-%GMP_VERSION% gmp
cd %BUILD%\gmp
cd gmp
git apply --reject --whitespace=fix %SRC%\gmp\gmp-uwp.patch
cd %SRC%
\ No newline at end of file
set BUILD=%SRC%..\build
set GNUTLS_VERSION=f2d0ade53ff644da55244aed79d05eca78d11a2f
set GNUTLS_URL=https://github.com/ShiftMediaProject/gnutls/archive/%GNUTLS_VERSION%.tar.gz
mkdir %BUILD%
cd %BUILD%
git clone https://github.com/ShiftMediaProject/gnutls.git
cd gnutls
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%GNUTLS_VERSION%.tar.gz %cd%
) else (
wget %GNUTLS_URL%
)
7z -y x %GNUTLS_VERSION%.tar.gz && 7z -y x %GNUTLS_VERSION%.tar -o%BUILD%
del %GNUTLS_VERSION%.tar && del %GNUTLS_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\gnutls-%GNUTLS_VERSION% gnutls
cd %BUILD%\gnutls
git apply --reject --whitespace=fix %SRC%\gnutls\gnutls-no-egd.patch
git apply --reject --whitespace=fix %SRC%\gnutls\read-file-limits.h.patch
......
......@@ -119,16 +119,7 @@
+ <OutDir>$(ProjectDir)..\..\</OutDir>
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
@@ -795,7 +795,7 @@
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <IntDir>$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
<TargetName>libgnutls</TargetName>
<OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
@@ -1834,7 +1834,7 @@ del /f /q $(OutDir)\licenses\gnutls.txt
<BufferSecurityCheck>false</BufferSecurityCheck>
<FloatingPointModel>Fast</FloatingPointModel>
......
set BUILD=%SRC%..\build
set REPOURL="https://github.com/ShiftMediaProject/libiconv.git"
set ICONV_VERSION=65ab92f7a1699ecc39e37fb81f66e5a42aaa35c4
set ICONV_URL=https://github.com/ShiftMediaProject/libiconv/archive/%ICONV_VERSION%.tar.gz
mkdir %BUILD%
cd %BUILD%
git clone %REPOURL%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%ICONV_VERSION%.tar.gz %cd%
) else (
wget %ICONV_URL%
)
7z -y x %ICONV_VERSION%.tar.gz && 7z -y x %ICONV_VERSION%.tar -o%BUILD%
del %ICONV_VERSION%.tar && del %ICONV_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\libiconv-%ICONV_VERSION% libiconv
cd %BUILD%\libiconv
cd libiconv
git apply --reject --whitespace=fix %SRC%\iconv\libiconv-uwp.patch
cd %SRC%
\ No newline at end of file
set BUILD=%SRC%..\build
set REPOURL="https://github.com/open-source-parsers/jsoncpp.git"
set JSONCPP_VERSION=81065748e315026017c633fca1bfc57cba5b246a
set JSONCPP_URL=https://github.com/open-source-parsers/jsoncpp/archive/%JSONCPP_VERSION%.tar.gz
mkdir %BUILD%
cd %BUILD%
git clone %REPOURL%
cd jsoncpp
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%JSONCPP_VERSION%.tar.gz %cd%
) else (
wget %JSONCPP_URL%
)
7z -y x %JSONCPP_VERSION%.tar.gz && 7z -y x %JSONCPP_VERSION%.tar -o%BUILD%
del %JSONCPP_VERSION%.tar && del %JSONCPP_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\jsoncpp-%JSONCPP_VERSION% jsoncpp
cd %BUILD%\jsoncpp
git apply --reject --whitespace=fix %SRC%\jsoncpp\jsoncpp-uwp.patch
......
set BUILD=%SRC%..\build
set MSGPACK_VERSION=1df97bc37b363a340c5ad06c5cbcc53310aaff80
set MSGPACK_URL="https://github.com/msgpack/msgpack-c.git"
set MSGPACK_URL=https://github.com/msgpack/msgpack-c/archive/%MSGPACK_VERSION%.tar.gz
mkdir %BUILD%
cd %BUILD%
git clone %MSGPACK_URL%
cd msgpack-c
git checkout %MSGPACK_VERSION%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%MSGPACK_VERSION%.tar.gz %cd%
) else (
wget %MSGPACK_URL%
)
7z -y x %MSGPACK_VERSION%.tar.gz && 7z -y x %MSGPACK_VERSION%.tar -o%BUILD%
del %MSGPACK_VERSION%.tar && del %MSGPACK_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\msgpack-c-%MSGPACK_VERSION% msgpack-c
cd %BUILD%\msgpack-c
git apply --reject --whitespace=fix %SRC%\msgpack\msgpack-uwp.patch
......
set BUILD=%SRC%..\build
set REPOURL="https://github.com/ShiftMediaProject/nettle.git"
set NETTLE_VERSION=4e0b2723b76d4163fa37b2b456d41534154ec97c
set NETTLE_URL=https://github.com/ShiftMediaProject/nettle/archive/%NETTLE_VERSION%.tar.gz
mkdir %BUILD%
cd %BUILD%
git clone %REPOURL%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%NETTLE_VERSION%.tar.gz %cd%
) else (
wget %NETTLE_URL%
)
7z -y x %NETTLE_VERSION%.tar.gz && 7z -y x %NETTLE_VERSION%.tar -o%BUILD%
del %NETTLE_VERSION%.tar && del %NETTLE_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\nettle-%NETTLE_VERSION% nettle
cd %BUILD%\nettle
cd nettle
git apply --reject --whitespace=fix %SRC%\nettle\nettle-uwp.patch
cd %SRC%
\ No newline at end of file
set BUILD=%SRC%..\build
set OPENDHT_VERSION=3fb7c2acfe098b18908d1803e5aaa2437d878af4
set OPENDHT_URL="https://github.com/savoirfairelinux/opendht.git"
set OPENDHT_URL=https://github.com/savoirfairelinux/opendht/archive/%OPENDHT_VERSION%.tar.gz
mkdir %BUILD%
cd %BUILD%
git clone %OPENDHT_URL%
cd opendht
git checkout %OPENDHT_VERSION%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%OPENDHT_VERSION%.tar.gz %cd%
) else (
wget %OPENDHT_URL%
)
7z -y x %OPENDHT_VERSION%.tar.gz && 7z -y x %OPENDHT_VERSION%.tar -o%BUILD%
del %OPENDHT_VERSION%.tar && del %OPENDHT_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\opendht-%OPENDHT_VERSION% opendht
cd %SRC%
\ No newline at end of file
......@@ -5,7 +5,13 @@ set PCRE_URL=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre
set PCRE_NAME=pcre
mkdir %BUILD%
wget %PCRE_URL%/%PCRE_NAME%-%PCRE_VERSION%.zip
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%PCRE_NAME%-%PCRE_VERSION%.zip %cd%
) else (
wget %PCRE_URL%/%PCRE_NAME%-%PCRE_VERSION%.zip
)
unzip -q %PCRE_NAME%-%PCRE_VERSION%.zip -d %BUILD%
del %PCRE_NAME%-%PCRE_VERSION%.zip
rename %BUILD%\%PCRE_NAME%-%PCRE_VERSION% %PCRE_NAME%
......
set BUILD=%SRC%..\build
mkdir %BUILD%
wget http://www.pjsip.org/release/2.5.5/pjproject-2.5.5.zip
if %USE_CACHE%==1 (
copy %CACHE_DIR%\pjproject-2.5.5.zip %cd%
) else (
wget http://www.pjsip.org/release/2.5.5/pjproject-2.5.5.zip
)
unzip -q pjproject-2.5.5.zip -d %BUILD%
del pjproject-2.5.5.zip
rename %BUILD%\pjproject-2.5.5 pjproject
......
......@@ -4,7 +4,13 @@ set PA_VERSION=v190600_20161030
set PA_URL="http://www.portaudio.com/archives/pa_stable_%PA_VERSION%.tgz"
mkdir %BUILD%
wget %PA_URL%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\pa_stable_%PA_VERSION%.tgz %cd%
) else (
wget %PA_URL%
)
7z -y e pa_stable_%PA_VERSION%.tgz && 7z -y x pa_stable_%PA_VERSION%.tar -o%BUILD%
del pa_stable_%PA_VERSION%.tgz && del pa_stable_%PA_VERSION%.tar
......
......@@ -3,7 +3,13 @@ set BUILD=%SRC%..\build
set PTHREADS_URL="ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip"
mkdir %BUILD%
wget %PTHREADS_URL%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\pthreads-w32-2-9-1-release.zip %cd%
) else (
wget %PTHREADS_URL%
)
7z -y x pthreads-w32-2-9-1-release.zip -o%BUILD%
del pthreads-w32-2-9-1-release.zip
rmdir /Q /S %BUILD%\QueueUserAPCEx && rmdir /Q /S %BUILD%\Pre-built.2
......
set BUILD=%SRC%..\build
set RESTBED_VERSION=34187502642144ab9f749ab40f5cdbd8cb17a54a
set RESTBED_URL="https://github.com/Corvusoft/restbed.git"
set RESTBED_URL=https://github.com/Corvusoft/restbed/archive/%RESTBED_VERSION%.tar.gz
mkdir %BUILD%
cd %BUILD%
git clone %RESTBED_URL%
cd restbed
git checkout %RESTBED_VERSION%
git apply --reject --whitespace=fix %SRC%\restbed\openssl-repo-uwp.patch
git submodule update --init --recursive
git submodule foreach git pull origin master
cd dependency\asio
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%RESTBED_VERSION%.tar.gz %cd%
) else (
wget %RESTBED_URL%
)
7z -y x %RESTBED_VERSION%.tar.gz && 7z -y x %RESTBED_VERSION%.tar -o%BUILD%
del %RESTBED_VERSION%.tar && del %RESTBED_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\restbed-%RESTBED_VERSION% restbed
rmdir /s /q %BUILD%\restbed\dependency
mkdir %BUILD%\restbed\dependency
cd %BUILD%\restbed\dependency
set ASIO_VERSION=276846097ab5073b67e772dbdfa12596224a54a5
set ASIO_URL=https://github.com/Corvusoft/asio-dependency/archive/%ASIO_VERSION%.tar.gz
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%ASIO_VERSION%.tar.gz %cd%
) else (
wget %ASIO_URL%
)
7z -y x %ASIO_VERSION%.tar.gz && 7z -y x %ASIO_VERSION%.tar
del %ASIO_VERSION%.tar && del %ASIO_VERSION%.tar.gz && del pax_global_header
rename asio-dependency-%ASIO_VERSION% asio
cd asio
git apply --reject --whitespace=fix %SRC%\restbed\asio-uwp.patch
cd ..\openssl
git checkout OpenSSL_1_0_2_WinRT-stable
cd ..
set CATCH_VERSION=35f510545d55a831372d3113747bf1314ff4f2ef
set CATCH_URL=https://github.com/Corvusoft/catch-dependency/archive/%CATCH_VERSION%.tar.gz
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%CATCH_VERSION%.tar.gz %cd%
) else (
wget %CATCH_URL%
)
7z -y x %CATCH_VERSION%.tar.gz && 7z -y x %CATCH_VERSION%.tar
del %CATCH_VERSION%.tar && del %CATCH_VERSION%.tar.gz && del pax_global_header
rename catch-dependency-%CATCH_VERSION% catch
set OPENSSL_VERSION=c7ba244789ce9f9b6675ff88e61dd5d5e5cac53e
set OPENSSL_URL=https://github.com/Microsoft/openssl/archive/%OPENSSL_VERSION%.tar.gz
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%OPENSSL_VERSION%.tar.gz %cd%
) else (
wget %OPENSSL_URL%
)
7z -y x %OPENSSL_VERSION%.tar.gz && 7z -y x %OPENSSL_VERSION%.tar
del %OPENSSL_VERSION%.tar && del %OPENSSL_VERSION%.tar.gz && del pax_global_header
rename openssl-%OPENSSL_VERSION% openssl
cd openssl
git apply --reject --whitespace=fix %SRC%\restbed\openssl-uwp.patch
cd %SRC%
\ No newline at end of file
--- a/.gitmodules
+++ b/.gitmodules
@@ -8,5 +8,5 @@
branch = master
[submodule "dependency/openssl"]
path = dependency/openssl
- url = https://github.com/corvusoft/openssl-dependency
- branch = OpenSSL_1_0_2-stable
+ url = https://github.com/Microsoft/openssl
+ branch = OpenSSL_1_0_2_WinRT-stable
--
2.8.1.windows.1
......@@ -4,7 +4,13 @@ set SAMPLERATE_VERSION=0.1.8
set SAMPLERATE_URL="http://www.mega-nerd.com/SRC/libsamplerate-%SAMPLERATE_VERSION%.tar.gz"
mkdir %BUILD%
wget %SAMPLERATE_URL%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\libsamplerate-%SAMPLERATE_VERSION%.tar.gz %cd%
) else (
wget %SAMPLERATE_URL%
)
7z -y e libsamplerate-%SAMPLERATE_VERSION%.tar.gz && 7z -y x libsamplerate-%SAMPLERATE_VERSION%.tar -o%BUILD%
del libsamplerate-%SAMPLERATE_VERSION%.tar && del libsamplerate-%SAMPLERATE_VERSION%.tar.gz
rename %BUILD%\libsamplerate-%SAMPLERATE_VERSION% libsamplerate
......
......@@ -4,7 +4,13 @@ set UPNP_VERSION=1.6.19
set UPNP_URL=https://github.com/mrjimenez/pupnp/archive/release-%UPNP_VERSION%.tar.gz
mkdir %BUILD%
wget %UPNP_URL%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\release-%UPNP_VERSION%.tar.gz %cd%
) else (
wget %UPNP_URL%
)
7z -y x release-%UPNP_VERSION%.tar.gz && 7z -y x release-%UPNP_VERSION%.tar -o%BUILD%
del release-%UPNP_VERSION%.tar && del release-%UPNP_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\pupnp-release-%UPNP_VERSION% libupnp
......
set BUILD=%SRC%..\build
set YAMLCPP_VERSION=24fa1b33805c9a91df0f32c46c28e314dd7ad96f
set YAMLCPP_URL="https://github.com/jbeder/yaml-cpp.git"
set YAMLCPP_URL=https://github.com/jbeder/yaml-cpp/archive/%YAMLCPP_VERSION%.tar.gz
mkdir %BUILD%
cd %BUILD%
git clone %YAMLCPP_URL%
cd yaml-cpp
git checkout %YAMLCPP_VERSION%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%YAMLCPP_VERSION%.tar.gz %cd%
) else (
wget %YAMLCPP_URL%
)
7z -y x %YAMLCPP_VERSION%.tar.gz && 7z -y x %YAMLCPP_VERSION%.tar -o%BUILD%
del %YAMLCPP_VERSION%.tar && del %YAMLCPP_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\yaml-cpp-%YAMLCPP_VERSION% yaml-cpp
cd %BUILD%\yaml-cpp
git apply --reject --whitespace=fix %SRC%\yaml-cpp\yaml-cpp-uwp.patch
......
set BUILD=%SRC%..\build
set REPOURL="https://github.com/ShiftMediaProject/zlib.git"
set ZLIB_VERSION=3a062eb61d0c3d4aa30851cd1a6597b977b56597
set ZLIB_URL=https://github.com/ShiftMediaProject/zlib/archive/%ZLIB_VERSION%.tar.gz
mkdir %BUILD%
cd %BUILD%
git clone %REPOURL%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%ZLIB_VERSION%.tar.gz %cd%
) else (
wget %ZLIB_URL%
)
7z -y x %ZLIB_VERSION%.tar.gz && 7z -y x %ZLIB_VERSION%.tar -o%BUILD%
del %ZLIB_VERSION%.tar && del %ZLIB_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\zlib-%ZLIB_VERSION% zlib
cd %BUILD%\zlib
cd zlib
git apply --reject --whitespace=fix %SRC%\zlib\zlib-uwp.patch
cd %SRC%
\ No newline at end of file
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