• R/O
  • SSH
  • HTTPS

ttssh2: コミット


コミットメタ情報

リビジョン7163 (tree)
日時2018-07-23 23:33:47
作者zmatsuo

ログメッセージ

CMakeLists.txt追加

変更サマリ

差分

--- branches/cmake/CMakeLists.txt (nonexistent)
+++ branches/cmake/CMakeLists.txt (revision 7163)
@@ -0,0 +1,27 @@
1+
2+cmake_minimum_required(VERSION 3.6)
3+
4+project(teraterm_all)
5+
6+set_property(GLOBAL PROPERTY USE_FOLDERS ON)
7+
8+option(ENABLE_TTXSAMPLES "TTXSamples" ON)
9+
10+set(CMAKE_CONFIGURATION_TYPES "Debug;Release")
11+string(REPLACE "/MD" "/MT" CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG})
12+string(REPLACE "/MD" "/MT" CMAKE_C_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE})
13+string(REPLACE "/MD" "/MT" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
14+string(REPLACE "/MD" "/MT" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
15+if(CMAKE_GENERATOR MATCHES "Visual Studio 15 2017")
16+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
17+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
18+endif()
19+
20+add_subdirectory(teraterm)
21+add_subdirectory(ttpmenu)
22+add_subdirectory(TTProxy)
23+add_subdirectory(ttssh2)
24+add_subdirectory(TTXKanjiMenu)
25+if(ENABLE_TTXSAMPLES)
26+ add_subdirectory(TTXSamples)
27+endif()
--- branches/cmake/TTProxy/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTProxy/CMakeLists.txt (revision 7163)
@@ -0,0 +1,44 @@
1+project(ttproxy)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ ../teraterm/common/ttlib.c
7+ ../teraterm/common/ttlib.h
8+ ../teraterm/common/i18n.c
9+ ../teraterm/common/i18n.h
10+
11+ Hooker.h
12+ Logger.h
13+ ProxyWSockHook.h
14+ resource.h
15+ SSLLIB.h
16+ SSLSocket.h
17+ StdAfx.cpp
18+ StdAfx.h
19+ TTProxy.cpp
20+ TTProxy.h
21+ TTProxy.rc
22+ TTX.def
23+ )
24+
25+include_directories(
26+ ../teraterm/teraterm
27+ ../teraterm/common
28+ YCL/include
29+ ../libs/openssl/inc32
30+ .
31+ )
32+
33+add_library(
34+ ttproxy SHARED
35+ ${SRC}
36+ )
37+
38+target_link_libraries(
39+ ttproxy
40+ ttpcmn
41+ ws2_32.lib
42+ )
43+
44+
--- branches/cmake/TTXKanjiMenu/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXKanjiMenu/CMakeLists.txt (revision 7163)
@@ -0,0 +1,30 @@
1+project(ttxkanjimenu)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ resource.h
7+ ttxkanjimenu.c
8+ ttxkanjimenu.rc
9+ )
10+
11+
12+include_directories(
13+ ../teraterm/teraterm
14+ ../teraterm/common
15+ ../libs/openssl/inc32
16+ .
17+ )
18+
19+add_library(
20+ ttxkanjimenu SHARED
21+ ${SRC}
22+ )
23+
24+target_link_libraries(
25+ ttxkanjimenu
26+ ttpcmn
27+ ws2_32.lib
28+ )
29+
30+
--- branches/cmake/TTXSamples/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/CMakeLists.txt (revision 7163)
@@ -0,0 +1,48 @@
1+
2+add_subdirectory(TTXAdditionalTitle)
3+set_target_properties(TTXAdditionalTitle PROPERTIES FOLDER TTXSamples)
4+
5+add_subdirectory(TTXAlwaysOnTop)
6+set_target_properties(TTXAlwaysOnTop PROPERTIES FOLDER TTXSamples)
7+
8+add_subdirectory(TTXCallSysMenu)
9+set_target_properties(TTXCallSysMenu PROPERTIES FOLDER TTXSamples)
10+
11+add_subdirectory(TTXCommandLineOpt)
12+set_target_properties(TTXCommandLineOpt PROPERTIES FOLDER TTXSamples)
13+
14+add_subdirectory(TTXCopyIniFile)
15+set_target_properties(TTXCopyIniFile PROPERTIES FOLDER TTXSamples)
16+
17+add_subdirectory(TTXFixedWinSize)
18+set_target_properties(TTXFixedWinSize PROPERTIES FOLDER TTXSamples)
19+
20+add_subdirectory(TTXKcodeChange)
21+set_target_properties(TTXKcodeChange PROPERTIES FOLDER TTXSamples)
22+
23+add_subdirectory(TTXOutputBuffering)
24+set_target_properties(TTXOutputBuffering PROPERTIES FOLDER TTXSamples)
25+
26+add_subdirectory(TTXRecurringCommand)
27+set_target_properties(TTXRecurringCommand PROPERTIES FOLDER TTXSamples)
28+
29+add_subdirectory(TTXResizeMenu)
30+set_target_properties(TTXResizeMenu PROPERTIES FOLDER TTXSamples)
31+
32+add_subdirectory(TTXResizeWin)
33+set_target_properties(TTXResizeWin PROPERTIES FOLDER TTXSamples)
34+
35+add_subdirectory(TTXShowCommandLine)
36+set_target_properties(TTXShowCommandLine PROPERTIES FOLDER TTXSamples)
37+
38+add_subdirectory(TTXtest)
39+set_target_properties(TTXtest PROPERTIES FOLDER TTXSamples)
40+
41+add_subdirectory(TTXttyrec)
42+set_target_properties(TTXttyrec PROPERTIES FOLDER TTXSamples)
43+set_target_properties(TTXttyplay PROPERTIES FOLDER TTXSamples)
44+
45+add_subdirectory(TTXViewMode)
46+set_target_properties(TTXViewMode PROPERTIES FOLDER TTXSamples)
47+
48+
--- branches/cmake/TTXSamples/TTXAdditionalTitle/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXAdditionalTitle/CMakeLists.txt (revision 7163)
@@ -0,0 +1,26 @@
1+project(TTXAdditionalTitle)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ TTXAdditionalTitle.c
7+ ReadMe.txt
8+ ReadMe-ja.txt
9+ )
10+
11+include_directories(
12+ ../../teraterm/teraterm
13+ ../../teraterm/common
14+ )
15+
16+add_library(
17+ TTXAdditionalTitle SHARED
18+ ${SRC}
19+ )
20+
21+target_link_libraries(
22+ TTXAdditionalTitle
23+ ttpcmn
24+ )
25+
26+
--- branches/cmake/TTXSamples/TTXAlwaysOnTop/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXAlwaysOnTop/CMakeLists.txt (revision 7163)
@@ -0,0 +1,26 @@
1+project(TTXAlwaysOnTop)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ TTXAlwaysOnTop.c
7+ ReadMe.txt
8+ ReadMe-ja.txt
9+ )
10+
11+include_directories(
12+ ../../teraterm/teraterm
13+ ../../teraterm/common
14+ )
15+
16+add_library(
17+ TTXAlwaysOnTop SHARED
18+ ${SRC}
19+ )
20+
21+target_link_libraries(
22+ TTXAlwaysOnTop
23+ ttpcmn
24+ )
25+
26+
--- branches/cmake/TTXSamples/TTXCallSysMenu/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXCallSysMenu/CMakeLists.txt (revision 7163)
@@ -0,0 +1,19 @@
1+project(TTXCallSysMenu)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ TTXCallSysMenu.c
7+ ReadMe.txt
8+ ReadMe-ja.txt
9+ )
10+
11+include_directories(
12+ ../../teraterm/teraterm
13+ ../../teraterm/common
14+ )
15+
16+add_library(
17+ TTXCallSysMenu SHARED
18+ ${SRC}
19+ )
--- branches/cmake/TTXSamples/TTXCommandLineOpt/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXCommandLineOpt/CMakeLists.txt (revision 7163)
@@ -0,0 +1,26 @@
1+project(TTXCommandLineOpt)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ TTXCommandLineOpt.c
7+ ReadMe.txt
8+ ReadMe-ja.txt
9+ )
10+
11+include_directories(
12+ ../../teraterm/teraterm
13+ ../../teraterm/common
14+ )
15+
16+add_library(
17+ TTXCommandLineOpt SHARED
18+ ${SRC}
19+ )
20+
21+target_link_libraries(
22+ TTXCommandLineOpt
23+ ttpcmn
24+ )
25+
26+
--- branches/cmake/TTXSamples/TTXCopyIniFile/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXCopyIniFile/CMakeLists.txt (revision 7163)
@@ -0,0 +1,21 @@
1+project(TTXCopyIniFile)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ TTXCopyIniFile.c
7+ ReadMe.txt
8+ ReadMe-ja.txt
9+ )
10+
11+include_directories(
12+ ../../teraterm/teraterm
13+ ../../teraterm/common
14+ )
15+
16+add_library(
17+ TTXCopyIniFile SHARED
18+ ${SRC}
19+ )
20+
21+
--- branches/cmake/TTXSamples/TTXFixedWinSize/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXFixedWinSize/CMakeLists.txt (revision 7163)
@@ -0,0 +1,21 @@
1+project(TTXFixedWinSize)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ TTXFixedWinSize.c
7+ ReadMe.txt
8+ ReadMe-ja.txt
9+ )
10+
11+include_directories(
12+ ../../teraterm/teraterm
13+ ../../teraterm/common
14+ )
15+
16+add_library(
17+ TTXFixedWinSize SHARED
18+ ${SRC}
19+ )
20+
21+
--- branches/cmake/TTXSamples/TTXKcodeChange/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXKcodeChange/CMakeLists.txt (revision 7163)
@@ -0,0 +1,21 @@
1+project(TTXKcodeChange)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ TTXKcodeChange.c
7+ ReadMe.txt
8+ ReadMe-ja.txt
9+ )
10+
11+include_directories(
12+ ../../teraterm/teraterm
13+ ../../teraterm/common
14+ )
15+
16+add_library(
17+ TTXKcodeChange SHARED
18+ ${SRC}
19+ )
20+
21+
--- branches/cmake/TTXSamples/TTXOutputBuffering/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXOutputBuffering/CMakeLists.txt (revision 7163)
@@ -0,0 +1,21 @@
1+project(TTXOutputBuffering)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ TTXOutputBuffering.c
7+ ReadMe.txt
8+ ReadMe-ja.txt
9+ )
10+
11+include_directories(
12+ ../../teraterm/teraterm
13+ ../../teraterm/common
14+ )
15+
16+add_library(
17+ TTXOutputBuffering SHARED
18+ ${SRC}
19+ )
20+
21+
--- branches/cmake/TTXSamples/TTXRecurringCommand/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXRecurringCommand/CMakeLists.txt (revision 7163)
@@ -0,0 +1,25 @@
1+project(TTXRecurringCommand)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ TTXRecurringCommand.c
7+ TTXRecurringCommand.rc
8+ ReadMe.txt
9+ ReadMe-ja.txt
10+ )
11+
12+include_directories(
13+ ../../teraterm/teraterm
14+ ../../teraterm/common
15+ )
16+
17+add_library(
18+ TTXRecurringCommand SHARED
19+ ${SRC}
20+ )
21+
22+target_link_libraries(
23+ TTXRecurringCommand
24+ ttpcmn
25+ )
--- branches/cmake/TTXSamples/TTXResizeMenu/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXResizeMenu/CMakeLists.txt (revision 7163)
@@ -0,0 +1,26 @@
1+project(TTXResizeMenu)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ TTXResizeMenu.c
7+ ReadMe.txt
8+ ReadMe-ja.txt
9+ )
10+
11+include_directories(
12+ ../../teraterm/teraterm
13+ ../../teraterm/common
14+ )
15+
16+add_library(
17+ TTXResizeMenu SHARED
18+ ${SRC}
19+ )
20+
21+target_link_libraries(
22+ TTXResizeMenu
23+ ttpcmn
24+ )
25+
26+
--- branches/cmake/TTXSamples/TTXResizeWin/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXResizeWin/CMakeLists.txt (revision 7163)
@@ -0,0 +1,21 @@
1+project(TTXResizeWin)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ TTXResizeWin.c
7+ ReadMe.txt
8+ ReadMe-ja.txt
9+ )
10+
11+include_directories(
12+ ../../teraterm/teraterm
13+ ../../teraterm/common
14+ )
15+
16+add_library(
17+ TTXResizeWin SHARED
18+ ${SRC}
19+ )
20+
21+
--- branches/cmake/TTXSamples/TTXShowCommandLine/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXShowCommandLine/CMakeLists.txt (revision 7163)
@@ -0,0 +1,21 @@
1+project(TTXShowCommandLine)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ TTXShowCommandLine.c
7+ ReadMe.txt
8+ ReadMe-ja.txt
9+ )
10+
11+include_directories(
12+ ../../teraterm/teraterm
13+ ../../teraterm/common
14+ )
15+
16+add_library(
17+ TTXShowCommandLine SHARED
18+ ${SRC}
19+ )
20+
21+
--- branches/cmake/TTXSamples/TTXViewMode/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXViewMode/CMakeLists.txt (revision 7163)
@@ -0,0 +1,22 @@
1+project(TTXViewMode)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ resource.h
7+ TTXViewMode.c
8+ TTXViewMode.h
9+ TTXViewMode.rc
10+ ReadMe.txt
11+ ReadMe-ja.txt
12+ )
13+
14+include_directories(
15+ ../../teraterm/teraterm
16+ ../../teraterm/common
17+ )
18+
19+add_library(
20+ TTXViewMode SHARED
21+ ${SRC}
22+ )
--- branches/cmake/TTXSamples/TTXttyrec/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/TTXttyrec/CMakeLists.txt (revision 7163)
@@ -0,0 +1,33 @@
1+project(TTXttyrec)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+include_directories(
6+ ../../teraterm/teraterm
7+ ../../teraterm/common
8+ )
9+
10+add_library(
11+ TTXttyplay SHARED
12+ TTXttyplay.c
13+ gettimeofday.c
14+ gettimeofday.h
15+ ReadMe.txt
16+ ReadMe-ja.txt
17+ )
18+
19+target_link_libraries(
20+ TTXttyplay
21+ ttpcmn
22+ )
23+
24+add_library(
25+ TTXttyrec SHARED
26+ TTXttyrec.c
27+ gettimeofday.c
28+ gettimeofday.h
29+ ReadMe.txt
30+ ReadMe-ja.txt
31+ )
32+
33+
--- branches/cmake/TTXSamples/ttxtest/CMakeLists.txt (nonexistent)
+++ branches/cmake/TTXSamples/ttxtest/CMakeLists.txt (revision 7163)
@@ -0,0 +1,13 @@
1+project(TTXtest)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+include_directories(
6+ ../../teraterm/teraterm
7+ ../../teraterm/common
8+ )
9+
10+add_library(
11+ TTXtest SHARED
12+ TTXtest.c
13+ )
--- branches/cmake/teraterm/CMakeLists.txt (nonexistent)
+++ branches/cmake/teraterm/CMakeLists.txt (revision 7163)
@@ -0,0 +1,12 @@
1+
2+add_subdirectory(ttpcmn)
3+add_subdirectory(ttpdlg)
4+add_subdirectory(ttpfile)
5+add_subdirectory(ttpset)
6+add_subdirectory(ttpmacro)
7+add_subdirectory(ttptek)
8+add_subdirectory(teraterm)
9+add_subdirectory(keycode)
10+
11+# ttpdlg内でconfig時 svnversion.h を生成
12+#add_subdirectory(svnrev)
--- branches/cmake/teraterm/keycode/CMakeLists.txt (nonexistent)
+++ branches/cmake/teraterm/keycode/CMakeLists.txt (revision 7163)
@@ -0,0 +1,27 @@
1+project(keycode)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ keycode.c
7+ keycode.ico
8+ keycode-version.rc
9+ keycode.rc
10+ kc_res.h
11+ )
12+
13+
14+include_directories(
15+ ../common
16+ ../ttpfile
17+ .
18+ )
19+add_executable(
20+ keycode WIN32
21+ ${SRC}
22+ )
23+target_link_libraries(
24+ keycode
25+ )
26+
27+
--- branches/cmake/teraterm/svnrev/CMakeLists.txt (nonexistent)
+++ branches/cmake/teraterm/svnrev/CMakeLists.txt (revision 7163)
@@ -0,0 +1,24 @@
1+project(svnrev)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ svnrev.cpp
7+ svnrev.h
8+ )
9+
10+
11+include_directories(
12+ ../common
13+ ../ttpfile
14+ .
15+ )
16+add_executable(
17+ svnrev
18+ ${SRC}
19+ )
20+target_link_libraries(
21+ svnrev
22+ )
23+
24+
--- branches/cmake/teraterm/teraterm/CMakeLists.txt (nonexistent)
+++ branches/cmake/teraterm/teraterm/CMakeLists.txt (revision 7163)
@@ -0,0 +1,114 @@
1+project(teraterm)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ ../common/tt_res.h
7+ ../common/ttcommon.h
8+ ../common/ttddecmnd.h
9+ ../common/tttypes.h
10+ ../common/ttftypes.h
11+ ../common/ttplugin.h
12+ ../common/tt-version.h
13+ ../common/teraterm.h
14+ #
15+ ../common/ttlib.c
16+ ../common/ttlib.h
17+ ../common/dlglib.cpp
18+ ../common/dlglib.h
19+ #
20+ addsetting.cpp
21+ addsetting.h
22+ buffer.c
23+ buffer.h
24+ clipboar.c
25+ clipboar.h
26+ commlib.c
27+ commlib.h
28+ dnddlg.cpp
29+ dnddlg.h
30+ filesys.cpp
31+ filesys.h
32+ ftdlg.cpp
33+ ftdlg.h
34+ keyboard.c
35+ keyboard.h
36+ prnabort.cpp
37+ prnabort.h
38+ protodlg.cpp
39+ protodlg.h
40+ sizetip.c
41+ sizetip.h
42+ teklib.c
43+ teklib.h
44+ tekwin.cpp
45+ tekwin.h
46+ telnet.c
47+ telnet.h
48+ teraapp.h
49+ teraprn.cpp
50+ teraprn.h
51+ teraterm.cpp
52+ ttdde.c
53+ ttdde.h
54+ ttdialog.c
55+ ttdialog.h
56+ ttermpro.rc
57+ ttfileio.c
58+ ttfileio.h
59+ ttime.c
60+ ttime.h
61+ ttplug.c
62+ ttplug.h
63+ ttsetup.c
64+ ttsetup.h
65+ tt-version.rc
66+ ttwinman.c
67+ ttwinman.h
68+ ttwsk.c
69+ ttwsk.h
70+ vtdisp.c
71+ vtdisp.h
72+ vtterm.c
73+ vtterm.h
74+ vtwin.cpp
75+ vtwin.h
76+ winjump.c
77+ winjump.h
78+ WSAAsyncGetAddrInfo.c
79+ WSAAsyncGetAddrInfo.h
80+ )
81+
82+
83+include_directories(
84+ ../common
85+ ../ttpfile
86+ .
87+ )
88+link_directories(
89+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/oniguruma/src
90+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/SFMT
91+ )
92+set(CMAKE_MFC_FLAG 1)
93+set(CMAKE_EXE_LINKER_FLAGS /NODEFAULTLIB:\"nafxcwd.lib,LIBCMTD.lib\")
94+add_executable(
95+ teraterm WIN32
96+ ${SRC}
97+ )
98+target_link_libraries(
99+ teraterm
100+ debug nafxcwd.lib
101+ debug LIBCMTD.lib
102+ ttpcmn
103+ ttpdlg
104+ ttpfile
105+ ttpmacro
106+ ttpset
107+ ttptek
108+ onig_s.lib
109+ ws2_32.lib
110+ imm32.lib
111+ imagehlp.lib
112+ )
113+
114+
--- branches/cmake/teraterm/ttpcmn/CMakeLists.txt (nonexistent)
+++ branches/cmake/teraterm/ttpcmn/CMakeLists.txt (revision 7163)
@@ -0,0 +1,34 @@
1+
2+project(ttpcmn)
3+
4+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
5+
6+set(SRC
7+ ../common/i18n.c
8+ ../common/i18n.h
9+ ../common/ttlib.c
10+ ../common/servicenames.c
11+ ../common/servicenames.h
12+ ttpcmn.def
13+ cmn_res.h
14+ language.c
15+ language.h
16+ ttcmn.c
17+ ttpcmn-version.rc
18+ ttpcmn.rc
19+ )
20+
21+
22+include_directories(
23+ ../common
24+ ../ttpfile
25+ .
26+ )
27+add_library(
28+ ttpcmn SHARED
29+ ${SRC}
30+ )
31+target_link_libraries(
32+ ttpcmn
33+ setupapi.lib
34+ htmlhelp.lib)
--- branches/cmake/teraterm/ttpdlg/CMakeLists.txt (nonexistent)
+++ branches/cmake/teraterm/ttpdlg/CMakeLists.txt (revision 7163)
@@ -0,0 +1,54 @@
1+
2+project(ttpdlg)
3+
4+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
5+
6+set(CMAKE_RC_FLAGS "${CMAKE_RC_FLAGS} /i ${CMAKE_CURRENT_SOURCE_DIR}/../common")
7+
8+set(SRC
9+ ../common/dlglib.cpp
10+ ../common/dlglib.h
11+ ../common/ttlib.c
12+ ../common/ttlib.h
13+ ../common/teraterm.ico
14+ dlg_res.h
15+ ttdlg.c
16+ ttdlg.h
17+ ttpdlg.def
18+ ttpdlg.rc
19+ ttpdlg-version.rc
20+ ${CMAKE_CURRENT_BINARY_DIR}/svnversion.h
21+ )
22+
23+include_directories(
24+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/oniguruma/src
25+ ${CMAKE_CURRENT_SOURCE_DIR}/../common
26+ ${CMAKE_CURRENT_BINARY_DIR}
27+ )
28+
29+link_directories(
30+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/oniguruma/src
31+ )
32+
33+add_library(
34+ ttpdlg SHARED
35+ ${SRC}
36+ )
37+
38+target_link_libraries(
39+ ttpdlg
40+ onig_s.lib
41+ #onig_sd.lib
42+ ttpcmn
43+ )
44+
45+## svnversion.h
46+INCLUDE(FindSubversion)
47+
48+if(Subversion_FOUND)
49+ Subversion_WC_INFO(${CMAKE_SOURCE_DIR} TT)
50+ FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/svnversion.h "#define SVNVERSION ${TT_WC_REVISION}\n")
51+ message("rev.${TT_WC_REVISION}")
52+else()
53+ FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/svnversion.h "#undef SVNVERSION\n")
54+endif()
--- branches/cmake/teraterm/ttpfile/CMakeLists.txt (nonexistent)
+++ branches/cmake/teraterm/ttpfile/CMakeLists.txt (revision 7163)
@@ -0,0 +1,44 @@
1+
2+project(ttpfile)
3+
4+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
5+
6+set(SRC
7+ ../common/dlglib.cpp
8+ ../common/dlglib.h
9+ ../common/ttlib.c
10+ ../common/ttlib.h
11+ bplus.c
12+ bplus.h
13+ ftlib.c
14+ ftlib.h
15+ kermit.c
16+ kermit.h
17+ quickvan.c
18+ quickvan.h
19+ ttfile.c
20+ xmodem.c
21+ xmodem.h
22+ ymodem.c
23+ ymodem.h
24+ zmodem.c
25+ zmodem.h
26+ file_res.h
27+ ttpfile-version.rc
28+ ttpfile.rc
29+ ttpfile.def
30+ )
31+
32+include_directories(
33+ ../common
34+ )
35+
36+add_library(
37+ ttpfile SHARED
38+ ${SRC}
39+ )
40+
41+target_link_libraries(
42+ ttpfile
43+ ttpcmn
44+ )
--- branches/cmake/teraterm/ttpmacro/CMakeLists.txt (nonexistent)
+++ branches/cmake/teraterm/ttpmacro/CMakeLists.txt (revision 7163)
@@ -0,0 +1,82 @@
1+
2+project(ttpmacro)
3+
4+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
5+
6+set(SRC
7+ ../common/i18n.c
8+ ../common/i18n.h
9+ ../common/ttlib.c
10+ ../common/ttlib.h
11+ #
12+ errdlg.cpp
13+ errdlg.h
14+ inpdlg.cpp
15+ inpdlg.h
16+ ListDlg.cpp
17+ ListDlg.h
18+ msgdlg.cpp
19+ msgdlg.h
20+ statdlg.cpp
21+ statdlg.h
22+ stdafx.h
23+ ttl.c
24+ ttl.h
25+ ttm_res.h
26+ ttmacro.cpp
27+ ttmacro.h
28+ ttmbuff.c
29+ ttmbuff.h
30+ ttmdde.c
31+ ttmdde.h
32+ ttmdef.h
33+ ttmdlg.cpp
34+ ttmdlg.h
35+ ttmenc.c
36+ ttmenc.h
37+ ttmlib.c
38+ ttmlib.h
39+ ttmmain.cpp
40+ ttmmain.h
41+ ttmmsg.h
42+ ttmonig.h
43+ ttmparse.c
44+ ttmparse.h
45+ wait4all.c
46+ wait4all.h
47+
48+ ttpmacro.rc
49+ ttm-version.rc
50+ )
51+
52+
53+include_directories(
54+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/oniguruma/src
55+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/SFMT
56+ ${CMAKE_CURRENT_SOURCE_DIR}/../common
57+ )
58+link_directories(
59+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/oniguruma/src
60+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/SFMT
61+ )
62+
63+set(CMAKE_MFC_FLAG 1)
64+
65+set(CMAKE_SHARED_LINKER_FLAGS /NODEFAULTLIB:\"LIBCMT.lib,LIBCMTD.lib\")
66+
67+add_library(
68+ ttpmacro SHARED
69+ ${SRC}
70+ )
71+
72+target_link_libraries(
73+ ttpmacro
74+ ttpcmn
75+ optimized nafxcw.lib
76+ debug nafxcwd.lib
77+ optimized libcmt.lib
78+ debug libcmtd.lib
79+ onig_s.lib
80+ SFMT.lib
81+ iphlpapi.lib
82+ )
--- branches/cmake/teraterm/ttpset/CMakeLists.txt (nonexistent)
+++ branches/cmake/teraterm/ttpset/CMakeLists.txt (revision 7163)
@@ -0,0 +1,27 @@
1+
2+project(ttpset)
3+
4+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
5+
6+set(SRC
7+ ../common/ttlib.c
8+ ../common/ttlib.h
9+ ttset.c
10+ ttpset-version.rc
11+ ttpset.def
12+ )
13+
14+
15+include_directories(
16+ ${CMAKE_CURRENT_SOURCE_DIR}/../common
17+ )
18+
19+add_library(
20+ ttpset SHARED
21+ ${SRC}
22+ )
23+
24+target_link_libraries(
25+ ttpset
26+ ttpcmn
27+ )
--- branches/cmake/teraterm/ttptek/CMakeLists.txt (nonexistent)
+++ branches/cmake/teraterm/ttptek/CMakeLists.txt (revision 7163)
@@ -0,0 +1,42 @@
1+
2+project(ttptek)
3+
4+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
5+
6+set(SRC
7+ ../common/i18n.c
8+ ../common/i18n.h
9+ ../common/ttlib.c
10+ ../common/ttlib.h
11+ #
12+ tek_res.h
13+ tekesc.c
14+ tekesc.h
15+ ttptek.def
16+ ttptek.rc
17+ ttptek-version.rc
18+ tttek.c
19+ )
20+
21+include_directories(
22+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/oniguruma/src
23+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/SFMT
24+ ${CMAKE_CURRENT_SOURCE_DIR}/../common
25+ )
26+link_directories(
27+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/oniguruma/src
28+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/SFMT
29+ )
30+
31+add_library(
32+ ttptek SHARED
33+ ${SRC}
34+ )
35+
36+target_link_libraries(
37+ ttptek
38+ ttpcmn
39+ onig_s.lib
40+ SFMT.lib
41+ iphlpapi.lib
42+)
--- branches/cmake/ttpmenu/CMakeLists.txt (nonexistent)
+++ branches/cmake/ttpmenu/CMakeLists.txt (revision 7163)
@@ -0,0 +1,38 @@
1+project(ttpmenu)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ ../teraterm/common/ttlib.c
7+ ../teraterm/common/ttlib.h
8+ ../teraterm/common/i18n.c
9+ ../teraterm/common/i18n.h
10+
11+ resource.h
12+ registry.cpp
13+ ttpmenu.cpp
14+ winmisc.cpp
15+ left.ico
16+ right.ico
17+ teraterm.ico
18+ ttpmenu.rc
19+ )
20+
21+
22+include_directories(
23+ ../teraterm/common
24+ .
25+ )
26+
27+add_executable(
28+ ttpmenu WIN32
29+ ${SRC}
30+ )
31+
32+target_link_libraries(
33+ ttpmenu
34+ version.lib
35+ comctl32.lib
36+ )
37+
38+
--- branches/cmake/ttssh2/CMakeLists.txt (nonexistent)
+++ branches/cmake/ttssh2/CMakeLists.txt (revision 7163)
@@ -0,0 +1,16 @@
1+add_subdirectory(ttxssh)
2+set_target_properties(ttxssh PROPERTIES FOLDER ttssh2)
3+
4+add_subdirectory(ttssh)
5+set_target_properties(ttssh PROPERTIES FOLDER ttssh2)
6+
7+add_subdirectory(matcher)
8+set_target_properties(matcher PROPERTIES FOLDER ttssh2)
9+
10+# config時に cmake で puttyversion.h を生成するようにした
11+#add_subdirectory(puttyrev)
12+#set_target_properties(puttyrev PROPERTIES FOLDER ttssh2)
13+
14+add_subdirectory(putty)
15+set_target_properties(libputty PROPERTIES FOLDER ttssh2)
16+
--- branches/cmake/ttssh2/matcher/CMakeLists.txt (nonexistent)
+++ branches/cmake/ttssh2/matcher/CMakeLists.txt (revision 7163)
@@ -0,0 +1,13 @@
1+project(matcher)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ matcher.c
7+ test.c
8+ )
9+
10+add_executable(
11+ matcher
12+ ${SRC}
13+ )
--- branches/cmake/ttssh2/putty/CMakeLists.txt (nonexistent)
+++ branches/cmake/ttssh2/putty/CMakeLists.txt (revision 7163)
@@ -0,0 +1,26 @@
1+project(libputty)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ ../../libs/putty/CONF.C
7+ ../../libs/putty/MISC.C
8+ ../../libs/putty/TREE234.C
9+ ../../libs/putty/VERSION.C
10+ ../../libs/putty/WINDOWS/WINMISC.C
11+ ../../libs/putty/WINDOWS/WINPGNTC.C
12+ ../../libs/putty/WINDOWS/WINSECUR.C
13+ libputty.c
14+ libputty.h
15+ )
16+
17+include_directories(
18+ ../../libs/putty
19+ ../../libs/putty/windows
20+ .
21+ )
22+
23+add_library(
24+ libputty
25+ ${SRC}
26+ )
--- branches/cmake/ttssh2/puttyrev/CMakeLists.txt (nonexistent)
+++ branches/cmake/ttssh2/puttyrev/CMakeLists.txt (revision 7163)
@@ -0,0 +1,13 @@
1+project(puttyrev)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ puttyrev.h
7+ puttyrev.cpp
8+ )
9+
10+add_executable(
11+ puttyrev
12+ ${SRC}
13+ )
--- branches/cmake/ttssh2/ttssh/CMakeLists.txt (nonexistent)
+++ branches/cmake/ttssh2/ttssh/CMakeLists.txt (revision 7163)
@@ -0,0 +1,15 @@
1+project(ttssh)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ resource.h
7+ ttsecure.ico
8+ ttssh.c
9+ ttssh.rc
10+ )
11+
12+add_executable(
13+ ttssh WIN32
14+ ${SRC}
15+ )
--- branches/cmake/ttssh2/ttxssh/CMakeLists.txt (nonexistent)
+++ branches/cmake/ttssh2/ttxssh/CMakeLists.txt (revision 7163)
@@ -0,0 +1,118 @@
1+project(ttxssh)
2+
3+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4+
5+set(SRC
6+ ${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h
7+ ../../teraterm/teraterm/WSAAsyncGetAddrInfo.c
8+ ../matcher/matcher.c
9+ arc4random.c
10+ arc4random.h
11+ auth.c
12+ auth.h
13+ buffer.c
14+ buffer.h
15+ chacha.c
16+ chacha.h
17+ cipher.h
18+ cipher-ctr.c
19+ config.h
20+ crypt.c
21+ crypt.h
22+ dns.c
23+ dns.h
24+ ed25519.c
25+ ed25519_bcrypt_pbkdf.c
26+ ed25519_blf.h
27+ ed25519_blocks.c
28+ ed25519_blowfish.c
29+ ed25519_crypto_api.h
30+ ed25519_fe25519.c
31+ ed25519_fe25519.h
32+ ed25519_ge25519.c
33+ ed25519_ge25519.h
34+ ed25519_hash.c
35+ ed25519_sc25519.c
36+ ed25519_sc25519.h
37+ ed25519_verify.c
38+ fwd.c
39+ fwd.h
40+ fwd-socks.c
41+ fwd-socks.h
42+ fwdui.c
43+ fwdui.h
44+ hosts.c
45+ hosts.h
46+ kex.c
47+ kex.h
48+ key.c
49+ key.h
50+ keyfiles.c
51+ keyfiles.h
52+ pkt.c
53+ pkt.h
54+ resource.h
55+ sftp.c
56+ sftp.h
57+ ssh.c
58+ ssh.h
59+ ttxssh.c
60+ ttxssh.def
61+ ttxssh.h
62+ ttxssh.rc
63+ ttxssh-version.h
64+ ttxssh-version.rc
65+ util.c
66+ util.h
67+ x11util.c
68+ x11util.h
69+ )
70+
71+
72+include_directories(
73+ ../../teraterm/teraterm
74+ ../../teraterm/common
75+ ../../libs/openssl/inc32
76+ ../../libs/zlib
77+ ../matcher
78+ ../putty
79+ )
80+
81+link_directories(
82+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/openssl/out32
83+ ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/zlib
84+ )
85+
86+add_library(
87+ ttxssh SHARED
88+ ${SRC}
89+ )
90+
91+target_link_libraries(
92+ ttxssh
93+ libputty
94+ ttpcmn
95+ libeay32.lib
96+ zlib.lib
97+ ws2_32.lib
98+ dnsapi.lib
99+ )
100+
101+### create puttyversion.h
102+
103+file(READ "${CMAKE_SOURCE_DIR}/libs/putty/windows/putty.iss" iis)
104+
105+string(REGEX MATCH "VersionInfoTextVersion=([^\n]+)\n" _ ${iis})
106+set(version_str ${CMAKE_MATCH_1})
107+if("${version_str}" STREQUAL "")
108+ string(REGEX MATCH "AppVerName=([^\n]+)\n" _ ${iis})
109+ set(version_str ${CMAKE_MATCH_1})
110+endif()
111+if("${version_str}" STREQUAL "")
112+ set(version_str "unknown")
113+endif()
114+message("putty version=\"${version_str}\"")
115+FILE(
116+ WRITE ${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h
117+ "#define PUTTYVERSION \"${version_str}\"\n"
118+ )
旧リポジトリブラウザで表示