windows-nt/Source/XPSP1/NT/base/win32/fusion/app/version.h

161 lines
3.8 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/**
* Version strings for APP.DLL.
*
* Copyright (c) 2000 Microsoft Corporation
*/
// Standard version includes
#pragma once
#include <winver.h>
#include <ntverp.h>
//
// APP Version
//
// Version numbers can be assigned in newbuild.cmd
//
#ifndef APP_VER_MAJORVERSION
#define APP_VER_MAJORVERSION 1
#endif
#ifndef APP_VER_MINORVERSION
#define APP_VER_MINORVERSION 0
#endif
#ifndef APP_VER_PRODUCTBUILD
#define APP_VER_PRODUCTBUILD 0
#endif
#ifndef APP_VER_PRODUCTBUILD_QFE
#define APP_VER_PRODUCTBUILD_QFE 0
#endif
//
// Allow a component to override values in individual rc files
// by checking if these are already defined
//
#ifndef APP_VER_PRODUCTNAME_STR
#define APP_VER_PRODUCTNAME_STR "Microsoft (R) Application Protocol"
#endif
#ifndef APP_VER_INTERNALNAME_STR
#define APP_VER_INTERNALNAME_STR "APP"
#endif
// the following two are defined in individual RC files:
// APP_VER_ORIGINALFILENAME_STR
// APP_VER_FILEDESCRIPTION_STR
//
// Don't edit the remainder of this file to change version values.
// Edit above instead.
//
#if APPBLDTYPE_FREE
#define APP_BLDTYPE_STR "Free"
#elif APPBLDTYPE_ICECAP
#define APP_BLDTYPE_STR "Icecap"
#elif APPBLDTYPE_RETAIL
#define APP_BLDTYPE_STR "Retail"
#else //APPBLDTYPE_DEBUG
#define APP_BLDTYPE_STR "Debug"
#endif
//
// undefine these values as some are defined in sdk\inc\ntverp.h
//
#ifdef VER_MAJORVERSION
#undef VER_MAJORVERSION
#endif
#ifdef VER_MINORVERSION
#undef VER_MINORVERSION
#endif
#ifdef VER_PRODUCTBUILD
#undef VER_PRODUCTBUILD
#endif
#ifdef VER_PRODUCTBUILD_QFE
#undef VER_PRODUCTBUILD_QFE
#endif
#ifdef VER_PRODUCTNAME_STR
#undef VER_PRODUCTNAME_STR
#endif
#ifdef VER_INTERNALNAME_STR
#undef VER_INTERNALNAME_STR
#endif
#ifdef VER_ORIGINALFILENAME_STR
#undef VER_ORIGINALFILENAME_STR
#endif
#ifdef VER_FILEDESCRIPTION_STR
#undef VER_FILEDESCRIPTION_STR
#endif
#ifdef VER_PRODUCTVERSION_STR
#undef VER_PRODUCTVERSION_STR
#endif
#ifdef VER_PRODUCTVERSION
#undef VER_PRODUCTVERSION
#endif
#ifdef VER_FILEVERSION_STR
#undef VER_FILEVERSION_STR
#endif
#ifdef VER_FILEVERSION
#undef VER_FILEVERSION
#endif
#ifdef VER_FILETYPE
#undef VER_FILETYPE
#endif
#ifdef VER_FILESUBTYPE
#undef VER_FILESUBTYPE
#endif
#define VER_MAJORVERSION APP_VER_MAJORVERSION
#define VER_MINORVERSION APP_VER_MINORVERSION
#define VER_PRODUCTBUILD APP_VER_PRODUCTBUILD
#define VER_PRODUCTBUILD_QFE APP_VER_PRODUCTBUILD_QFE
#define VER_PRODUCTNAME_STR APP_VER_PRODUCTNAME_STR
#define VER_INTERNALNAME_STR APP_VER_INTERNALNAME_STR
#define VER_ORIGINALFILENAME_STR APP_VER_ORIGINALFILENAME_STR
#define VER_FILEDESCRIPTION_STR APP_VER_FILEDESCRIPTION_STR
#define CONCAT5HELPER(a, b, c, d, e) #a "." #b "." #c "." #d " " e
#define CONCAT5(a, b, c, d, e) CONCAT5HELPER(a, b, c, d, e)
#define CONCAT5HELPER_L(a, b, c, d, e) L ## #a L"." L ## #b L"." L ## #c L"." L ## #d L" " L ## e
#define CONCAT5_L(a, b, c, d, e) CONCAT5HELPER_L(a, b, c, d, e)
#define VER_PRODUCTVERSION_STR CONCAT5(VER_MAJORVERSION, VER_MINORVERSION, VER_PRODUCTBUILD, VER_PRODUCTBUILD_QFE, APP_BLDTYPE_STR)
#define VER_PRODUCTVERSION_STR_L CONCAT5_L(VER_MAJORVERSION, VER_MINORVERSION, VER_PRODUCTBUILD, VER_PRODUCTBUILD_QFE, APP_BLDTYPE_STR)
#define VER_PRODUCTVERSION VER_MAJORVERSION,VER_MINORVERSION,VER_PRODUCTBUILD,VER_PRODUCTBUILD_QFE
#define VER_FILEVERSION_STR CONCAT5(VER_MAJORVERSION, VER_MINORVERSION, VER_PRODUCTBUILD, VER_PRODUCTBUILD_QFE, APP_BLDTYPE_STR)
#define VER_FILEVERSION_STR_L CONCAT5_L(VER_MAJORVERSION, VER_MINORVERSION, VER_PRODUCTBUILD, VER_PRODUCTBUILD_QFE, APP_BLDTYPE_STR)
#define VER_FILEVERSION VER_MAJORVERSION,VER_MINORVERSION,VER_PRODUCTBUILD,VER_PRODUCTBUILD_QFE
#define VER_FILETYPE VFT_DLL
#define VER_FILESUBTYPE VFT2_UNKNOWN
// Standard NT build defines
#include <common.ver>