Skip to content

Commit 085e22d

Browse files
committed
Updating our Linux/OS X/iOS binary name from libcasablanca.so to use
cpprest and include the version number. So for the next release the name is libcpprest_2_1.so. I also bumped the version number for the Windows binaries and the sources macro.
1 parent 1b5e460 commit 085e22d

File tree

5 files changed

+9
-14
lines changed

5 files changed

+9
-14
lines changed

Build/version.props

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
<PropertyGroup>
44
<CppRestBaseFileName>cpprest</CppRestBaseFileName>
55
<CppRestSDKVersionMajor>2</CppRestSDKVersionMajor>
6-
<CppRestSDKVersionMinor>0</CppRestSDKVersionMinor>
7-
<CppRestSDKVersionRevision>1</CppRestSDKVersionRevision>
6+
<CppRestSDKVersionMinor>1</CppRestSDKVersionMinor>
7+
<CppRestSDKVersionRevision>0</CppRestSDKVersionRevision>
88
<CppRestSDKVersionFileSuffix>$(CppRestSDKVersionMajor)_$(CppRestSDKVersionMinor)</CppRestSDKVersionFileSuffix>
99
<CppRestSDKVersionString>$(CppRestSDKVersionMajor).$(CppRestSDKVersionMinor)</CppRestSDKVersionString>
1010
</PropertyGroup>
11-
<!--
12-
Note: remember to regenerate guiddefs.wxi files using gen_guids_for_msi.ps1 whenever major or minor version file changes
13-
-->
1411
</Project>

Release/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
6262
message("-- Setting gcc options")
6363

6464
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")
65-
set(LINUX_SUPPRESSIONS "-Wno-deprecated -Wno-unknown-pragmas -Wno-reorder -Wno-unused-function -Wno-char-subscripts -Wno-switch -Wno-unused-but-set-parameter -Wno-deprecated -Wno-unused-value -Wno-unused-local-typedefs")
65+
set(LINUX_SUPPRESSIONS "-Wno-deprecated -Wno-unknown-pragmas -Wno-reorder -Wno-unused-function -Wno-char-subscripts -Wno-switch -Wno-unused-but-set-parameter -Wno-unused-value -Wno-unused-local-typedefs")
6666

6767
set(WARNINGS "${WARNINGS} ${LINUX_SUPPRESSIONS}")
6868
set(LD_FLAGS "${LD_FLAGS} -Wl,-z,defs")
@@ -81,7 +81,7 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Binaries)
8181
# These settings can be used by the test targets
8282
set(Casablanca_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
8383
set(Casablanca_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include ${Boost_INCLUDE_DIR})
84-
set(Casablanca_LIBRARY ${LIB}casablanca)
84+
set(Casablanca_LIBRARY ${LIB}cpprest_2_1)
8585
set(Casablanca_LIBRARIES ${Casablanca_LIBRARY} ${Boost_LIBRARIES} ${Boost_FRAMEWORK})
8686

8787

Release/include/cpprest/version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
*
1616
* ==--==
1717
*/
18-
#define CPPREST_VERSION_REVISION 1
19-
#define CPPREST_VERSION_MINOR 0
18+
#define CPPREST_VERSION_REVISION 0
19+
#define CPPREST_VERSION_MINOR 1
2020
#define CPPREST_VERSION_MAJOR 2
2121

2222
#define CPPREST_VERSION (CPPREST_VERSION_MAJOR*100000+CPPREST_VERSION_MINOR*100+CPPREST_VERSION_REVISION)

Release/src/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ elseif(WIN32)
5454
)
5555
add_definitions(
5656
-D_ASYNCRT_EXPORT
57-
-DAZURESTORAGESERVICES_EXPORTS
5857
-D_PPLX_EXPORT
59-
-DWIN32
6058
-D_MBCS
6159
-D_USRDLL
6260
)
@@ -65,9 +63,9 @@ endif()
6563

6664
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNINGS} -Werror -pedantic")
6765

68-
add_library(${LIB}casablanca ${SOURCES})
66+
add_library(${Casablanca_LIBRARY} ${SOURCES})
6967

70-
target_link_libraries(${LIB}casablanca
68+
target_link_libraries(${Casablanca_LIBRARY}
7169
${OPENSSL_LIBRARIES}
7270
${CMAKE_THREAD_LIBS_INIT}
7371
${Boost_FRAMEWORK}

Release/tests/Common/utilities/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ add_library(${LIB}common_utilities
1212
)
1313

1414
target_link_libraries(${LIB}common_utilities
15-
${LIB}casablanca
15+
${Casablanca_LIBRARY}
1616
${LIB}unittestpp
1717
${BOOST_SYSTEM_LIBRARY}
1818
${BOOST_THREAD_LIBRARY}

0 commit comments

Comments
 (0)