Skip to content

Commit

Permalink
Added versioning to dll and exe files created under windows.
Browse files Browse the repository at this point in the history
#Note that these do not require modification when the version number changes.
#Utilizes the new partitioned version number defines in php_version.h

@ Added version info to the dll and exe files created under Windows. (jtate)
  • Loading branch information
Joseph Tate committed Apr 11, 2002
1 parent ccbf1b8 commit 504b9be
Show file tree
Hide file tree
Showing 10 changed files with 2,852 additions and 2,441 deletions.
4,190 changes: 2,099 additions & 2,091 deletions win32/php4dllts.dsp

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions win32/php4dllts.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
//Microsoft Developer Studio generated resource script.
//
#include "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 DISCARDABLE
BEGIN
"resource.h\0"
END

2 TEXTINCLUDE DISCARDABLE
BEGIN
"#include ""php4dllts.rc2""\r\n"
"\0"
END

3 TEXTINCLUDE DISCARDABLE
BEGIN
"\r\n"
"\0"
END

#endif // APSTUDIO_INVOKED

#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#include "php4dllts.rc2"

/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

61 changes: 61 additions & 0 deletions win32/php4dllts.rc2
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
//
// php4dllts.RC2 - resources Microsoft Visual C++ does not edit directly
//

#ifdef APSTUDIO_INVOKED
#error this file is not editable by Microsoft Visual C++
#endif //APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
// Add manually edited resources here...
#include "../main/php_version.h"

#define XSTRVER4(maj, min, rel, build) #maj "." #min "." #rel "." #build
#define XSTRVER3(maj, min, rel) #maj "." #min "." #rel
#define STRVER4(maj, min, rel, build) XSTRVER4(maj, min, rel, build)
#define STRVER3(maj, min, rel) XSTRVER3(maj, min, rel)

#ifndef _MAC
//Version
VS_VERSION_INFO VERSIONINFO
FILEVERSION PHP_MAJOR_VERSION,PHP_MINOR_VERSION,PHP_RELEASE_VERSION,PHP_RELEASE_VERSION
PRODUCTVERSION PHP_MAJOR_VERSION,PHP_MINOR_VERSION,PHP_RELEASE_VERSION,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS VS_FF_DEBUG
#else
FILEFLAGS 0x0L
#endif
FILEOS VOS__WINDOWS32
FILETYPE VFT_DLL
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "Comments", "\0"
VALUE "CompanyName", "The PHP Group\0"
VALUE "FileDescription", "PHP Script Interpreter\0"
VALUE "FileVersion", STRVER4(PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION, PHP_RELEASE_VERSION)
VALUE "InternalName", "php\0"
VALUE "LegalCopyright", "Copyright � 2002 The PHP Group\0"
VALUE "LegalTrademarks", "php\0"
VALUE "OriginalFilename", "php4ts.dll\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "PHP Thread Safe\0"
VALUE "ProductVersion", STRVER3(PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION)
VALUE "SpecialBuild", PHP_EXTRA_VERSION "\0"
VALUE "URL", "http://www.php.net"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END

#endif // !_MAC

/////////////////////////////////////////////////////////////////////////////
Loading

0 comments on commit 504b9be

Please sign in to comment.