Skip to content

Commit

Permalink
cpprestsdk-2.10.2 (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Mar 28, 2018
1 parent f87aac9 commit 1812ee9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 37 deletions.
38 changes: 20 additions & 18 deletions cpprestsdk/README
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,45 @@ communication in native code using a modern asynchronous C++ API design. This
project aims to help C++ developers connect to and interact with services.

Runtime requirements:
cygwin-2.9.0-3
libboost_system1.63-1.63.0-1
libcpprest2.10-2.10.0-1bl1
libgcc1-6.4.0-4
libopenssl100-1.0.2m-1
libstdc++6-6.4.0-4
cygwin-2.10.0-1
libboost_system1.64-1.64.0-1
libcpprest2.10-2.10.2-1bl1
libgcc1-6.4.0-5
libopenssl100-1.0.2n-1
libstdc++6-6.4.0-5
pkg-config-0.29.1-1

Build requirements:
(besides corresponding -devel packages)
binutils-2.29-1
cmake-3.6.2-1
cygport-0.25.0-1
gcc-core-6.4.0-4
gcc-g++-6.4.0-4
gcc-objc++-6.4.0-4
cygport-0.31.0-1
gcc-core-6.4.0-5
gcc-g++-6.4.0-5
gcc-objc++-6.4.0-5
make-4.2.1-2
python-2.7.14-1

Canonical website:
https://github.com/Microsoft/cpprestsdk

Canonical download:
https://github.com/Microsoft/cpprestsdk/archive/v2.10.0.tar.gz
https://github.com/Microsoft/cpprestsdk/archive/v2.10.2.tar.gz

-------------------------------------------

Build instructions:
1. unpack cpprestsdk-2.10.0-X-src.tar.xz
1. unpack cpprestsdk-2.10.2-X-src.tar.xz
2. if you use setup to install this src package,
it will be unpacked under /usr/src automatically
% cd /usr/src
% cygport ./cpprestsdk-2.10.0-X.cygport all
% cygport ./cpprestsdk-2.10.2-X.cygport all

This will create:
/usr/src/cpprestsdk-2.10.0-X-src.tar.xz
/usr/src/cpprestsdk-2.10.0-X.tar.xz
/usr/src/libcpprest2.10-2.10.0-X.tar.xz
/usr/src/libcpprest-devel-2.10.0-X.tar.xz
/usr/src/cpprestsdk-2.10.2-X-src.tar.xz
/usr/src/cpprestsdk-2.10.2-X.tar.xz
/usr/src/libcpprest2.10-2.10.2-X.tar.xz
/usr/src/libcpprest-devel-2.10.2-X.tar.xz

-------------------------------------------

Expand Down Expand Up @@ -74,7 +74,6 @@ Files included in the binary package:
/usr/include/cpprest/details/http_server_api.h
/usr/include/cpprest/details/nosal.h
/usr/include/cpprest/details/resource.h
/usr/include/cpprest/details/uri_parser.h
/usr/include/cpprest/details/web_utilities.h
/usr/include/cpprest/details/x509_cert_utilities.h
/usr/include/cpprest/filestream.h
Expand Down Expand Up @@ -112,5 +111,8 @@ Files included in the binary package:

Port Notes:

----- version 2.10.2-1bl1 -----
Version bump.

----- version 2.10.0-1bl1 -----
Initial release by fd0 <https://github.com/fd00/>
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@ project aims to help C++ developers connect to and interact with services."

CYGCMAKE_SOURCE="${top}/${PF}.${ARCH}/src/${P}/Release"

export CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"

inherit cmake

src_test()
{
cd ${B}
ninja_test
}

PKG_NAMES="
cpprestsdk
libcpprest2.10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
--- origsrc/cpprestsdk-2.10.0/Release/CMakeLists.txt 2017-10-21 17:41:28.000000000 +0900
+++ src/cpprestsdk-2.10.0/Release/CMakeLists.txt 2017-12-13 18:40:35.667000000 +0900
@@ -164,7 +164,12 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GN
--- origsrc/cpprestsdk-2.10.2/Release/CMakeLists.txt 2018-02-07 08:23:26.000000000 +0900
+++ src/cpprestsdk-2.10.2/Release/CMakeLists.txt 2018-03-28 11:58:39.491000000 +0900
@@ -187,7 +187,11 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GN
set(WARNINGS -Wall -Wextra -Wunused-parameter -Wcast-align -Wcast-qual -Wconversion -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wpacked -Wredundant-decls -Wunreachable-code)
set(LD_FLAGS "${LD_FLAGS} -Wl,-z,defs")

- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-strict-aliasing")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing")
+ if(CYGWIN)
+ add_definitions(-D_GNU_SOURCE)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing")
+ else()
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-strict-aliasing")
+ endif()

elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
message("-- Setting msvc options")
@@ -228,3 +233,11 @@ endif()
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -D_GLIBCXX_USE_SCHED_YIELD -D_GLIBCXX_USE_NANOSLEEP")
endif()
@@ -253,3 +257,11 @@ endif()
if(BUILD_SAMPLES)
add_subdirectory(samples)
endif()
Expand All @@ -26,8 +25,8 @@
+SET(VERSION "${CPPREST_VERSION_MAJOR}.${CPPREST_VERSION_MINOR}.${CPPREST_VERSION_REVISION}")
+CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/cpprestsdk.pc.in ${CMAKE_BINARY_DIR}/cpprestsdk.pc @ONLY)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/cpprestsdk.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
--- origsrc/cpprestsdk-2.10.0/Release/cpprestsdk.pc.in 1970-01-01 09:00:00.000000000 +0900
+++ src/cpprestsdk-2.10.0/Release/cpprestsdk.pc.in 2017-12-13 18:39:27.682905200 +0900
--- origsrc/cpprestsdk-2.10.2/Release/cpprestsdk.pc.in 1970-01-01 09:00:00.000000000 +0900
+++ src/cpprestsdk-2.10.2/Release/cpprestsdk.pc.in 2018-03-28 11:47:24.227665300 +0900
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
Expand All @@ -39,8 +38,8 @@
+Version: @VERSION@
+Libs: -L${libdir} -lcpprestsdk
+Cflags: -I${includedir}
--- origsrc/cpprestsdk-2.10.0/Release/include/cpprest/details/cpprest_compat.h 2017-10-21 17:41:28.000000000 +0900
+++ src/cpprestsdk-2.10.0/Release/include/cpprest/details/cpprest_compat.h 2017-12-13 14:45:54.710000000 +0900
--- origsrc/cpprestsdk-2.10.2/Release/include/cpprest/details/cpprest_compat.h 2018-02-07 08:23:26.000000000 +0900
+++ src/cpprestsdk-2.10.2/Release/include/cpprest/details/cpprest_compat.h 2018-03-28 11:47:24.227665300 +0900
@@ -29,8 +29,9 @@
#else // End settings specific to Windows

Expand All @@ -52,9 +51,9 @@
#define dllimport
#define novtable /* no novtable equivalent */
#define __assume(x) do { if (!(x)) __builtin_unreachable(); } while (false)
--- origsrc/cpprestsdk-2.10.0/Release/src/pch/stdafx.h 2017-10-21 17:41:28.000000000 +0900
+++ src/cpprestsdk-2.10.0/Release/src/pch/stdafx.h 2017-12-13 14:46:42.482000200 +0900
@@ -75,7 +75,9 @@
--- origsrc/cpprestsdk-2.10.2/Release/src/pch/stdafx.h 2018-02-07 08:23:26.000000000 +0900
+++ src/cpprestsdk-2.10.2/Release/src/pch/stdafx.h 2018-03-28 11:47:24.242514300 +0900
@@ -67,7 +67,9 @@
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
Expand All @@ -64,8 +63,8 @@
#endif // _WIN32

// Macro indicating the C++ Rest SDK product itself is being built.
--- origsrc/cpprestsdk-2.10.0/Release/src/pplx/pplxlinux.cpp 2017-10-21 17:41:28.000000000 +0900
+++ src/cpprestsdk-2.10.0/Release/src/pplx/pplxlinux.cpp 2017-12-13 15:23:36.868000000 +0900
--- origsrc/cpprestsdk-2.10.2/Release/src/pplx/pplxlinux.cpp 2018-02-07 08:23:26.000000000 +0900
+++ src/cpprestsdk-2.10.2/Release/src/pplx/pplxlinux.cpp 2018-03-28 11:47:24.258298900 +0900
@@ -14,7 +14,9 @@
#include "stdafx.h"
#include "pplx/pplx.h"
Expand Down

0 comments on commit 1812ee9

Please sign in to comment.