Author: wrowe Date: Mon Feb 7 15:28:14 2005 New Revision: 151780 URL: http://svn.apache.org/viewcvs?view=rev&rev=151780 Log:
This is (part of) the point to apr_release.h, although that name is certainly subject to discussion. Elimiate use of win32ver.awk for creating libapr.rc. Simply pull in the cpp macros from apr_release.h. The issue is that we could not do this with apr_version.h due to how complex the c grammer has become. We need a lightweight c preprocessor file for the resource compiler (rc) to parse. Added: apr/apr/trunk/libapr.rc Modified: apr/apr/trunk/libapr.dsp Modified: apr/apr/trunk/libapr.dsp URL: http://svn.apache.org/viewcvs/apr/apr/trunk/libapr.dsp?view=diff&r1=151779&r2=151780 ============================================================================== --- apr/apr/trunk/libapr.dsp (original) +++ apr/apr/trunk/libapr.dsp Mon Feb 7 15:28:14 2005 @@ -47,7 +47,7 @@ # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o /win32 "NUL" # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o /win32 "NUL" # ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" /I "./include" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo @@ -73,7 +73,7 @@ # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o /win32 "NUL" # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o /win32 "NUL" # ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" /I "./include" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo @@ -636,37 +636,6 @@ # Begin Source File SOURCE=.\libapr.rc -# End Source File -# Begin Source File - -SOURCE=.\build\win32ver.awk - -!IF "$(CFG)" == "libapr - Win32 Release" - -# PROP Ignore_Default_Tool 1 -USERDEP__WIN32="./include/apr_version.h" -# Begin Custom Build - Creating Version Resource -InputPath=.\build\win32ver.awk - -".\libapr.rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - awk -f ./build/win32ver.awk libapr.dll "Apache Portability Runtime Library" ./include/apr_version.h > .\libapr.rc - -# End Custom Build - -!ELSEIF "$(CFG)" == "libapr - Win32 Debug" - -# PROP Ignore_Default_Tool 1 -USERDEP__WIN32="./include/apr_version.h" -# Begin Custom Build - Creating Version Resource -InputPath=.\build\win32ver.awk - -".\libapr.rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - awk -f ./build/win32ver.awk libapr.dll "Apache Portability Runtime Library" ./include/apr_version.h > .\libapr.rc - -# End Custom Build - -!ENDIF - # End Source File # End Target # End Project Added: apr/apr/trunk/libapr.rc URL: http://svn.apache.org/viewcvs/apr/apr/trunk/libapr.rc?view=auto&rev=151780 ============================================================================== --- apr/apr/trunk/libapr.rc (added) +++ apr/apr/trunk/libapr.rc Mon Feb 7 15:28:14 2005 @@ -0,0 +1,35 @@ +#include "apr_release.h" + +1 VERSIONINFO + FILEVERSION APR_VERSION_STRING_CSV,0 + PRODUCTVERSION APR_VERSION_STRING_CSV,0 + FILEFLAGSMASK 0x3fL +#if defined(_DEBUG) + FILEFLAGS 0x01L +#else + FILEFLAGS 0x00L +#endif + FILEOS 0x40004L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "Comments", "Licensed 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\r\n\r\nhttp://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless 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.\0" + VALUE "CompanyName", "Apache Software Foundation\0" + VALUE "FileDescription", "Apache Portability Runtime Library\0" + VALUE "FileVersion", APR_VERSION_STRING "\0" + VALUE "InternalName", "libapr\0" + VALUE "LegalCopyright", "Copyright 2000-2005 The Apache Software Foundation or its licensors, as applicable.\0" + VALUE "OriginalFilename", "libapr.dll\0" + VALUE "ProductName", "Apache Portablity Runtime Project\0" + VALUE "ProductVersion", APR_VERSION_STRING "\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END