[cmake] add windows support for MSYS

Done with Vort's (https://github.com/Vort) cooperation

+ Updated Makefiles for correct options order

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2023-02-26 10:14:15 +00:00
parent 2e899a8d36
commit 8ed721ca14
No known key found for this signature in database
GPG key ID: 66F6C87B98EBCFE2
12 changed files with 198 additions and 87 deletions

View file

@ -11,7 +11,9 @@
#define CODENAME "Purple"
#define XSTRINGIZE(x) STRINGIZE(x)
#define STRINGIZE(x) #x
#define MAKE_VERSION(a,b,c) STRINGIZE(a) "." STRINGIZE(b) "." STRINGIZE(c)
#define MAKE_VERSION_NUMBER(a,b,c) ((a*100+b)*100+c)
@ -20,7 +22,7 @@
#define I2PD_VERSION_MICRO 1
#define I2PD_VERSION_PATCH 0
#ifdef GITVER
#define I2PD_VERSION GITVER
#define I2PD_VERSION XSTRINGIZE(GITVER)
#else
#define I2PD_VERSION MAKE_VERSION(I2PD_VERSION_MAJOR, I2PD_VERSION_MINOR, I2PD_VERSION_MICRO)
#endif