• R/O
  • HTTP
  • SSH
  • HTTPS

MUtilities: Commit

MUtilities development repository


Commit MetaInfo

Revisione4f1b06a6a818f96a893ea256e4b5aeec182b8f6 (tree)
Time2019-08-07 06:24:02
AuthorLoRd_MuldeR <mulder2@gmx....>
CommiterLoRd_MuldeR

Log Message

Added version info resource to DLL build.

Change Summary

Incremental Difference

--- /dev/null
+++ b/MUtilities.rc
@@ -0,0 +1,115 @@
1+// Microsoft Visual C++ generated resource script.
2+//
3+#define MUTILS_INC_CONFIG
4+#include "src/Config.h"
5+
6+#define APSTUDIO_READONLY_SYMBOLS
7+/////////////////////////////////////////////////////////////////////////////
8+//
9+// Generated from the TEXTINCLUDE 2 resource.
10+//
11+#include "WinResrc.h" //"afxres.h"
12+
13+/////////////////////////////////////////////////////////////////////////////
14+#undef APSTUDIO_READONLY_SYMBOLS
15+
16+/////////////////////////////////////////////////////////////////////////////
17+// Neutral resources
18+
19+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)
20+#ifdef _WIN32
21+LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
22+#pragma code_page(1252)
23+#endif //_WIN32
24+
25+/////////////////////////////////////////////////////////////////////////////
26+//
27+// Version
28+//
29+
30+VS_VERSION_INFO VERSIONINFO
31+ FILEVERSION VER_MUTILS_MAJOR,VER_MUTILS_MINOR_HI,VER_MUTILS_MINOR_LO,VER_MUTILS_PATCH
32+ PRODUCTVERSION VER_MUTILS_MAJOR,VER_MUTILS_MINOR_HI,VER_MUTILS_MINOR_LO,VER_MUTILS_PATCH
33+ FILEFLAGSMASK 0x17L
34+#ifdef _DEBUG
35+ FILEFLAGS 0x3L
36+#else
37+ FILEFLAGS 0x2L
38+#endif
39+ FILEOS 0x40004L
40+ FILETYPE 0x1L
41+ FILESUBTYPE 0x0L
42+BEGIN
43+ BLOCK "StringFileInfo"
44+ BEGIN
45+ BLOCK "000004b0"
46+ BEGIN
47+ VALUE "Comments", "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY"
48+ VALUE "CompanyName", "Free Software Foundation"
49+ VALUE "FileDescription", "MuldeR's Utilities for Qt"
50+ VALUE "FileVersion", VER_MUTILS_STR
51+ VALUE "InternalName", "MUtilities"
52+ VALUE "LegalCopyright", "Copyright (C) 2004-2019 LoRd_MuldeR <MuldeR2@GMX.de>"
53+ VALUE "LegalTrademarks", "This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License <http://www.gnu.org/>"
54+ VALUE "OriginalFilename", "MUtils32-1.dll"
55+ VALUE "ProductName", "MuldeR's Utilities for Qt"
56+ VALUE "ProductVersion", VER_MUTILS_STR
57+ END
58+ END
59+ BLOCK "VarFileInfo"
60+ BEGIN
61+ VALUE "Translation", 0x0, 1200
62+ END
63+END
64+
65+#endif // Neutral resources
66+/////////////////////////////////////////////////////////////////////////////
67+
68+
69+/////////////////////////////////////////////////////////////////////////////
70+// German (Germany) resources
71+
72+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
73+#ifdef _WIN32
74+LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
75+#pragma code_page(1252)
76+#endif //_WIN32
77+
78+#ifdef APSTUDIO_INVOKED
79+/////////////////////////////////////////////////////////////////////////////
80+//
81+// TEXTINCLUDE
82+//
83+
84+1 TEXTINCLUDE
85+BEGIN
86+ "src\\Resource.h\0"
87+END
88+
89+2 TEXTINCLUDE
90+BEGIN
91+ "#include ""afxres.h""\r\n"
92+ "\0"
93+END
94+
95+3 TEXTINCLUDE
96+BEGIN
97+ "\r\n"
98+ "\0"
99+END
100+
101+#endif // APSTUDIO_INVOKED
102+
103+#endif // German (Germany) resources
104+/////////////////////////////////////////////////////////////////////////////
105+
106+
107+#ifndef APSTUDIO_INVOKED
108+/////////////////////////////////////////////////////////////////////////////
109+//
110+// Generated from the TEXTINCLUDE 3 resource.
111+//
112+
113+
114+/////////////////////////////////////////////////////////////////////////////
115+#endif // not APSTUDIO_INVOKED
--- a/MUtilities_VS2013.vcxproj
+++ b/MUtilities_VS2013.vcxproj
@@ -95,6 +95,11 @@
9595 <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)tmp\$(ProjectName)\QRC_%(Filename).cpp;%(Outputs)</Outputs>
9696 </CustomBuild>
9797 </ItemGroup>
98+ <ItemGroup>
99+ <ResourceCompile Include="MUtilities.rc">
100+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_Static|Win32'">true</ExcludedFromBuild>
101+ </ResourceCompile>
102+ </ItemGroup>
98103 <PropertyGroup Label="Globals">
99104 <ProjectGuid>{55405FE1-149F-434C-9D72-4B64348D2A08}</ProjectGuid>
100105 <Keyword>Win32Proj</Keyword>
--- a/MUtilities_VS2013.vcxproj.filters
+++ b/MUtilities_VS2013.vcxproj.filters
@@ -194,4 +194,9 @@
194194 <Filter>Resource Files</Filter>
195195 </CustomBuild>
196196 </ItemGroup>
197+ <ItemGroup>
198+ <ResourceCompile Include="MUtilities.rc">
199+ <Filter>Resource Files</Filter>
200+ </ResourceCompile>
201+ </ItemGroup>
197202 </Project>
\ No newline at end of file
--- a/MUtilities_VS2015.vcxproj
+++ b/MUtilities_VS2015.vcxproj
@@ -95,6 +95,11 @@
9595 <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)tmp\$(ProjectName)\QRC_%(Filename).cpp;%(Outputs)</Outputs>
9696 </CustomBuild>
9797 </ItemGroup>
98+ <ItemGroup>
99+ <ResourceCompile Include="MUtilities.rc">
100+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_Static|Win32'">true</ExcludedFromBuild>
101+ </ResourceCompile>
102+ </ItemGroup>
98103 <PropertyGroup Label="Globals">
99104 <ProjectGuid>{55405FE1-149F-434C-9D72-4B64348D2A08}</ProjectGuid>
100105 <Keyword>Win32Proj</Keyword>
--- a/MUtilities_VS2015.vcxproj.filters
+++ b/MUtilities_VS2015.vcxproj.filters
@@ -194,4 +194,9 @@
194194 <Filter>Resource Files</Filter>
195195 </CustomBuild>
196196 </ItemGroup>
197+ <ItemGroup>
198+ <ResourceCompile Include="MUtilities.rc">
199+ <Filter>Resource Files</Filter>
200+ </ResourceCompile>
201+ </ItemGroup>
197202 </Project>
\ No newline at end of file
--- a/MUtilities_VS2017.vcxproj
+++ b/MUtilities_VS2017.vcxproj
@@ -95,6 +95,11 @@
9595 <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)tmp\$(ProjectName)\QRC_%(Filename).cpp;%(Outputs)</Outputs>
9696 </CustomBuild>
9797 </ItemGroup>
98+ <ItemGroup>
99+ <ResourceCompile Include="MUtilities.rc">
100+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_Static|Win32'">true</ExcludedFromBuild>
101+ </ResourceCompile>
102+ </ItemGroup>
98103 <PropertyGroup Label="Globals">
99104 <ProjectGuid>{55405FE1-149F-434C-9D72-4B64348D2A08}</ProjectGuid>
100105 <Keyword>Win32Proj</Keyword>
--- a/MUtilities_VS2017.vcxproj.filters
+++ b/MUtilities_VS2017.vcxproj.filters
@@ -194,4 +194,9 @@
194194 <Filter>Resource Files</Filter>
195195 </CustomBuild>
196196 </ItemGroup>
197+ <ItemGroup>
198+ <ResourceCompile Include="MUtilities.rc">
199+ <Filter>Resource Files</Filter>
200+ </ResourceCompile>
201+ </ItemGroup>
197202 </Project>
\ No newline at end of file
--- a/MUtilities_VS2019.vcxproj
+++ b/MUtilities_VS2019.vcxproj
@@ -95,6 +95,11 @@
9595 <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)tmp\$(ProjectName)\QRC_%(Filename).cpp;%(Outputs)</Outputs>
9696 </CustomBuild>
9797 </ItemGroup>
98+ <ItemGroup>
99+ <ResourceCompile Include="MUtilities.rc">
100+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_Static|Win32'">true</ExcludedFromBuild>
101+ </ResourceCompile>
102+ </ItemGroup>
98103 <PropertyGroup Label="Globals">
99104 <ProjectGuid>{55405FE1-149F-434C-9D72-4B64348D2A08}</ProjectGuid>
100105 <Keyword>Win32Proj</Keyword>
--- a/MUtilities_VS2019.vcxproj.filters
+++ b/MUtilities_VS2019.vcxproj.filters
@@ -194,4 +194,9 @@
194194 <Filter>Resource Files</Filter>
195195 </CustomBuild>
196196 </ItemGroup>
197+ <ItemGroup>
198+ <ResourceCompile Include="MUtilities.rc">
199+ <Filter>Resource Files</Filter>
200+ </ResourceCompile>
201+ </ItemGroup>
197202 </Project>
\ No newline at end of file
--- a/src/Config.h
+++ b/src/Config.h
@@ -32,3 +32,13 @@
3232 #define VER_MUTILS_MAJOR 1
3333 #define VER_MUTILS_MINOR_HI 1
3434 #define VER_MUTILS_MINOR_LO 2
35+#define VER_MUTILS_PATCH 0
36+
37+///////////////////////////////////////////////////////////////////////////////
38+// Helper macros (aka: having fun with the C pre-processor)
39+///////////////////////////////////////////////////////////////////////////////
40+
41+#define VER_MUTILS_STR_HLP1(X) #X
42+#define VER_MUTILS_STR_HLP2(W,X,Y,Z) VER_MUTILS_STR_HLP1(v##W.X##Y-Z)
43+#define VER_MUTILS_STR_HLP3(W,X,Y,Z) VER_MUTILS_STR_HLP2(W,X,Y,Z)
44+#define VER_MUTILS_STR VER_MUTILS_STR_HLP3(VER_MUTILS_MAJOR,VER_MUTILS_MINOR_HI,VER_MUTILS_MINOR_LO,VER_MUTILS_PATCH)
Show on old repository browser