@@ -64,7 +64,7 @@ function parseArgs {
6464
6565function installBuildDependencies
6666{
67- if [[ $" PLATFORM" != " unknown" ]]
67+ if [[ " $ PLATFORM" != " unknown" ]]
6868 then
6969 echo " [INFO] Platform check succesful"
7070 else
@@ -83,23 +83,13 @@ function installBuildDependencies
8383 ./install-vcpkg-deps.sh ~ /deliveryoptimization_tools/
8484 elif isSupportedLinux
8585 then
86-
86+
8787 apt-get install -y make build-essential g++ gdb gdbserver gcc git wget
8888 apt-get install -y python3 ninja-build
8989
9090 if [[ " $PLATFORM " == " debian9" ]];
9191 then
92- # Cpprestsdk below requires min cmake version of 3.9, while 3.7 is the latest available on Debian9
93- # So build & install cmake from source
94- cd /tmp
95- wget https://cmake.org/files/v3.10/cmake-3.10.2.tar.gz
96- tar xzf cmake-3.10.2.tar.gz
97- cd /tmp/cmake-3.10.2
98- ./bootstrap
99- make
100- make install
101-
102- # Install gsl from source, also not available on Debian9
92+ # libmsgsl-dev package not available on Debian9. Install from source.
10393 cd /tmp/
10494 git clone https://github.com/Microsoft/GSL.git
10595 cd GSL/
@@ -111,30 +101,8 @@ function installBuildDependencies
111101 apt-get -y install cmake libmsgsl-dev
112102 fi
113103
114- # Open-source library dependencies
115- # Boost libs for DO
116104 apt-get install -y libboost-system-dev libboost-filesystem-dev libboost-program-options-dev
117- # Additional Boost libs for cpprestsdk
118- apt-get install -y libboost-random-dev libboost-regex-dev
119- apt-get install -y libproxy-dev libssl-dev uuid-dev
120-
121- # Install cpprest dependencies
122- # libssl-dev also required but installed above because plugin uses libssl-dev directly
123- apt-get install -y zlib1g-dev
124-
125- # Most target platforms do not natively have a version of cpprest that supports url-redirection
126- # Build and install v2.10.16 as it's the earliest version which supports url-redirection
127- rm -rf /tmp/cpprestsdk
128- mkdir /tmp/cpprestsdk
129- cd /tmp/cpprestsdk
130- git clone https://github.com/microsoft/cpprestsdk.git .
131- git checkout tags/v2.10.16
132- git submodule update --init
133- mkdir /tmp/cpprestsdk/build
134- cd /tmp/cpprestsdk/build
135- cmake -G Ninja -DCMAKE_BUILD_TYPE=minsizerel -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_SAMPLES=OFF -Wno-dev -DWERROR=OFF ..
136- ninja
137- ninja install
105+ apt-get install -y libproxy-dev libssl-dev uuid-dev libcurl4-openssl-dev
138106
139107 rm -rf /tmp/gtest
140108 mkdir /tmp/gtest
@@ -269,4 +237,3 @@ main()
269237}
270238
271239main " $@ "
272-
0 commit comments