mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 17:12:31 -06:00
Generate version header when configuring project
The basic idea is we create a version header template at "src/base/version.h.in" and the build systems are expected to replace strings that are enclosed with @ symbols and generate "src/base/version.h" for other source files to consume/include.
This commit is contained in:
@@ -87,6 +87,7 @@ add_library(qbt_base STATIC
|
||||
utils/random.h
|
||||
utils/string.h
|
||||
utils/version.h
|
||||
version.h
|
||||
|
||||
# sources
|
||||
asyncfilestorage.cpp
|
||||
@@ -167,7 +168,6 @@ target_link_libraries(qbt_base
|
||||
PRIVATE
|
||||
OpenSSL::Crypto OpenSSL::SSL
|
||||
ZLIB::ZLIB
|
||||
qbt_version_definitions
|
||||
PUBLIC
|
||||
LibtorrentRasterbar::torrent-rasterbar
|
||||
Qt5::Core Qt5::Network Qt5::Xml
|
||||
|
||||
Reference in New Issue
Block a user