|
1 /////////////////////////// |
|
2 // |
|
3 // Version |
|
4 // |
|
5 #include <windows.h> |
|
6 |
|
7 #include <stl/_stlport_version.h> |
|
8 |
|
9 /* On some evc3/evc4 targets the windows.h doesn't include winver.h or doesn't |
|
10 * define needed file version flags, so we redefine them here. |
|
11 */ |
|
12 #ifndef VS_FF_DEBUG |
|
13 # define VS_FF_DEBUG 0x00000001L |
|
14 #endif |
|
15 |
|
16 #ifndef VOS__WINDOWS32 |
|
17 # define VOS__WINDOWS32 0x00000004L |
|
18 #endif |
|
19 |
|
20 #ifndef VFT_DLL |
|
21 # define VFT_DLL 0x00000002L |
|
22 #endif |
|
23 |
|
24 #ifndef VFT2_UNKNOWN |
|
25 # define VFT2_UNKNOWN 0x00000000L |
|
26 #endif |
|
27 |
|
28 #define STRINGIZE(X) STRINGIZE_AUX(X) |
|
29 #define STRINGIZE_AUX(X) #X |
|
30 |
|
31 #define VERSION_ID _STLPORT_MAJOR, _STLPORT_MINOR, _STLPORT_PATCHLEVEL, 0 |
|
32 #if !defined (__BORLANDC__) |
|
33 # define VERSION_STR STRINGIZE(_STLPORT_MAJOR._STLPORT_MINOR._STLPORT_PATCHLEVEL) |
|
34 #else |
|
35 /* Borland precompiler happen weird character when trying to transform a |
|
36 * macro containing 0 in a character string so we use a workaround for this |
|
37 * value. We do not check the major version that will never be 0 again. |
|
38 */ |
|
39 # if (_STLPORT_MINOR == 0) |
|
40 # define _STLP_MINOR "0" |
|
41 # else |
|
42 # define _STLP_MINOR STRINGIZE(_STLPORT_MINOR) |
|
43 # endif |
|
44 # if (_STLPORT_PATCHLEVEL == 0) |
|
45 # define _STLP_PATCH "0" |
|
46 # else |
|
47 # define _STLP_PATCH STRINGIZE(_STLPORT_PATCHLEVEL) |
|
48 # endif |
|
49 # define VERSION_STR STRINGIZE(_STLPORT_MAJOR) "." _STLP_MINOR "." _STLP_PATCH "\0" |
|
50 #endif |
|
51 |
|
52 #if defined (__GNUC__) |
|
53 # define LIB_MOTIF "libstlport" |
|
54 #else |
|
55 # define LIB_MOTIF "stlport" |
|
56 #endif |
|
57 #define DLLNAME LIB_MOTIF "." STRINGIZE(_STLPORT_MAJOR) "." STRINGIZE(_STLPORT_MINOR) ".dll\0" |
|
58 #define DLLNAME2(buildstr) LIB_MOTIF "" STRINGIZE(buildstr) "." STRINGIZE(_STLPORT_MAJOR) "." STRINGIZE(_STLPORT_MINOR) ".dll\0" |
|
59 |
|
60 VS_VERSION_INFO VERSIONINFO |
|
61 FILEVERSION VERSION_ID |
|
62 PRODUCTVERSION VERSION_ID |
|
63 FILEFLAGSMASK 0x3fL |
|
64 |
|
65 FILEFLAGS VS_FF_DEBUG |
|
66 |
|
67 FILEOS VOS__WINDOWS32 |
|
68 FILETYPE VFT_DLL |
|
69 FILESUBTYPE VFT2_UNKNOWN |
|
70 BEGIN |
|
71 BLOCK "StringFileInfo" |
|
72 BEGIN |
|
73 BLOCK "040904B0" |
|
74 BEGIN |
|
75 VALUE "CompanyName", "STLport Consulting, Inc.\0" |
|
76 VALUE "FileDescription", "STLport\0" |
|
77 VALUE "FileVersion", VERSION_STR |
|
78 VALUE "InternalName", "STLPORT.DLL\0" |
|
79 VALUE "LegalCopyright", "Copyright (C) Boris Fomitchev\0" |
|
80 #if !defined (BUILD) |
|
81 VALUE "OriginalFilename", DLLNAME |
|
82 #else |
|
83 VALUE "OriginalFilename", DLLNAME2(BUILD) |
|
84 #endif |
|
85 VALUE "ProductName", "STLport Standard ANSI C++ Library\0" |
|
86 VALUE "ProductVersion", VERSION_STR |
|
87 #if defined (BUILD_INFOS) |
|
88 VALUE "SpecialBuild", STRINGIZE(COMP) " " STRINGIZE(BUILD_INFOS) "\0" |
|
89 #endif |
|
90 END |
|
91 END |
|
92 BLOCK "VarFileInfo" |
|
93 BEGIN |
|
94 VALUE "Translation", 0x409, 1200 |
|
95 END |
|
96 END |