Skip to content

Commit 1373a54

Browse files
committed
Add icon and version info resource for the Icinga binary.
Refs Icinga#4865
1 parent d930b1e commit 1373a54

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

icinga-app/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
# along with this program; if not, write to the Free Software Foundation
1616
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
1717

18-
add_executable(icinga-app icinga.cpp)
18+
if(MSVC)
19+
set(WindowsSources icinga.rc)
20+
else()
21+
set(WindowsSources "")
22+
endif()
23+
24+
add_executable(icinga-app icinga.cpp ${WindowsSources})
1925

2026
include_directories(${Boost_INCLUDE_DIRS})
2127
target_link_libraries(icinga-app ${Boost_LIBRARIES} base config)

icinga-app/icinga.ico

766 Bytes
Binary file not shown.

icinga-app/icinga.rc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#include <windows.h>
2+
#include "icinga-version.h"
3+
4+
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
5+
6+
100 ICON "icinga.ico"
7+
8+
VS_VERSION_INFO VERSIONINFO
9+
FILEVERSION 1,0,0,0
10+
PRODUCTVERSION 1,0,0,0
11+
FILEOS VOS__WINDOWS32
12+
FILETYPE VFT_APP
13+
FILESUBTYPE VFT2_UNKNOWN
14+
BEGIN
15+
BLOCK "StringFileInfo"
16+
BEGIN
17+
BLOCK "040904E4"
18+
BEGIN
19+
VALUE "CompanyName", "Icinga Development Team"
20+
VALUE "FileDescription", "Icinga 2"
21+
VALUE "FileVersion", VERSION
22+
VALUE "InternalName", "icinga2.exe"
23+
VALUE "LegalCopyright", "� Icinga Development Team"
24+
VALUE "OriginalFilename", "icinga2.exe"
25+
VALUE "ProductName", "Icinga 2"
26+
VALUE "ProductVersion", VERSION
27+
END
28+
END
29+
30+
BLOCK "VarFileInfo"
31+
BEGIN
32+
VALUE "Translation", 0x409, 0x04E4
33+
END
34+
END

0 commit comments

Comments
 (0)