[Ttssh2-commit] [8325] MinGWでビルドできるよう調整

scmno****@osdn***** scmno****@osdn*****
2019年 10月 22日 (火) 00:30:36 JST


Revision: 8325
          https://osdn.net/projects/ttssh2/scm/svn/commits/8325
Author:   zmatsuo
Date:     2019-10-22 00:30:35 +0900 (Tue, 22 Oct 2019)
Log Message:
-----------
MinGWでビルドできるよう調整

- Linux上でビルドできるようにした(case sensitiveなファイルシステム対応)
- typo 修正 SOURCE -> SOURCES

Modified Paths:
--------------
    branches/unicode_buf/installer/CMakeLists.txt
    branches/unicode_buf/ttssh2/ttxssh/CMakeLists.txt

-------------- next part --------------
Modified: branches/unicode_buf/installer/CMakeLists.txt
===================================================================
--- branches/unicode_buf/installer/CMakeLists.txt	2019-10-20 15:05:05 UTC (rev 8324)
+++ branches/unicode_buf/installer/CMakeLists.txt	2019-10-21 15:30:35 UTC (rev 8325)
@@ -150,25 +150,25 @@
       "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Russian.lng"
       "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Simplified Chinese.lng"
       "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Traditional Chinese.lng"
-    SOURCE
-    ${RELEASE_DIR}/lang_utf16le/Default.lng
-    ${RELEASE_DIR}/lang_utf16le/English.lng
-    ${RELEASE_DIR}/lang_utf16le/French.lng
-    ${RELEASE_DIR}/lang_utf16le/German.lng
-    ${RELEASE_DIR}/lang_utf16le/Japanese.lng
-    ${RELEASE_DIR}/lang_utf16le/Korean.lng
-    ${RELEASE_DIR}/lang_utf16le/Russian.lng
-    "${RELEASE_DIR}/lang_utf16le/Simplified Chinese.lng"
-    "${RELEASE_DIR}/lang_utf16le/Traditional Chinese.lng"
-    ${RELEASE_DIR}/lang/Default.lng
-    ${RELEASE_DIR}/lang/English.lng
-    ${RELEASE_DIR}/lang/French.lng
-    ${RELEASE_DIR}/lang/German.lng
-    ${RELEASE_DIR}/lang/Japanese.lng
-    ${RELEASE_DIR}/lang/Korean.lng
-    ${RELEASE_DIR}/lang/Russian.lng
-    "${RELEASE_DIR}/lang/Simplified Chinese.lng"
-    "${RELEASE_DIR}/lang/Traditional Chinese.lng"
+    SOURCES
+      ${RELEASE_DIR}/lang_utf16le/Default.lng
+      ${RELEASE_DIR}/lang_utf16le/English.lng
+      ${RELEASE_DIR}/lang_utf16le/French.lng
+      ${RELEASE_DIR}/lang_utf16le/German.lng
+      ${RELEASE_DIR}/lang_utf16le/Japanese.lng
+      ${RELEASE_DIR}/lang_utf16le/Korean.lng
+      ${RELEASE_DIR}/lang_utf16le/Russian.lng
+      "${RELEASE_DIR}/lang_utf16le/Simplified Chinese.lng"
+      "${RELEASE_DIR}/lang_utf16le/Traditional Chinese.lng"
+      ${RELEASE_DIR}/lang/Default.lng
+      ${RELEASE_DIR}/lang/English.lng
+      ${RELEASE_DIR}/lang/French.lng
+      ${RELEASE_DIR}/lang/German.lng
+      ${RELEASE_DIR}/lang/Japanese.lng
+      ${RELEASE_DIR}/lang/Korean.lng
+      ${RELEASE_DIR}/lang/Russian.lng
+      "${RELEASE_DIR}/lang/Simplified Chinese.lng"
+      "${RELEASE_DIR}/lang/Traditional Chinese.lng"
     )
   add_custom_command(
     OUTPUT
@@ -193,4 +193,70 @@
     COMMAND ${CMAKE_COMMAND} -E copy_directory ${RELEASE_DIR}/lang ${CMAKE_BINARY_DIR}/$<CONFIG>/lang
     COMMAND ${CMAKE_COMMAND} -E copy_directory ${RELEASE_DIR}/lang_utf16le ${CMAKE_BINARY_DIR}/$<CONFIG>/lang_utf16le
     )
+elseif(MINGW)
+  # MinGW
+  add_custom_target(
+    lang_copy ALL
+    DEPENDS
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/Default.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/English.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/French.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/German.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/Japanese.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/Korean.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/Russian.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/Simplified Chinese.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/Traditional Chinese.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/Default.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/English.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/French.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/German.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/Japanese.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/Korean.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/Russian.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/Simplified Chinese.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/Traditional Chinese.lng"
+    SOURCES
+      ${RELEASE_DIR}/lang_utf16le/Default.lng
+      ${RELEASE_DIR}/lang_utf16le/English.lng
+      ${RELEASE_DIR}/lang_utf16le/French.lng
+      ${RELEASE_DIR}/lang_utf16le/German.lng
+      ${RELEASE_DIR}/lang_utf16le/Japanese.lng
+      ${RELEASE_DIR}/lang_utf16le/Korean.lng
+      ${RELEASE_DIR}/lang_utf16le/Russian.lng
+      "${RELEASE_DIR}/lang_utf16le/Simplified Chinese.lng"
+      "${RELEASE_DIR}/lang_utf16le/Traditional Chinese.lng"
+      ${RELEASE_DIR}/lang/Default.lng
+      ${RELEASE_DIR}/lang/English.lng
+      ${RELEASE_DIR}/lang/French.lng
+      ${RELEASE_DIR}/lang/German.lng
+      ${RELEASE_DIR}/lang/Japanese.lng
+      ${RELEASE_DIR}/lang/Korean.lng
+      ${RELEASE_DIR}/lang/Russian.lng
+      "${RELEASE_DIR}/lang/Simplified Chinese.lng"
+      "${RELEASE_DIR}/lang/Traditional Chinese.lng"
+    )
+  add_custom_command(
+    OUTPUT
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/Default.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/English.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/French.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/German.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/Japanese.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/Korean.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/Russian.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/Simplified Chinese.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang/Traditional Chinese.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/Default.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/English.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/French.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/German.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/Japanese.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/Korean.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/Russian.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/Simplified Chinese.lng"
+      "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lang_utf16le/Traditional Chinese.lng"
+    COMMAND ${CMAKE_COMMAND} -E copy_directory ${RELEASE_DIR}/lang ${CMAKE_BINARY_DIR}/lang
+    COMMAND ${CMAKE_COMMAND} -E copy_directory ${RELEASE_DIR}/lang_utf16le ${CMAKE_BINARY_DIR}/lang_utf16le
+    )
 endif()

Modified: branches/unicode_buf/ttssh2/ttxssh/CMakeLists.txt
===================================================================
--- branches/unicode_buf/ttssh2/ttxssh/CMakeLists.txt	2019-10-20 15:05:05 UTC (rev 8324)
+++ branches/unicode_buf/ttssh2/ttxssh/CMakeLists.txt	2019-10-21 15:30:35 UTC (rev 8325)
@@ -155,7 +155,7 @@
   gdi32
   comdlg32
   delayimp
-  Comctl32
+  comctl32
   )
 
 ### create puttyversion.h


Ttssh2-commit メーリングリストの案内