Author: jerenkrantz Date: Tue Mar 15 20:25:48 2005 New Revision: 157664 URL: http://svn.apache.org/viewcvs?view=rev&rev=157664 Log: Fix libapriconv.rc for Win32 release builds. Also sync up CHANGES and bump trunk to 1.1.0-dev.
Added: apr/apr-iconv/trunk/libapriconv.rc (with props) Modified: apr/apr-iconv/trunk/CHANGES apr/apr-iconv/trunk/include/api_version.h apr/apr-iconv/trunk/libapriconv.dsp Modified: apr/apr-iconv/trunk/CHANGES URL: http://svn.apache.org/viewcvs/apr/apr-iconv/trunk/CHANGES?view=diff&r1=157663&r2=157664 ============================================================================== --- apr/apr-iconv/trunk/CHANGES (original) +++ apr/apr-iconv/trunk/CHANGES Tue Mar 15 20:25:48 2005 @@ -1,4 +1,12 @@ -Changes with APR-ICONV 1.0 +Changes with APR-ICONV 1.1 + +Changes with APR-ICONV 1.0.2 + + *) Fix libapriconv.rc for Win32 builds [William Rowe, Justin Erenkrantz] + +Changes with APR-ICONV 1.0.1 + +Changes with APR-ICONV 1.0.0 *) Add the possiblity of a DESTDIR prefix to Makefile.in to make it consistent with the behaviour of apr and apr-util. [Graham Leggett] Modified: apr/apr-iconv/trunk/include/api_version.h URL: http://svn.apache.org/viewcvs/apr/apr-iconv/trunk/include/api_version.h?view=diff&r1=157663&r2=157664 ============================================================================== --- apr/apr-iconv/trunk/include/api_version.h (original) +++ apr/apr-iconv/trunk/include/api_version.h Tue Mar 15 20:25:48 2005 @@ -16,18 +16,9 @@ #ifndef API_VERSION_H #define API_VERSION_H -#include "apr.h" -#include "apr_version.h" - -#include "apr_iconv.h" - -#ifdef __cplusplus -extern "C" { -#endif - /** * @file api_version.h - * @brief + * @brief APR-iconv Versioning Interface * * APR-iconv's Version * @@ -45,6 +36,7 @@ * http://apr.apache.org/versioning.html */ + /* The numeric compile-time version constants. These constants are the * authoritative version numbers for API. */ @@ -56,31 +48,72 @@ */ #define API_MAJOR_VERSION 1 -/** +/** minor version * Minor API changes that do not cause binary compatibility problems. - * Should be reset to 0 when upgrading API_MAJOR_VERSION + * Reset to 0 when upgrading API_MAJOR_VERSION */ -#define API_MINOR_VERSION 0 +#define API_MINOR_VERSION 1 -/** patch level */ -#define API_PATCH_VERSION 1 +/** patch level + * The Patch Level never includes API changes, simply bug fixes. + * Reset to 0 when upgrading API_MINOR_VERSION + */ +#define API_PATCH_VERSION 0 /** - * This symbol is defined for internal, "development" copies of API. This - * symbol will be #undef'd for releases. + * The symbol API_IS_DEV_VERSION is only defined for internal, + * "development" copies of API. It is undefined for released versions + * of API. */ #define API_IS_DEV_VERSION +#if defined(API_IS_DEV_VERSION) || defined(DOXYGEN) +/** Internal: string form of the "is dev" flag */ +#define API_IS_DEV_STRING "-dev" +#else +#define API_IS_DEV_STRING "" +#endif + +#ifndef API_STRINGIFY +/** Properly quote a value as a string in the C preprocessor */ +#define API_STRINGIFY(n) API_STRINGIFY_HELPER(n) +/** Helper macro for API_STRINGIFY */ +#define API_STRINGIFY_HELPER(n) #n +#endif + /** The formatted string of API's version */ #define API_VERSION_STRING \ - APR_STRINGIFY(API_MAJOR_VERSION) "." \ - APR_STRINGIFY(API_MINOR_VERSION) "." \ - APR_STRINGIFY(API_PATCH_VERSION) \ + API_STRINGIFY(API_MAJOR_VERSION) "." \ + API_STRINGIFY(API_MINOR_VERSION) "." \ + API_STRINGIFY(API_PATCH_VERSION) \ API_IS_DEV_STRING +/** An alternative formatted string of APR's version */ +/* macro for Win32 .rc files using numeric csv representation */ +#define API_VERSION_STRING_CSV API_MAJOR_VERSION ##, \ + ##API_MINOR_VERSION ##, \ + ##API_PATCH_VERSION + + +#ifndef API_VERSION_ONLY + +/* The C language API to access the version at run time, + * as opposed to compile time. API_VERSION_ONLY may be defined + * externally when preprocessing apr_version.h to obtain strictly + * the C Preprocessor macro declarations. + */ + +#include "apr_version.h" + +#include "apr_iconv.h" + +#ifdef __cplusplus +extern "C" { +#endif + /** - * Return APR-util's version information information in a numeric form. + * Return APR-iconv's version information information in a numeric form. * * @param pvsn Pointer to a version structure for returning the version * information. @@ -90,16 +123,10 @@ /** Return API's version information as a string. */ API_DECLARE(const char *) api_version_string(void); - -/** Internal: string form of the "is dev" flag */ -#ifdef API_IS_DEV_VERSION -#define API_IS_DEV_STRING "-dev" -#else -#define API_IS_DEV_STRING "" -#endif - #ifdef __cplusplus } #endif -#endif /* API_VERSION_H */ +#endif /* ndef API_VERSION_ONLY */ + +#endif /* ndef API_VERSION_H */ Modified: apr/apr-iconv/trunk/libapriconv.dsp URL: http://svn.apache.org/viewcvs/apr/apr-iconv/trunk/libapriconv.dsp?view=diff&r1=157663&r2=157664 ============================================================================== --- apr/apr-iconv/trunk/libapriconv.dsp (original) +++ apr/apr-iconv/trunk/libapriconv.dsp Tue Mar 15 20:25:48 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" /d "API_VERSION_ONLY" /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" /d "API_VERSION_ONLY" /I "./include" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo @@ -147,36 +147,6 @@ SOURCE=.\libapriconv.rc # End Source File -# Begin Source File - -SOURCE=..\apr\build\win32ver.awk - -!IF "$(CFG)" == "libapriconv - Win32 Release" - -# PROP Ignore_Default_Tool 1 -USERDEP__WIN32="./include/api_version.h" -# Begin Custom Build - Creating Version Resource -InputPath=..\apr\build\win32ver.awk - -".\libapriconv.rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - awk -f ../apr/build/win32ver.awk libapriconv.dll "Apache APR I18N Conversion Library" ./include/api_version.h > .\libapriconv.rc - -# End Custom Build - -!ELSEIF "$(CFG)" == "libapriconv - Win32 Debug" - -# PROP Ignore_Default_Tool 1 -USERDEP__WIN32="./include/api_version.h" -# Begin Custom Build - Creating Version Resource -InputPath=..\apr\build\win32ver.awk - -".\libapriconv.rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - awk -f ../apr/build/win32ver.awk libapriconv.dll "Apache APR I18N Conversion Library" ./include/api_version.h > .\libapriconv.rc - -# End Custom Build -!ENDIF - -# End Source File # End Target # End Project Added: apr/apr-iconv/trunk/libapriconv.rc URL: http://svn.apache.org/viewcvs/apr/apr-iconv/trunk/libapriconv.rc?view=auto&rev=157664 ============================================================================== --- apr/apr-iconv/trunk/libapriconv.rc (added) +++ apr/apr-iconv/trunk/libapriconv.rc Tue Mar 15 20:25:48 2005 @@ -0,0 +1,54 @@ +#include "api_version.h" + +#define API_COPYRIGHT "Copyright 2000-2005 The Apache Software " \ + "Foundation or its licensors, as applicable." + +#define API_LICENSE "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\n" \ + "http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n" \ + "Unless 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." + +#define API_DLL_BASENAME "libapriconv-" API_STRINGIFY(API_MAJOR_VERSION) + + +1 VERSIONINFO + FILEVERSION API_VERSION_STRING_CSV,0 + PRODUCTVERSION API_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", API_LICENSE "\0" + VALUE "CompanyName", "Apache Software Foundation\0" + VALUE "FileDescription", "Apache Portable Runtime Library\0" + VALUE "FileVersion", API_VERSION_STRING "\0" + VALUE "InternalName", API_DLL_BASENAME "\0" + VALUE "LegalCopyright", API_COPYRIGHT "\0" + VALUE "OriginalFilename", API_DLL_BASENAME ".dll\0" + VALUE "ProductName", "Apache Portable Runtime Project\0" + VALUE "ProductVersion", API_VERSION_STRING "\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END Propchange: apr/apr-iconv/trunk/libapriconv.rc ------------------------------------------------------------------------------ svn:eol-style = CRLF