feat(windows): use cmake to configure windows integration DLL version

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2025-05-09 15:07:25 +02:00
parent 59f3e774ad
commit 92d5c473f5
No known key found for this signature in database
GPG Key ID: 7D0F74F05C22F553
3 changed files with 8 additions and 3 deletions

View File

@ -11,6 +11,8 @@ set(MIRALL_VERSION_PATCH 50)
set(MIRALL_VERSION_YEAR 2025)
set(MIRALL_SOVERSION 0)
set(MIRALL_PREVERSION_HUMAN "3.17.0 alpha") # For preversions where PATCH>=50. Use version + alpha, rc1, rc2, etc.
set(NCEXT_BUILD_NUM 47)
set(NCEXT_VERSION 3,0,0,${NCEXT_BUILD_NUM})
# ------------------------------------
# Minimum supported server versions

View File

@ -1,5 +1,7 @@
# SPDX-FileCopyrightText: 2018 ownCloud GmbH
# SPDX-License-Identifier: LGPL-2.1-or-later
configure_file(Version.h.in ${CMAKE_CURRENT_BINARY_DIR}/Version.h)
add_library(NCUtil STATIC
CommunicationSocket.cpp
RemotePathChecker.cpp
@ -9,5 +11,6 @@ add_library(NCUtil STATIC
target_include_directories(NCUtil
PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}"
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)

View File

@ -5,10 +5,10 @@
// This is the number that will end up in the version window of the DLLs.
// Increment this version before committing a new build if you are today's shell_integration build master.
#define NCEXT_BUILD_NUM 47
#cmakedefine NCEXT_BUILD_NUM @NCEXT_BUILD_NUM@
#define STRINGIZE2(s) #s
#define STRINGIZE(s) STRINGIZE2(s)
#define NCEXT_VERSION 3,0,0,NCEXT_BUILD_NUM
#cmakedefine NCEXT_VERSION @NCEXT_VERSION@
#define NCEXT_VERSION_STRING STRINGIZE(NCEXT_VERSION)