[Ttssh2-commit] [7990] cmakeでスナップショットが作成できるようにした

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2019年 8月 20日 (火) 00:27:06 JST


Revision: 7990
          https://osdn.net/projects/ttssh2/scm/svn/commits/7990
Author:   zmatsuo
Date:     2019-08-20 00:27:06 +0900 (Tue, 20 Aug 2019)
Log Message:
-----------
cmakeでスナップショットが作成できるようにした

- VS2005Express,mingwでもスナップショットが作成できるようになった

Modified Paths:
--------------
    trunk/CMakeLists.txt
    trunk/TTProxy/CMakeLists.txt
    trunk/TTXKanjiMenu/CMakeLists.txt
    trunk/teraterm/keycode/CMakeLists.txt
    trunk/teraterm/teraterm/CMakeLists.txt
    trunk/teraterm/ttpcmn/CMakeLists.txt
    trunk/teraterm/ttpfile/CMakeLists.txt
    trunk/teraterm/ttpmacro/CMakeLists.txt
    trunk/teraterm/ttpset/CMakeLists.txt
    trunk/teraterm/ttptek/CMakeLists.txt
    trunk/ttpmenu/CMakeLists.txt
    trunk/ttssh2/ttxssh/CMakeLists.txt

Added Paths:
-----------
    trunk/installer/CMakeLists.txt

-------------- next part --------------
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt	2019-08-19 15:11:54 UTC (rev 7989)
+++ trunk/CMakeLists.txt	2019-08-19 15:27:06 UTC (rev 7990)
@@ -12,6 +12,9 @@
 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
 
+string(TIMESTAMP SNAPSHOT_DIR "snapshot-%Y%m%d_%H%M%S")
+set(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}/${SNAPSHOT_DIR}")
+
 # _WIN32_WINNT_WIN10 0x0a00
 set(_WIN32_WINNT "0x0a00")
 if(MSVC)
@@ -106,6 +109,7 @@
 if(${ENABLE_TTXSAMPLES})
   add_subdirectory(TTXSamples)
 endif()
+add_subdirectory(installer)
 
 ####
 # ソースツリー内に生成ファイルが存在していたら削除する

Modified: trunk/TTProxy/CMakeLists.txt
===================================================================
--- trunk/TTProxy/CMakeLists.txt	2019-08-19 15:11:54 UTC (rev 7989)
+++ trunk/TTProxy/CMakeLists.txt	2019-08-19 15:27:06 UTC (rev 7990)
@@ -109,3 +109,9 @@
   gdi32
   comdlg32
   )
+
+install(
+  TARGETS ttproxy
+  RUNTIME
+  DESTINATION .
+  )

Modified: trunk/TTXKanjiMenu/CMakeLists.txt
===================================================================
--- trunk/TTXKanjiMenu/CMakeLists.txt	2019-08-19 15:11:54 UTC (rev 7989)
+++ trunk/TTXKanjiMenu/CMakeLists.txt	2019-08-19 15:27:06 UTC (rev 7990)
@@ -37,4 +37,8 @@
   ws2_32
   )
 
-
+install(
+  TARGETS ttxkanjimenu
+  RUNTIME
+  DESTINATION .
+  )

Added: trunk/installer/CMakeLists.txt
===================================================================
--- trunk/installer/CMakeLists.txt	                        (rev 0)
+++ trunk/installer/CMakeLists.txt	2019-08-19 15:27:06 UTC (rev 7990)
@@ -0,0 +1,34 @@
+
+install(
+  DIRECTORY release/
+  DESTINATION .
+  PATTERN *~ EXCLUDE
+  PATTERN TERATERM.INI EXCLUDE
+  )
+
+install(
+  FILES release/EDITOR.CNF
+  DESTINATION .
+  RENAME KEYBOARD.CNF
+  )
+
+if(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux")
+  find_program(
+    PERL perl
+    )
+else()
+  # CYGWIN / Active Perl
+  find_program(
+    PERL perl.exe
+    HINTS c:/Perl64/bin
+    HINTS c:/Perl/bin
+    HINTS c:/cygwin/usr/bin
+    HINTS c:/cygwin64/usr/bin
+    )
+endif()
+
+add_custom_target(inifile
+  DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/TERATERM.INI
+  COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/setini.pl ${CMAKE_CURRENT_SOURCE_DIR}/release/TERATERM.INI > "${CMAKE_CURRENT_BINARY_DIR}/TERATERM.INI"
+  COMMENT create "${CMAKE_CURRENT_BINARY_DIR}/TERATERM.INI"
+  )

Modified: trunk/teraterm/keycode/CMakeLists.txt
===================================================================
--- trunk/teraterm/keycode/CMakeLists.txt	2019-08-19 15:11:54 UTC (rev 7989)
+++ trunk/teraterm/keycode/CMakeLists.txt	2019-08-19 15:27:06 UTC (rev 7990)
@@ -28,3 +28,8 @@
 target_link_libraries(
   keycode
   )
+
+install(
+  TARGETS keycode
+  DESTINATION .
+  )

Modified: trunk/teraterm/teraterm/CMakeLists.txt
===================================================================
--- trunk/teraterm/teraterm/CMakeLists.txt	2019-08-19 15:11:54 UTC (rev 7989)
+++ trunk/teraterm/teraterm/CMakeLists.txt	2019-08-19 15:27:06 UTC (rev 7990)
@@ -258,3 +258,8 @@
 configure_file(
   svnversion.h.in
   ../ttpdlg/svnversion.h @ONLY)
+
+install(
+  TARGETS teraterm
+  DESTINATION .
+  )

Modified: trunk/teraterm/ttpcmn/CMakeLists.txt
===================================================================
--- trunk/teraterm/ttpcmn/CMakeLists.txt	2019-08-19 15:11:54 UTC (rev 7989)
+++ trunk/teraterm/ttpcmn/CMakeLists.txt	2019-08-19 15:27:06 UTC (rev 7990)
@@ -73,3 +73,9 @@
   setupapi
   delayimp
   )
+
+install(
+  TARGETS ttpcmn
+  RUNTIME
+  DESTINATION .
+  )

Modified: trunk/teraterm/ttpfile/CMakeLists.txt
===================================================================
--- trunk/teraterm/ttpfile/CMakeLists.txt	2019-08-19 15:11:54 UTC (rev 7989)
+++ trunk/teraterm/ttpfile/CMakeLists.txt	2019-08-19 15:27:06 UTC (rev 7990)
@@ -71,3 +71,9 @@
   ttpfile
   ttpcmn
   )
+
+install(
+  TARGETS ttpfile
+  RUNTIME
+  DESTINATION .
+  )

Modified: trunk/teraterm/ttpmacro/CMakeLists.txt
===================================================================
--- trunk/teraterm/ttpmacro/CMakeLists.txt	2019-08-19 15:11:54 UTC (rev 7989)
+++ trunk/teraterm/ttpmacro/CMakeLists.txt	2019-08-19 15:27:06 UTC (rev 7990)
@@ -128,3 +128,8 @@
   ttpmacro
   ttpcmn
   )
+
+install(
+  TARGETS ttpmacro
+  DESTINATION .
+  )

Modified: trunk/teraterm/ttpset/CMakeLists.txt
===================================================================
--- trunk/teraterm/ttpset/CMakeLists.txt	2019-08-19 15:11:54 UTC (rev 7989)
+++ trunk/teraterm/ttpset/CMakeLists.txt	2019-08-19 15:27:06 UTC (rev 7990)
@@ -50,3 +50,9 @@
   ttpset
   ttpcmn
   )
+
+install(
+  TARGETS ttpset
+  RUNTIME
+  DESTINATION .
+  )

Modified: trunk/teraterm/ttptek/CMakeLists.txt
===================================================================
--- trunk/teraterm/ttptek/CMakeLists.txt	2019-08-19 15:11:54 UTC (rev 7989)
+++ trunk/teraterm/ttptek/CMakeLists.txt	2019-08-19 15:27:06 UTC (rev 7990)
@@ -68,3 +68,9 @@
   ttptek
   ttpcmn
   )
+
+install(
+  TARGETS ttptek
+  RUNTIME
+  DESTINATION .
+  )

Modified: trunk/ttpmenu/CMakeLists.txt
===================================================================
--- trunk/ttpmenu/CMakeLists.txt	2019-08-19 15:11:54 UTC (rev 7989)
+++ trunk/ttpmenu/CMakeLists.txt	2019-08-19 15:27:06 UTC (rev 7990)
@@ -51,4 +51,7 @@
   comdlg32
   )
 
-
+install(
+  TARGETS ttpmenu
+  DESTINATION .
+  )

Modified: trunk/ttssh2/ttxssh/CMakeLists.txt
===================================================================
--- trunk/ttssh2/ttxssh/CMakeLists.txt	2019-08-19 15:11:54 UTC (rev 7989)
+++ trunk/ttssh2/ttxssh/CMakeLists.txt	2019-08-19 15:27:06 UTC (rev 7990)
@@ -174,3 +174,9 @@
   WRITE ${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h
   "#define PUTTYVERSION \"${version_str}\"\n"
   )
+
+install(
+  TARGETS ttxssh
+  RUNTIME
+  DESTINATION .
+  )


Ttssh2-commit メーリングリストの案内
Back to archive index