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:
Chocobo1 2021-01-04 15:02:13 +08:00
commit c669401767
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
19 changed files with 77 additions and 32 deletions

View file

@ -32,6 +32,7 @@
#include "base/unicodestrings.h"
#include "base/utils/misc.h"
#include "base/version.h"
#include "ui_aboutdialog.h"
#include "uithememanager.h"
#include "utils.h"

View file

@ -70,6 +70,7 @@
#include "base/utils/fs.h"
#include "base/utils/misc.h"
#include "base/utils/password.h"
#include "base/version.h"
#include "aboutdialog.h"
#include "addnewtorrentdialog.h"
#include "autoexpandabledialog.h"

View file

@ -44,6 +44,7 @@
#endif
#include "base/net/downloadmanager.h"
#include "base/version.h"
namespace
{