mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-02 03:40:12 +00:00
638fb25b47
This rewrites the version info using lokid's approach of compiling it into a .cpp file that gets generated as part of the build (*not* during the configure stage). Among other things, this means that changing the version no longer invalidates ccache or cmake dependencies, and because it depends on `.git/index` git commits will cause the version to be regenerated, making the commit tag more reliable (currently if you rebuild without running cmake your git commit tag doesn't update).
114 lines
2.9 KiB
Plaintext
114 lines
2.9 KiB
Plaintext
// WARNING: for the love of all that is good and holy
|
|
// please DO NOT convert this file to UTF-8, much less
|
|
// UTF-16 - the UNIX cross-rc does not understand UTF-16,
|
|
// and UTF-8 chews up the copyright symbols.
|
|
// -rick
|
|
//
|
|
// Microsoft Visual C++ generated resource script.
|
|
//
|
|
#include "resource.h"
|
|
#include <constants/version.h>
|
|
#ifdef __GNUC__ // make windows rc accept this
|
|
#include <winresrc.h>
|
|
#endif
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// English (United States) resources
|
|
|
|
#define STRINGIZER(version) #version
|
|
|
|
#define VERSION_STRING(version, codename, revision) \
|
|
STRINGIZER(version) "-release [" STRINGIZER(codename) "] (rev-" STRINGIZER(revision) ")"
|
|
|
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
|
#ifdef _WIN32
|
|
LANGUAGE 1033,1
|
|
#pragma code_page(1252)
|
|
#endif //_WIN32
|
|
|
|
#ifdef APSTUDIO_INVOKED
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// TEXTINCLUDE
|
|
//
|
|
|
|
1 TEXTINCLUDE
|
|
BEGIN
|
|
"resource.h\0"
|
|
END
|
|
|
|
2 TEXTINCLUDE
|
|
BEGIN
|
|
"\0"
|
|
END
|
|
|
|
3 TEXTINCLUDE
|
|
BEGIN
|
|
"\r\n"
|
|
"\0"
|
|
END
|
|
|
|
#endif // APSTUDIO_INVOKED
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Version
|
|
//
|
|
|
|
VS_VERSION_INFO VERSIONINFO
|
|
FILEVERSION LLARP_VERSION
|
|
PRODUCTVERSION LLARP_VERSION
|
|
FILEFLAGSMASK 0x17L
|
|
#ifdef _DEBUG
|
|
FILEFLAGS 0x3L
|
|
#else
|
|
FILEFLAGS 0x2L
|
|
#endif
|
|
FILEOS 0x40004L
|
|
FILETYPE 0x1L
|
|
FILESUBTYPE 0x0L
|
|
BEGIN
|
|
BLOCK "StringFileInfo"
|
|
BEGIN
|
|
BLOCK "040904b0"
|
|
BEGIN
|
|
VALUE "Comments", "includes relay/exit functionality, such code is highly experimental on non-Linux targets"
|
|
VALUE "CompanyName", "Loki Foundation"
|
|
VALUE "FileDescription", "LokiNET daemon for Microsoft® Windows® NT™"
|
|
VALUE "FileVersion", VERSION_STRING(LLARP_VERSION_TRIPLET, LLARP_RELEASE_MOTTO, VERSIONTAG)
|
|
VALUE "InternalName", "llarpd"
|
|
VALUE "LegalCopyright", "Copyright ©2018-2019 Jeff Becker, Rick V for the Loki Foundation. All rights reserved. This software is provided under the terms of the zlib-libpng licence; see the file LICENSE for details."
|
|
VALUE "OriginalFilename", "llarpd.exe"
|
|
VALUE "ProductName", "LokiNET for Windows"
|
|
VALUE "ProductVersion", VERSION_STRING(LLARP_VERSION_TRIPLET, LLARP_RELEASE_MOTTO, VERSIONTAG)
|
|
END
|
|
END
|
|
BLOCK "VarFileInfo"
|
|
BEGIN
|
|
VALUE "Translation", 0x409, 1200
|
|
END
|
|
END
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// RT_MANIFEST
|
|
//
|
|
|
|
3 RT_MANIFEST "app.xml"
|
|
|
|
#endif // English (United States) resources
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef APSTUDIO_INVOKED
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Generated from the TEXTINCLUDE 3 resource.
|
|
//
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#endif // not APSTUDIO_INVOKED
|