Skip to content

Commit 1c935d2

Browse files
committed
add marker to bundle with non-standard(openssl) TLS engine
1 parent 674ede1 commit 1c935d2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,19 @@ add_custom_target(bundle
137137

138138
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bundle)
139139

140+
message(NOTICE "tlsuv = ${TLSUV_TLSLIB}")
141+
if (TLSUV_TLSLIB AND NOT TLSUV_TLSLIB STREQUAL "openssl")
142+
set(comp-flavor "-${TLSUV_TLSLIB}")
143+
message(NOTICE "binary marker: ${comp-flavor}")
144+
endif ()
140145
macro(BUNDLE_COMP comp)
141146
add_custom_target(${comp}-bundle
142-
BYPRODUCTS ${CMAKE_BINARY_DIR}/bundle/${comp}-${CMAKE_SYSTEM_NAME}_${CMAKE_SYSTEM_PROCESSOR}.zip
147+
BYPRODUCTS ${CMAKE_BINARY_DIR}/bundle/${comp}${comp-flavor}-${CMAKE_SYSTEM_NAME}_${CMAKE_SYSTEM_PROCESSOR}.zip
143148
DEPENDS ${comp}
144149
# use generator expression to set working directory to the target's build directory. this works for multi-config generators, e.g. when "--config" is specified at build time.
145150
WORKING_DIRECTORY "$<TARGET_FILE_DIR:${comp}>"
146151
COMMENT "adding components to bundle ${comp} for ${CMAKE_SYSTEM_NAME}:${CMAKE_SYSTEM_PROCESSOR}: $<TARGET_FILE_NAME:${comp}> ${${comp}_BUNDLE_COMPS}"
147-
COMMAND ${CMAKE_COMMAND} -E tar "cf" "${CMAKE_BINARY_DIR}/bundle/${comp}-${CMAKE_SYSTEM_NAME}_${CMAKE_SYSTEM_PROCESSOR}.zip" --format=zip -- $<TARGET_FILE_NAME:${comp}> ${${comp}_BUNDLE_COMPS})
152+
COMMAND ${CMAKE_COMMAND} -E tar "cf" "${CMAKE_BINARY_DIR}/bundle/${comp}${comp-flavor}-${CMAKE_SYSTEM_NAME}_${CMAKE_SYSTEM_PROCESSOR}.zip" --format=zip -- $<TARGET_FILE_NAME:${comp}> ${${comp}_BUNDLE_COMPS})
148153
add_dependencies(bundle ${comp}-bundle)
149154
endmacro()
150155

CMakePresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
]
270270
},
271271
{
272-
"name": "ci-windows-x64-win32cryptoo",
272+
"name": "ci-windows-x64-win32crypto",
273273
"inherits": [
274274
"ci-build",
275275
"ci-win64-mingw",

0 commit comments

Comments
 (0)