File tree 23 files changed +69
-6
lines changed
23 files changed +69
-6
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,7 @@ find_package( ICU )
17
17
if (BUILD_SHARED_LIBS )
18
18
set (Boost_USE_STATIC_LIBS OFF )
19
19
# TODO/NOTE:
20
- # the unit tests and examples won't compile with the current setup and
21
- # shared libraries yet
22
- set (BUILD_TESTS OFF )
20
+ # the examples won't compile with the current setup and shared libraries yet
23
21
set (BUILD_EXAMPLES OFF )
24
22
else ()
25
23
set (Boost_USE_STATIC_LIBS ON )
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ endforeach(src_file)
61
61
set (CPP-NETLIB_HTTP_MESSAGE_SRCS http/request.cpp http/response.cpp)
62
62
add_library (cppnetlib-http-message ${CPP-NETLIB_HTTP_MESSAGE_SRCS})
63
63
add_dependencies (cppnetlib-http-message
64
- ${Boost_LIBRARIES}
64
+ # ${Boost_LIBRARIES}
65
65
cppnetlib-message)
66
66
target_link_libraries (cppnetlib-http-message
67
67
${Boost_LIBRARIES}
@@ -99,7 +99,7 @@ set(CPP-NETLIB_HTTP_SERVER_SRCS
99
99
)
100
100
add_library (cppnetlib-http-server ${CPP-NETLIB_HTTP_SERVER_SRCS})
101
101
add_dependencies (cppnetlib-http-server
102
- ${Boost_LIBRARIES}
102
+ # ${Boost_LIBRARIES}
103
103
cppnetlib-constants
104
104
cppnetlib-uri
105
105
cppnetlib-message
@@ -150,7 +150,7 @@ set(CPP-NETLIB_HTTP_CLIENT_SRCS
150
150
http/client.cpp)
151
151
add_library (cppnetlib-http-client ${CPP-NETLIB_HTTP_CLIENT_SRCS})
152
152
add_dependencies (cppnetlib-http-client
153
- ${Boost_LIBRARIES}
153
+ # ${Boost_LIBRARIES}
154
154
cppnetlib-constants
155
155
cppnetlib-uri
156
156
cppnetlib-message
Original file line number Diff line number Diff line change 5
5
6
6
include_directories (${CPP-NETLIB_SOURCE_DIR}/include )
7
7
8
+ if (BUILD_SHARED_LIBS )
9
+ add_definitions (-DBUILD_SHARED_LIBS)
10
+ endif ()
11
+
8
12
add_subdirectory (uri)
9
13
add_subdirectory (http)
10
14
Original file line number Diff line number Diff line change 5
5
// (See accompanying file LICENSE_1_0.txt or copy at
6
6
// http://www.boost.org/LICENSE_1_0.txt)
7
7
8
+ #ifdef BUILD_SHARED_LIBS
9
+ # define BOOST_TEST_DYN_LINK
10
+ #endif
8
11
#define BOOST_TEST_MODULE HTTP 1.0 Client Constructor Test
9
12
#include < network/include/http/client.hpp>
10
13
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 5
5
// (See accompanying file LICENSE_1_0.txt or copy at
6
6
// http://www.boost.org/LICENSE_1_0.txt)
7
7
8
+ #ifdef BUILD_SHARED_LIBS
9
+ # define BOOST_TEST_DYN_LINK
10
+ #endif
8
11
#define BOOST_TEST_MODULE HTTP Client Get Different Port Test
9
12
#include < network/include/http/client.hpp>
10
13
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 4
4
// (See accompanying file LICENSE_1_0.txt or copy at
5
5
// http://www.boost.org/LICENSE_1_0.txt)
6
6
7
+ #ifdef BUILD_SHARED_LIBS
8
+ # define BOOST_TEST_DYN_LINK
9
+ #endif
7
10
#define BOOST_TEST_MODULE HTTP 1.1 Get Streaming Test
8
11
#include < network/include/http/client.hpp>
9
12
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 4
4
// (See accompanying file LICENSE_1_0.txt or copy at
5
5
// http://www.boost.org/LICENSE_1_0.txt)
6
6
7
+ #ifdef BUILD_SHARED_LIBS
8
+ # define BOOST_TEST_DYN_LINK
9
+ #endif
7
10
#define BOOST_TEST_MODULE HTTP 1.0 Get Test
8
11
#include < network/include/http/client.hpp>
9
12
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 5
5
// (See accompanying file LICENSE_1_0.txt or copy at
6
6
// http://www.boost.org/LICENSE_1_0.txt)
7
7
8
+ #ifdef BUILD_SHARED_LIBS
9
+ # define BOOST_TEST_DYN_LINK
10
+ #endif
8
11
#define BOOST_TEST_MODULE HTTP Client Get Timeout Test
9
12
#include < network/include/http/client.hpp>
10
13
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 4
4
// (See accompanying file LICENSE_1_0.txt or copy at
5
5
// http://www.boost.org/LICENSE_1_0.txt)
6
6
7
+ #ifdef BUILD_SHARED_LIBS
8
+ # define BOOST_TEST_DYN_LINK
9
+ #endif
7
10
#define BOOST_TEST_MODULE HTTP Request Storage Base Test
8
11
#include < network/protocol/http/request/request_base.hpp>
9
12
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 5
5
// (See accompanying file LICENSE_1_0.txt or copy at
6
6
// http://www.boost.org/LICENSE_1_0.txt)
7
7
8
+ #ifdef BUILD_SHARED_LIBS
9
+ # define BOOST_TEST_DYN_LINK
10
+ #endif
8
11
#define BOOST_TEST_MODULE HTTP Request Linearize Test
9
12
#include < network/protocol/http/request.hpp>
10
13
#include < network/protocol/http/algorithms/linearize.hpp>
Original file line number Diff line number Diff line change 4
4
// (See accompanying file LICENSE_1_0.txt or copy at
5
5
// http://www.boost.org/LICENSE_1_0.txt)
6
6
7
+ #ifdef BUILD_SHARED_LIBS
8
+ # define BOOST_TEST_DYN_LINK
9
+ #endif
7
10
#define BOOST_TEST_MODULE HTTP Request Test
8
11
#include < network/protocol/http/request.hpp>
9
12
#include < network/protocol/http/message/wrappers.hpp>
Original file line number Diff line number Diff line change 4
4
// (See accompanying file LICENSE_1_0.txt or copy at
5
5
// http://www.boost.org/LICENSE_1_0.txt)
6
6
7
+ #ifdef BUILD_SHARED_LIBS
8
+ # define BOOST_TEST_DYN_LINK
9
+ #endif
7
10
#define BOOST_TEST_MODULE HTTP Client Response Test
8
11
#include < network/protocol/http/response.hpp>
9
12
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change
1
+ #ifdef BUILD_SHARED_LIBS
2
+ # define BOOST_TEST_DYN_LINK
3
+ # define BOOST_TEST_NO_MAIN
4
+ #endif
1
5
#define BOOST_TEST_MODULE HTTP Asynchronous Server Tests
2
6
3
7
#include < network/include/http/server.hpp>
Original file line number Diff line number Diff line change 5
5
// (See accompanying file LICENSE_1_0.txt or copy at
6
6
// http://www.boost.org/LICENSE_1_0.txt)
7
7
8
+ #ifdef BUILD_SHARED_LIBS
9
+ # define BOOST_TEST_DYN_LINK
10
+ #endif
8
11
#define BOOST_TEST_MODULE HTTP Server Construtor Tests
9
12
10
13
#include < network/include/http/server.hpp>
Original file line number Diff line number Diff line change 5
5
// (See accompanying file LICENSE_1_0.txt or copy at
6
6
// http://www.boost.org/LICENSE_1_0.txt)
7
7
8
+ #ifdef BUILD_SHARED_LIBS
9
+ # define BOOST_TEST_DYN_LINK
10
+ #endif
8
11
#define BOOST_TEST_MODULE message test
9
12
#include < boost/config/warning_disable.hpp>
10
13
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 5
5
// (See accompanying file LICENSE_1_0.txt or copy at
6
6
// http://www.boost.org/LICENSE_1_0.txt)
7
7
8
+ #ifdef BUILD_SHARED_LIBS
9
+ # define BOOST_TEST_DYN_LINK
10
+ #endif
8
11
#define BOOST_TEST_MODULE message test
9
12
#include < boost/config/warning_disable.hpp>
10
13
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 4
4
// (See accompanying file LICENSE_1_0.txt or copy at
5
5
// http://www.boost.org/LICENSE_1_0.txt)
6
6
7
+ #ifdef BUILD_SHARED_LIBS
8
+ # define BOOST_TEST_DYN_LINK
9
+ #endif
7
10
#define BOOST_TEST_MODULE Relative URL Test
8
11
#include < boost/config/warning_disable.hpp>
9
12
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 3
3
// (See accompanying file LICENSE_1_0.txt or copy at
4
4
// http://www.boost.org/LICENSE_1_0.txt)
5
5
6
+ #ifdef BUILD_SHARED_LIBS
7
+ # define BOOST_TEST_DYN_LINK
8
+ #endif
6
9
#define BOOST_TEST_MODULE URI Scheme Test
7
10
#include < boost/config/warning_disable.hpp>
8
11
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 4
4
// (See accompanying file LICENSE_1_0.txt or copy at
5
5
// http://www.boost.org/LICENSE_1_0.txt)
6
6
7
+ #ifdef BUILD_SHARED_LIBS
8
+ # define BOOST_TEST_DYN_LINK
9
+ #endif
7
10
#define BOOST_TEST_MODULE URI builder stream test
8
11
#include < boost/config/warning_disable.hpp>
9
12
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 4
4
// (See accompanying file LICENSE_1_0.txt or copy at
5
5
// http://www.boost.org/LICENSE_1_0.txt)
6
6
7
+ #ifdef BUILD_SHARED_LIBS
8
+ # define BOOST_TEST_DYN_LINK
9
+ #endif
7
10
#define BOOST_TEST_MODULE URI builder test
8
11
#include < boost/config/warning_disable.hpp>
9
12
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 4
4
// (See accompanying file LICENSE_1_0.txt or copy at
5
5
// http://www.boost.org/LICENSE_1_0.txt)
6
6
7
+ #ifdef BUILD_SHARED_LIBS
8
+ # define BOOST_TEST_DYN_LINK
9
+ #endif
7
10
#define BOOST_TEST_MODULE URI encoding test
8
11
#include < boost/config/warning_disable.hpp>
9
12
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 4
4
// (See accompanying file LICENSE_1_0.txt of copy at
5
5
// http://www.boost.org/LICENSE_1_0.txt)
6
6
7
+ #ifdef BUILD_SHARED_LIBS
8
+ # define BOOST_TEST_DYN_LINK
9
+ #endif
7
10
#define BOOST_TEST_MODULE URI Test
8
11
#include < boost/config/warning_disable.hpp>
9
12
#include < boost/test/unit_test.hpp>
Original file line number Diff line number Diff line change 5
5
// (See accompanying file LICENSE_1_0.txt or copy at
6
6
// http://www.boost.org/LICENSE_1_0.txt)
7
7
8
+ #ifdef BUILD_SHARED_LIBS
9
+ # define BOOST_TEST_DYN_LINK
10
+ #endif
8
11
#define BOOST_TEST_MODULE utils thread pool test
9
12
#include < boost/config/warning_disable.hpp>
10
13
#include < boost/test/unit_test.hpp>
You can’t perform that action at this time.
0 commit comments