diff options
author | Ard Biesheuvel <abies@php.net> | 2003-09-07 19:59:55 +0000 |
---|---|---|
committer | Ard Biesheuvel <abies@php.net> | 2003-09-07 19:59:55 +0000 |
commit | 6c0e21fc7474617ecaf99584b33ec3be068f4968 (patch) | |
tree | 768aa2d8c6bc6a197504c7b826868e5234f2dec6 | |
parent | 9539471c60f49fe773c200de605655604a5b9f2b (diff) | |
download | php-git-6c0e21fc7474617ecaf99584b33ec3be068f4968.tar.gz |
Add version info to Windows DLL
-rw-r--r-- | ext/interbase/interbase.c | 6 | ||||
-rw-r--r-- | ext/interbase/interbase.dsp | 7 | ||||
-rw-r--r-- | ext/interbase/interbase.rc | 71 |
3 files changed, 82 insertions, 2 deletions
diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c index 9db1371962..e0f4a852bf 100644 --- a/ext/interbase/interbase.c +++ b/ext/interbase/interbase.c @@ -26,7 +26,9 @@ #include "php.h" -#if HAVE_IBASE +#define FILE_REVISION "$Revision$" + +#if HAVE_IBASE && !defined(VERSION_INFO_ONLY) #include "php_ini.h" #include "ext/standard/php_standard.h" @@ -716,7 +718,7 @@ PHP_MINFO_FUNCTION(ibase) php_info_print_table_start(); php_info_print_table_row(2, "Interbase Support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision$"); + php_info_print_table_row(2, "Revision", FILE_REVISION); #ifdef COMPILE_DL_INTERBASE php_info_print_table_row(2, "Dynamic Module", "Yes"); #endif diff --git a/ext/interbase/interbase.dsp b/ext/interbase/interbase.dsp index 0ded651ccc..8f69ce5b88 100644 --- a/ext/interbase/interbase.dsp +++ b/ext/interbase/interbase.dsp @@ -108,6 +108,13 @@ SOURCE=.\php_interbase.h # Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# Begin Source File
+
+SOURCE=.\interbase.rc
+
+# ADD RSC /i "..\.." /i "..\..\main" /i "..\..\win32" /i "..\..\Zend" /i "..\..\TSRM" /d "ZEND_WIN32" /d "WIN32" /d "PHP_WIN32"
+
+# End Source File
# End Group
# End Target
# End Project
diff --git a/ext/interbase/interbase.rc b/ext/interbase/interbase.rc new file mode 100644 index 0000000000..1133439c66 --- /dev/null +++ b/ext/interbase/interbase.rc @@ -0,0 +1,71 @@ +/* + +----------------------------------------------------------------------+ + | PHP Version 4 | + +----------------------------------------------------------------------+ + | Copyright (c) 1997-2003 The PHP Group | + +----------------------------------------------------------------------+ + | This source file is subject to version 3.0 of the PHP license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.php.net/license/3_0.txt. | + | If you did not receive a copy of the PHP license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Author: Ard Biesheuvel <a.k.biesheuvel@its.tudelft.nl> | + +----------------------------------------------------------------------+ + */ + +/* $Id$ */ + +#ifdef APSTUDIO_INVOKED +#error This file cannot be opened from the Visual Studio IDE +#endif + +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +#include "winres.h" +#undef APSTUDIO_READONLY_SYMBOLS + +#include "php_version.h" + +#ifdef _DEBUG +# define BUILD_TYPE "Debug" +#else +# define BUILD_TYPE "Release" +#endif + +#define VERSION_INFO_ONLY +#include "interbase.c" + +#ifndef _MAC + +VS_VERSION_INFO VERSIONINFO + FILEVERSION PHP_MAJOR_VERSION,PHP_MINOR_VERSION,PHP_RELEASE_VERSION,0 + PRODUCTVERSION PHP_MAJOR_VERSION,PHP_MINOR_VERSION,PHP_RELEASE_VERSION,0 + FILEFLAGSMASK 0x3fL + FILEOS 0x40004L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "000004b0" + BEGIN + VALUE "FileDescription", "PHP Interbase module" + VALUE "FileVersion", PHP_VERSION + VALUE "File Revision", FILE_REVISION + VALUE "LegalCopyright", "1997-2003 The PHP Group" + VALUE "ProductName", "PHP" + VALUE "ProductVersion", PHP_VERSION + VALUE "Build Type", BUILD_TYPE + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0, 1200 + END +END + +#endif // !_MAC |