Skip to content

Commit 9e81bc2

Browse files
committed
Merge branch 'hs3180-vs2015_1' into development
2 parents e83d8b9 + 47e2bf0 commit 9e81bc2

File tree

147 files changed

+1442
-1053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+1442
-1053
lines changed

Build/version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<CppRestBaseFileName>cpprest</CppRestBaseFileName>
55
<CppRestSDKVersionMajor>2</CppRestSDKVersionMajor>
6-
<CppRestSDKVersionMinor>6</CppRestSDKVersionMinor>
6+
<CppRestSDKVersionMinor>7</CppRestSDKVersionMinor>
77
<CppRestSDKVersionRevision>0</CppRestSDKVersionRevision>
88
<CppRestSDKVersionFileSuffix>$(CppRestSDKVersionMajor)_$(CppRestSDKVersionMinor)</CppRestSDKVersionFileSuffix>
99
<CppRestSDKVersionString>$(CppRestSDKVersionMajor).$(CppRestSDKVersionMinor)</CppRestSDKVersionString>

Build_android/boost-for-android-x86.patch

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/build-android.sh b/build-android.sh
2-
index 40453f7..86f0cff 100755
2+
index 40453f7..7ffc050 100755
33
--- a/build-android.sh
44
+++ b/build-android.sh
5-
@@ -258,9 +258,9 @@ case "$NDK_RN" in
5+
@@ -258,9 +258,14 @@ case "$NDK_RN" in
66
TOOLSET=gcc-androidR8e
77
;;
88
"10 (64-bit)")
@@ -11,19 +11,24 @@ index 40453f7..86f0cff 100755
1111
- TOOLSET=gcc-androidR8e
1212
+ TOOLCHAIN=llvm-3.4
1313
+ CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/clang++
14+
+ TOOLSET=clang-androidR8e
15+
+ ;;
16+
+ "10e-rc4 (64-bit)")
17+
+ TOOLCHAIN=llvm-3.6
18+
+ CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/clang++
1419
+ TOOLSET=clang-androidR8e
1520
;;
1621
*)
1722
echo "Undefined or not supported Android NDK version!"
18-
@@ -392,6 +392,7 @@ echo "Building boost for android"
23+
@@ -392,6 +397,7 @@ echo "Building boost for android"
1924
export PATH=$AndroidBinariesPath:$PATH
2025
export AndroidNDKRoot
2126
export NO_BZIP2=1
2227
+ export ICONV_PATH="`pwd`/../../libiconv/x86"
2328

2429
cxxflags=""
2530
for flag in $CXXFLAGS; do cxxflags="$cxxflags cxxflags=$flag"; done
26-
@@ -404,8 +405,12 @@ echo "Building boost for android"
31+
@@ -404,8 +410,12 @@ echo "Building boost for android"
2732
threading=multi \
2833
--layout=versioned \
2934
--prefix="./../$BUILD_DIR/" \
@@ -38,7 +43,7 @@ index 40453f7..86f0cff 100755
3843
} | tee -a $PROGDIR/build.log
3944

4045
diff --git a/configs/user-config-boost-1_55_0.jam b/configs/user-config-boost-1_55_0.jam
41-
index 666d4c8..9c2f67f 100644
46+
index 666d4c8..762753e 100644
4247
--- a/configs/user-config-boost-1_55_0.jam
4348
+++ b/configs/user-config-boost-1_55_0.jam
4449
@@ -41,91 +41,44 @@ import os ;
@@ -50,7 +55,7 @@ index 666d4c8..9c2f67f 100644
5055
+using clang : androidR8e
5156
:
5257
-arm-linux-androideabi-g++
53-
+$(AndroidNDKRoot)/toolchains/llvm-3.4/prebuilt/linux-x86_64/bin/clang++
58+
+$(AndroidNDKRoot)/toolchains/llvm-3.6/prebuilt/linux-x86_64/bin/clang++
5459
:
5560
-<archiver>arm-linux-androideabi-ar
5661
+<compileflags>--gcc-toolchain="$(AndroidNDKRoot)/toolchains/x86-4.8/prebuilt/linux-x86_64"

Build_android/boost-for-android.patch

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/build-android.sh b/build-android.sh
2-
index 40453f7..97a3203 100755
2+
index 40453f7..ad78ddf 100755
33
--- a/build-android.sh
44
+++ b/build-android.sh
5-
@@ -258,9 +258,9 @@ case "$NDK_RN" in
5+
@@ -258,9 +258,14 @@ case "$NDK_RN" in
66
TOOLSET=gcc-androidR8e
77
;;
88
"10 (64-bit)")
@@ -11,19 +11,24 @@ index 40453f7..97a3203 100755
1111
- TOOLSET=gcc-androidR8e
1212
+ TOOLCHAIN=llvm-3.4
1313
+ CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/clang++
14+
+ TOOLSET=clang-androidR8e
15+
+ ;;
16+
+ "10e-rc4 (64-bit)")
17+
+ TOOLCHAIN=llvm-3.6
18+
+ CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/clang++
1419
+ TOOLSET=clang-androidR8e
1520
;;
1621
*)
1722
echo "Undefined or not supported Android NDK version!"
18-
@@ -392,6 +392,7 @@ echo "Building boost for android"
23+
@@ -392,6 +397,7 @@ echo "Building boost for android"
1924
export PATH=$AndroidBinariesPath:$PATH
2025
export AndroidNDKRoot
2126
export NO_BZIP2=1
2227
+ export ICONV_PATH="`pwd`/../../libiconv/armeabi-v7a"
2328

2429
cxxflags=""
2530
for flag in $CXXFLAGS; do cxxflags="$cxxflags cxxflags=$flag"; done
26-
@@ -404,8 +405,12 @@ echo "Building boost for android"
31+
@@ -404,8 +410,12 @@ echo "Building boost for android"
2732
threading=multi \
2833
--layout=versioned \
2934
--prefix="./../$BUILD_DIR/" \
@@ -38,7 +43,7 @@ index 40453f7..97a3203 100755
3843
} | tee -a $PROGDIR/build.log
3944

4045
diff --git a/configs/user-config-boost-1_55_0.jam b/configs/user-config-boost-1_55_0.jam
41-
index 666d4c8..5f6bab8 100644
46+
index 666d4c8..df597f6 100644
4247
--- a/configs/user-config-boost-1_55_0.jam
4348
+++ b/configs/user-config-boost-1_55_0.jam
4449
@@ -41,82 +41,41 @@ import os ;
@@ -50,7 +55,7 @@ index 666d4c8..5f6bab8 100644
5055
+using clang : androidR8e
5156
:
5257
-arm-linux-androideabi-g++
53-
+$(AndroidNDKRoot)/toolchains/llvm-3.4/prebuilt/linux-x86_64/bin/clang++
58+
+$(AndroidNDKRoot)/toolchains/llvm-3.6/prebuilt/linux-x86_64/bin/clang++
5459
:
5560
-<archiver>arm-linux-androideabi-ar
5661
+<compileflags>--gcc-toolchain="$(AndroidNDKRoot)/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64"

Build_android/configure.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
#
2121
# Build script for casablanca on android
2222
#
23-
# For the latest on this and related APIs, please see http://casablanca.codeplex.com.
23+
# For the latest on this and related APIs, please see: https://github.com/Microsoft/cpprestsdk
2424
#
2525
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
2626

2727
set -e
2828

29-
# Note: we require android ndk r10 available from
30-
# http://dl.google.com/android/ndk/android-ndk32-r10-linux-x86_64.tar.bz2
31-
# http://dl.google.com/android/ndk/android-ndk32-r10-windows-x86_64.zip
29+
# Note: we require android ndk r10e available from
30+
# http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.tar.bz2
31+
# http://dl.google.com/android/ndk/android-ndk-r10e-windows-x86_64.zip
3232

3333
# -----------------
3434
# Parse args
@@ -184,7 +184,7 @@ then
184184
then
185185
git checkout 1c95d349d5f92c5ac1c24e0ec6985272a3e3883c
186186
git reset --hard HEAD
187-
patch -p1 < "$DIR/boost-for-android.patch"
187+
git apply "$DIR/boost-for-android.patch"
188188
touch cpprestsdk.patched.stamp
189189
fi
190190
PATH="$PATH:$NDK_DIR" ./build-android.sh --boost=1.55.0 --with-libraries=locale,random,date_time,filesystem,system,thread,chrono "${NDK_DIR}" || exit 1
@@ -200,7 +200,7 @@ then
200200
then
201201
git checkout 1c95d349d5f92c5ac1c24e0ec6985272a3e3883c
202202
git reset --hard HEAD
203-
patch -p1 < "$DIR/boost-for-android-x86.patch"
203+
git apply "$DIR/boost-for-android-x86.patch"
204204
ln -s ../Boost-for-Android/boost_1_55_0.tar.bz2 .
205205
touch cpprestsdk.patched.stamp
206206
fi
@@ -230,7 +230,7 @@ then
230230
cmake "$DIR/../Release/" \
231231
-DCMAKE_TOOLCHAIN_FILE=../android-cmake/android.toolchain.cmake \
232232
-DANDROID_ABI=armeabi-v7a \
233-
-DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-clang3.4 \
233+
-DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-clang3.6 \
234234
-DANDROID_STL=none \
235235
-DANDROID_STL_FORCE_FEATURES=ON \
236236
-DANDROID_NATIVE_API_LEVEL=android-9 \
@@ -246,7 +246,7 @@ then
246246
cmake "$DIR/../Release/" \
247247
-DCMAKE_TOOLCHAIN_FILE=../android-cmake/android.toolchain.cmake \
248248
-DANDROID_ABI=armeabi-v7a \
249-
-DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-clang3.4 \
249+
-DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-clang3.6 \
250250
-DANDROID_STL=none \
251251
-DANDROID_STL_FORCE_FEATURES=ON \
252252
-DANDROID_NDK="${ANDROID_NDK}" \
@@ -262,7 +262,7 @@ then
262262
cmake "$DIR/../Release/" \
263263
-DCMAKE_TOOLCHAIN_FILE=../android-cmake/android.toolchain.cmake \
264264
-DANDROID_ABI=x86 \
265-
-DANDROID_TOOLCHAIN_NAME=x86-clang3.4 \
265+
-DANDROID_TOOLCHAIN_NAME=x86-clang3.6 \
266266
-DANDROID_STL=none \
267267
-DANDROID_STL_FORCE_FEATURES=ON \
268268
-DANDROID_NATIVE_API_LEVEL=android-9 \
@@ -278,7 +278,7 @@ then
278278
cmake "$DIR/../Release/" \
279279
-DCMAKE_TOOLCHAIN_FILE=../android-cmake/android.toolchain.cmake \
280280
-DANDROID_ABI=x86 \
281-
-DANDROID_TOOLCHAIN_NAME=x86-clang3.4 \
281+
-DANDROID_TOOLCHAIN_NAME=x86-clang3.6 \
282282
-DANDROID_STL=none \
283283
-DANDROID_STL_FORCE_FEATURES=ON \
284284
-DANDROID_NDK="${ANDROID_NDK}" \

Build_android/libiconv/jni/Android.mk

Lines changed: 0 additions & 23 deletions
This file was deleted.

Build_android/libiconv/jni/Application.mk

Lines changed: 0 additions & 3 deletions
This file was deleted.

Build_android/libiconv/libiconv.patch

Lines changed: 0 additions & 22 deletions
This file was deleted.

Build_android/openssl/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SHELL := /bin/bash
2-
OPENSSL_VER = openssl-1.0.1h
2+
OPENSSL_VER = openssl-1.0.2d
33

44
all: armeabi-v7a/lib/libssl.a x86/lib/libssl.a
55

@@ -10,7 +10,7 @@ clean:
1010
rm -rf setenv-android-x86.sh
1111

1212
setenv-android.sh:
13-
wget http://wiki.openssl.org/images/7/70/Setenv-android.sh
13+
wget https://wiki.openssl.org/images/7/70/Setenv-android.sh
1414
mv Setenv-android.sh setenv-android.sh
1515
chmod a+x setenv-android.sh
1616

@@ -21,7 +21,7 @@ setenv-android-x86.sh: setenv-android.sh
2121
mv setenv-android-x86.sh.tmp setenv-android-x86.sh
2222

2323
$(OPENSSL_VER).tar.gz:
24-
wget http://www.openssl.org/source/$(OPENSSL_VER).tar.gz
24+
wget https://www.openssl.org/source/$(OPENSSL_VER).tar.gz
2525

2626
armeabi-v7a/lib/libssl.a: setenv-android.sh $(OPENSSL_VER).tar.gz
2727
[ -d "$(ANDROID_NDK_ROOT)" ]

Build_iOS/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# iOS folders that dependencies get stored in
2+
boostoniphone/
3+
boost.framework/
4+
ios-cmake/
5+
openssl/
6+
OpenSSL-for-iPhone/

Build_iOS/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
Please consult the codeplex documentation for iOS compilation:
2-
3-
[](https://casablanca.codeplex.com/wikipage?title=Setup%20and%20Build%20on%20IOS)
1+
Please consult the documentation [here](https://github.com/Microsoft/cpprestsdk/wiki/How-to-build-for-iOS) for iOS compilation.

0 commit comments

Comments
 (0)