From 9843fe043b66004bf183a38a0d3d48627c7ec086 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Thu, 8 Jul 2010 22:14:54 +0000 Subject: QPID-2711 - Patch from Chuck Rolke Add version and icon resources to Windows C++ exe/dll files git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@961962 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/windows/resources/qpid-icon.ico | Bin 0 -> 52972 bytes cpp/src/windows/resources/template-resource.rc | 122 +++++++++++++++++++++++++ cpp/src/windows/resources/version-resource.h | 35 +++++++ 3 files changed, 157 insertions(+) create mode 100644 cpp/src/windows/resources/qpid-icon.ico create mode 100644 cpp/src/windows/resources/template-resource.rc create mode 100644 cpp/src/windows/resources/version-resource.h (limited to 'cpp/src/windows') diff --git a/cpp/src/windows/resources/qpid-icon.ico b/cpp/src/windows/resources/qpid-icon.ico new file mode 100644 index 0000000000..112f5d8f1f Binary files /dev/null and b/cpp/src/windows/resources/qpid-icon.ico differ diff --git a/cpp/src/windows/resources/template-resource.rc b/cpp/src/windows/resources/template-resource.rc new file mode 100644 index 0000000000..725d1c9391 --- /dev/null +++ b/cpp/src/windows/resources/template-resource.rc @@ -0,0 +1,122 @@ +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +// + +#include "version-resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "afxres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (U.S.) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "version-resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION ${winverFileVersionBinary} + PRODUCTVERSION ${winverProductVersionBinary} + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "FileDescription", "${winverFileDescription}" + VALUE "FileVersion", "${winverFileVersionString}" + VALUE "LegalCopyright", "${winverLegalCopyright}" + VALUE "InternalName", "${winverInternalName}" + VALUE "OriginalFilename", "${winverOriginalFilename}" + VALUE "ProductName", "${winverProductName}" + VALUE "ProductVersion", "${winverProductVersionString}" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_ICON1 ICON "qpid-icon.ico" + +#endif // English (U.S.) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/cpp/src/windows/resources/version-resource.h b/cpp/src/windows/resources/version-resource.h new file mode 100644 index 0000000000..bf942abbaf --- /dev/null +++ b/cpp/src/windows/resources/version-resource.h @@ -0,0 +1,35 @@ +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +// + +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Preserved for common usage by any Qpid exe/dll. + +#define IDI_ICON1 101 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 104 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif -- cgit v1.2.1