apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1523277 - in /apr/apr/trunk: CMakeLists.txt README.cmake libapr.rc
Date Sat, 14 Sep 2013 17:04:55 GMT
Author: trawick
Date: Sat Sep 14 17:04:54 2013
New Revision: 1523277

URL: http://svn.apache.org/r1523277
Log:
Bring in APR-util's DLL_NAME feature, used to provide a specific name
for DSO modules as the Window's File Description.  This was lost with
the merge of APR-util into APR.

Set DLL_NAME in the cmake-based build.  (The Visual Studio build already
sets it.)

The APR-util 1.5.x cmake list already sets it.

Modified:
    apr/apr/trunk/CMakeLists.txt
    apr/apr/trunk/README.cmake
    apr/apr/trunk/libapr.rc

Modified: apr/apr/trunk/CMakeLists.txt
URL: http://svn.apache.org/viewvc/apr/apr/trunk/CMakeLists.txt?rev=1523277&r1=1523276&r2=1523277&view=diff
==============================================================================
--- apr/apr/trunk/CMakeLists.txt (original)
+++ apr/apr/trunk/CMakeLists.txt Sat Sep 14 17:04:54 2013
@@ -435,6 +435,7 @@ IF(APU_HAVE_CRYPTO)
   SET(install_targets ${install_targets} apr_crypto_openssl-2)
   SET(install_bin_pdb ${install_bin_pdb} ${PROJECT_BINARY_DIR}/apr_crypto_openssl-2.pdb)
   SET_TARGET_PROPERTIES(apr_crypto_openssl-2 PROPERTIES INCLUDE_DIRECTORIES "${APR_INCLUDE_DIRECTORIES};${OPENSSL_INCLUDE_DIR}")
+  SET_TARGET_PROPERTIES(apr_crypto_openssl-2 PROPERTIES COMPILE_FLAGS "-DDLL_NAME=\"\\\"apr_crypto_openssl\\\"\"")
   TARGET_LINK_LIBRARIES(apr_crypto_openssl-2 libapr-2 ${APR_SYSTEM_LIBS} ${OPENSSL_LIBRARIES})
 ENDIF()
 
@@ -445,6 +446,7 @@ IF(APU_HAVE_ODBC)
   TARGET_LINK_LIBRARIES(apr_dbd_odbc-2 libapr-2 ${APR_SYSTEM_LIBS} odbc32 odbccp32)
   SET_PROPERTY(TARGET apr_dbd_odbc-2 APPEND PROPERTY LINK_FLAGS /export:apr_dbd_odbc_driver)
   SET_TARGET_PROPERTIES(apr_dbd_odbc-2 PROPERTIES COMPILE_DEFINITIONS "APU_HAVE_ODBC;HAVE_SQL_H;APR_DECLARE_EXPORT;APU_DSO_MODULE_BUILD")
+  SET_TARGET_PROPERTIES(apr_dbd_odbc-2 PROPERTIES COMPILE_FLAGS "-DDLL_NAME=\"\\\"apr_dbd_odbc\\\"\"")
 ENDIF()
 
 IF(APR_BUILD_TESTAPR)

Modified: apr/apr/trunk/README.cmake
URL: http://svn.apache.org/viewvc/apr/apr/trunk/README.cmake?rev=1523277&r1=1523276&r2=1523277&view=diff
==============================================================================
--- apr/apr/trunk/README.cmake (original)
+++ apr/apr/trunk/README.cmake Sat Sep 14 17:04:54 2013
@@ -144,9 +144,6 @@ Known Bugs and Limitations
 * APR-CHANGES.txt, APR-LICENSE.txt, and APR-NOTICE.txt are not installed,
   though perhaps that is a job for a higher-level script.
 * test/internal/testucs is not built.
-* APR trunk's libapr.rc is missing the DLL_NAME switch from APR-util 1.x
-  (affects both Windows build systems), and the cmake build system isn't
-  setting it.
 
 Generally:
 

Modified: apr/apr/trunk/libapr.rc
URL: http://svn.apache.org/viewvc/apr/apr/trunk/libapr.rc?rev=1523277&r1=1523276&r2=1523277&view=diff
==============================================================================
--- apr/apr/trunk/libapr.rc (original)
+++ apr/apr/trunk/libapr.rc Sat Sep 14 17:04:54 2013
@@ -14,7 +14,13 @@
   "See the License for the specific language governing permissions and " \
   "limitations under the License."
 
+#ifdef DLL_NAME
+#define APR_DLL_BASENAME APR_STRINGIFY(DLL_NAME) "-" APR_STRINGIFY(APR_MAJOR_VERSION)
+#define APR_DLL_DESCRIPTION "Apache Portable Runtime " APR_STRINGIFY(DLL_NAME) " Module"
+#else
 #define APR_DLL_BASENAME "libapr-" APR_STRINGIFY(APR_MAJOR_VERSION)
+#define APR_DLL_DESCRIPTION "Apache Portable Runtime Library"
+#endif
 
 
 1 VERSIONINFO
@@ -48,7 +54,7 @@ BEGIN
     BEGIN
       VALUE "Comments", APR_LICENSE "\0"
       VALUE "CompanyName", "Apache Software Foundation\0"
-      VALUE "FileDescription", "Apache Portable Runtime Library\0"
+      VALUE "FileDescription", APR_DLL_DESCRIPTION "\0"
       VALUE "FileVersion", APR_VERSION_STRING "\0"
       VALUE "InternalName", APR_DLL_BASENAME "\0"
       VALUE "LegalCopyright", APR_COPYRIGHT "\0"



Mime
View raw message