[Groonga-commit] pgroonga/pgroonga at 74cb03a [master] windows: add version information to DLL

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Mar 6 23:37:05 JST 2016


Kouhei Sutou	2016-03-06 23:37:05 +0900 (Sun, 06 Mar 2016)

  New Revision: 74cb03aebf7d23aeaafbd569698a663fa251f97b
  https://github.com/pgroonga/pgroonga/commit/74cb03aebf7d23aeaafbd569698a663fa251f97b

  Message:
    windows: add version information to DLL
    
    [groonga-dev,03962]
    
    Suggested by Naoki Takami. Thanks!!!

  Added files:
    src/pgroonga.rc.in
  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+9 -0)
===================================================================
--- CMakeLists.txt    2016-03-06 23:32:23 +0900 (0b307b1)
+++ CMakeLists.txt    2016-03-06 23:37:05 +0900 (8a13f44)
@@ -27,6 +27,7 @@ set(PGRN_DOCUMENT_DIR "share/${PGRN_PROJECT_ID}")
 
 file(READ "${CMAKE_CURRENT_SOURCE_DIR}/${PGRN_PROJECT_ID}.control"
   PGRN_CONTROL)
+
 string(REGEX REPLACE "^default_version = '([0-9.]+)'.*" "\\1"
   PGRN_VERSION "${PGRN_CONTROL}")
 string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1"
@@ -36,6 +37,9 @@ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\2"
 string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\3"
   PGRN_VERSION_MICRO "${PGRN_VERSION}")
 
+string(REGEX REPLACE ".*comment = '([^']+)'.*" "\\1"
+  PGRN_DESCRIPTION "${PGRN_CONTROL}")
+
 include_directories(
   "${PGRN_POSTGRESQL_DIR}/include/server/port/win32_msvc"
   "${PGRN_POSTGRESQL_DIR}/include/server/port/win32"
@@ -46,7 +50,12 @@ include_directories(
 link_directories(
   "${PGRN_POSTGRESQL_DIR}/lib")
 
+configure_file(
+  "src/pgroonga.rc.in"
+  "${CMAKE_CURRENT_BINARY_DIR}/src/pgroonga.rc"
+  @ONLY)
 set(PGRN_SOURCES
+  "${CMAKE_CURRENT_BINARY_DIR}/src/pgroonga.rc"
   "src/pgroonga.c"
   "src/pgrn_column_name.c"
   "src/pgrn_convert.c"

  Added: src/pgroonga.rc.in (+28 -0) 100644
===================================================================
--- /dev/null
+++ src/pgroonga.rc.in    2016-03-06 23:37:05 +0900 (b730d43)
@@ -0,0 +1,28 @@
+#include <windows.h>
+
+#define LANG_CODE_US_ENGLISH 0x0409
+#define CHARSET_UNICODE 0x04b0
+#define US_ENGLISH_UNICODE "040904b0"
+
+VS_VERSION_INFO VERSIONINFO
+FILEVERSION     0, �� PGRN_VERSION_MAJOR@, �� PGRN_VERSION_MINOR@, �� PGRN_VERSION_MICRO@
+PRODUCTVERSION  0, �� PGRN_VERSION_MAJOR@, �� PGRN_VERSION_MINOR@, �� PGRN_VERSION_MICRO@
+BEGIN
+  BLOCK "StringFileInfo"
+  BEGIN
+    BLOCK US_ENGLISH_UNICODE
+    BEGIN
+      VALUE "CompanyName", "@PGRN_VENDOR@"
+      VALUE "FileDescription", "@PGRN_DESCRIPTION@"
+      VALUE "FileVersion", "@PGRN_VERSION@"
+      VALUE "InternalName", "@PGRN_PROJECT_ID@"
+      VALUE "OriginalFilename", "@PGRN_PROJECT_ID �� .dll"
+      VALUE "ProductName", "@PGRN_PROJECT_NAME@"
+      VALUE "ProductVersion", "@PGRN_VERSION@"
+    END
+  END
+  BLOCK "VarFileInfo"
+  BEGIN
+    VALUE "Translation", LANG_CODE_US_ENGLISH, CHARSET_UNICODE
+  END
+END
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index