Skip to content

Commit

Permalink
bump version to v7.6.0 (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachue authored Aug 31, 2023
1 parent 105c067 commit 2617965
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
## CHANGE LOG

## v7.6.0 (2023-08-31)

- 移除内置的亚太-首尔区域
- 提供快速生成公有云的区域实例的方法 `Qiniu_Use_Region()`
- 支持通过调用 `Qiniu_Client_EnableAutoQuery()` 方法自动查询域名
- 修复 `Qiniu_RSF_ListFiles` 无法在 C++ 中被调用的问题
- 增加 `Qiniu_RSF_ListRet_Cleanup()` 方法用于回收 `Qiniu_RSF_ListRet`

## v7.5.0 (2023-06-30)

- 修复了 OpenSSL 3.x 编译告警
Expand Down
23 changes: 15 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#设置CMAKE最低版本
# 设置CMAKE最低版本
CMAKE_MINIMUM_REQUIRED(VERSION 3.13)

CMAKE_POLICY(SET CMP0048 NEW)
CMAKE_POLICY(SET CMP0074 NEW)

#设置项目名称
# 设置项目名称
SET(PROJECT_NAME qiniu)
#建立项目
PROJECT(${PROJECT_NAME} VERSION 7.5.0 LANGUAGES C)

# 建立项目
PROJECT(${PROJECT_NAME} VERSION 7.6.0 LANGUAGES C)

set(CMAKE_C_STANDARD 99)

Expand All @@ -20,24 +21,30 @@ AUX_SOURCE_DIRECTORY(b64 DIR_SRCS_B64)
AUX_SOURCE_DIRECTORY(cJSON DIR_SRCS_CJSON)
AUX_SOURCE_DIRECTORY(qiniu DIR_SRCS_QINIU)
MESSAGE(STATUS "Src file: ${DIR_SRCS_B64} ${DIR_SRCS_CJSON} ${DIR_SRCS_QINIU}")
#编译可执行程序
#ADD_EXECUTABLE(${PROJECT_NAME} ${DIR_SRCS})
#如果要生成静态链接库

# 编译可执行程序
# ADD_EXECUTABLE(${PROJECT_NAME} ${DIR_SRCS})
# 如果要生成静态链接库
ADD_LIBRARY(${PROJECT_NAME}_static STATIC ${DIR_SRCS_B64} ${DIR_SRCS_CJSON} ${DIR_SRCS_QINIU})
#如果要生成动态链接库

# 如果要生成动态链接库
ADD_LIBRARY(${PROJECT_NAME} SHARED ${DIR_SRCS_B64} ${DIR_SRCS_CJSON} ${DIR_SRCS_QINIU})
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
FIND_PACKAGE(CURL REQUIRED)

IF(NOT "${CURL_INCLUDE_DIRS}" STREQUAL "")
INCLUDE_DIRECTORIES("${CURL_INCLUDE_DIRS}")
ENDIF()

TARGET_LINK_LIBRARIES(${PROJECT_NAME} PUBLIC ${CURL_LIBRARIES})
FIND_PACKAGE(OpenSSL REQUIRED)

IF(NOT "${OPENSSL_INCLUDE_DIR}" STREQUAL "")
INCLUDE_DIRECTORIES("${OPENSSL_INCLUDE_DIR}")
ENDIF()

TARGET_LINK_LIBRARIES(${PROJECT_NAME} PUBLIC ${OPENSSL_LIBRARIES})

ADD_SUBDIRECTORY(gtests)
Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qiniu-c-sdk",
"version-string": "7.5.0",
"version-string": "7.6.0",
"dependencies": [
"curl",
"openssl"
Expand Down

0 comments on commit 2617965

Please sign in to comment.