[sese] update usage (#41407)

This commit is contained in:
Kaoru 2024-10-09 03:53:59 +08:00 committed by GitHub
parent 22a2a789be
commit 2951b6ec85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 9 additions and 33 deletions

View File

@ -1,25 +0,0 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 641e9d4ef..51d151149 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,6 +48,11 @@ if (EXISTS ${PROJECT_SOURCE_DIR}/.git)
get_git_branch(SESE_REPO_BRANCH ${CMAKE_CURRENT_LIST_DIR})
endif ()
+# for vcpkg_copy_pdbs()
+if (MSVC AND BUILD_SHARED_LIBS)
+ set(${CMAKE_CXX_FLAGS} "${CMAKE_CXX_FLAGS} /Zi")
+endif ()
+
if (NOT "${CMAKE_BUILD_TYPE}" MATCHES "Debug")
if (MSVC)
set(${CMAKE_CXX_FLAGS} "${CMAKE_CXX_FLAGS} /Ox")
@@ -62,7 +67,7 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR "${CMAKE_BUILD_TYPE}" STREQUAL "Re
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3")
# for sanitizer
# 0xC0000135 : https://stackoverflow.com/questions/66531482/application-crashes-when-using-address-sanitizer-with-msvc
- # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fsanitize=address /fno-sanitize-address-vcasan-lib /Zi /D_DISABLE_VECTOR_ANNOTATION /D_DISABLE_STRING_ANNOTATION")
+ # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fsanitize=address /fno-sanitize-address-vcasan-lib /D_DISABLE_VECTOR_ANNOTATION /D_DISABLE_STRING_ANNOTATION")
else ()
# unittest coverage
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage -fprofile-update=atomic")

View File

@ -18,8 +18,6 @@ vcpkg_from_github(
REPO libsese/sese
REF "${VERSION}"
SHA512 a1008c351ea3e8745d629bdcceb4a6d089ae5a84137bbd49b8abbbb271032ddf279e9b20f155181b6a7d3d8cb17c2ec2f1b7a12464fb0cac8402628e473966cb
PATCHES
001-msvc-pdbs.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS

View File

@ -1,7 +1,4 @@
sese provides CMake targets:
find_package(sese CONFIG REQUIRED)
# build full features
target_link_libraries(main PRIVATE Sese::Core)
# build only plugin
target_link_libraries(main PRIVATE Sese::Plugin)
find_package(sese CONFIG REQUIRED)
target_link_libraries(main PRIVATE Sese::Core)

View File

@ -1,6 +1,7 @@
{
"name": "sese",
"version": "2.3.0",
"port-version": 1,
"description": "A cross-platform framework for basic components.",
"homepage": "https://github.com/libsese/sese",
"license": "Apache-2.0",

View File

@ -8230,7 +8230,7 @@
},
"sese": {
"baseline": "2.3.0",
"port-version": 0
"port-version": 1
},
"sf2cute": {
"baseline": "0.2.0",

View File

@ -14,6 +14,11 @@
"git-tree": "d2af951334877cf8e111e3da423abfccd941f587",
"version": "2.3.0",
"port-version": 0
},
{
"git-tree": "b2cc673efeb589600f46fa5aa3c4c19a4648e90d",
"version": "2.3.0",
"port-version": 1
}
]
}