Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/ttssh2/ttxssh/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9653 - (show annotations) (download)
Wed Dec 29 17:01:27 2021 UTC (2 years, 3 months ago) by zmatsuo
File MIME type: text/plain
File size: 3846 byte(s)
puttyversion.h を使用しなくなったので関連コードを削除

Merge from putty_0_76: r9644
1 set(PACKAGE_NAME "ttxssh")
2
3 project(${PACKAGE_NAME})
4
5 include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_zlib.cmake)
6 include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_openssl.cmake)
7
8 add_library(
9 ${PACKAGE_NAME} SHARED
10 )
11
12 target_sources(
13 ${PACKAGE_NAME}
14 PRIVATE
15 ../matcher/matcher.c
16 arc4random.c
17 arc4random.h
18 auth.c
19 auth.h
20 buffer.c
21 buffer.h
22 chacha.c
23 chacha.h
24 cipher-3des1.c
25 cipher-chachapoly-libcrypto.c
26 cipher-chachapoly.h
27 cipher-ctr.c
28 cipher.c
29 cipher.h
30 comp.c
31 comp.h
32 config.h
33 crypt.c
34 crypt.h
35 dns.c
36 dns.h
37 ed25519.c
38 ed25519_bcrypt_pbkdf.c
39 ed25519_blf.h
40 ed25519_blocks.c
41 ed25519_blowfish.c
42 ed25519_crypto_api.h
43 ed25519_fe25519.c
44 ed25519_fe25519.h
45 ed25519_ge25519.c
46 ed25519_ge25519.h
47 ed25519_hash.c
48 ed25519_sc25519.c
49 ed25519_sc25519.h
50 ed25519_verify.c
51 fwd-socks.c
52 fwd-socks.h
53 fwd.c
54 fwd.h
55 fwdui.c
56 fwdui.h
57 hostkey.c
58 hostkey.h
59 hosts.c
60 hosts.h
61 kex.c
62 kex.h
63 key.c
64 key.h
65 keyfiles.c
66 keyfiles.h
67 keyfiles-putty.c
68 keyfiles-putty.h
69 mac.c
70 mac.h
71 pkt.c
72 pkt.h
73 poly1305.c
74 poly1305.h
75 resource.h
76 sftp.c
77 sftp.h
78 ssh.c
79 ssh.h
80 ssherr.c
81 ssherr.h
82 ttxssh-version.h
83 ttxssh-version.rc
84 ttxssh.c
85 ttxssh.def
86 ttxssh.h
87 ttxssh.rc
88 util.c
89 util.h
90 x11util.c
91 x11util.h
92 ${COMMON_SRC}
93 )
94
95 target_sources(
96 ${PACKAGE_NAME}
97 PRIVATE
98 ../../teraterm/teraterm/WSAAsyncGetAddrInfo.c
99 ../../teraterm/common/ttcommon.h
100 ../../teraterm/common/i18n.h
101 ../../teraterm/common/ttlib.h
102 ../../teraterm/common/ttlib.c
103 ../../teraterm/common/dlglib.h
104 ../../teraterm/common/servicenames.h
105 ../../teraterm/common/codeconv.h
106 ../../teraterm/common/tipwin.h
107 ../../teraterm/common/compat_win.h
108 ../../teraterm/common/dllutil.h
109 )
110
111 source_group(
112 "common"
113 REGULAR_EXPRESSION
114 "teraterm\/common\/")
115
116 if(SUPPORT_OLD_WINDOWS)
117 if(MSVC)
118 if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
119 set(CMAKE_C_STANDARD_LIBRARIES "")
120 set(CMAKE_CXX_STANDARD_LIBRARIES "")
121 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB")
122 else()
123 target_link_options(
124 ${PACKAGE_NAME}
125 PRIVATE
126 /NODEFAULTLIB
127 )
128 endif()
129 target_sources(
130 ${PACKAGE_NAME}
131 PRIVATE
132 ../../teraterm/common/compat_w95_vs2005.c
133 )
134 endif()
135 if(MINGW)
136 target_sources(
137 ${PACKAGE_NAME}
138 PRIVATE
139 ../../teraterm/libmingw/tlssup.c
140 )
141 target_link_libraries(
142 ${PACKAGE_NAME}
143 PRIVATE
144 -Wl,--whole-archive
145 mingw_msvcrt
146 -Wl,--no-whole-archive
147 )
148 endif()
149 endif(SUPPORT_OLD_WINDOWS)
150
151 target_include_directories(
152 ${PACKAGE_NAME}
153 PRIVATE
154 ../../teraterm/teraterm
155 ../../teraterm/common
156 ../matcher
157 ../putty
158 ${OPENSSL_INCLUDE_DIRS}
159 ${ZLIB_INCLUDE_DIRS}
160 )
161
162 set_target_properties(
163 ${PACKAGE_NAME}
164 PROPERTIES
165 PREFIX ""
166 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/"
167 )
168
169 target_compile_definitions(
170 ${PACKAGE_NAME}
171 PRIVATE
172 $<$<CONFIG:Debug>:_CRTDBG_MAP_ALLOC>
173 )
174
175 if(MINGW)
176 target_link_options(
177 ttxssh
178 PRIVATE
179 -Wl,-Map=ttxssh.map,-cref
180 )
181 endif()
182
183 target_link_libraries(
184 ${PACKAGE_NAME}
185 PRIVATE
186 common_static
187 libputty
188 ttpcmn
189 argon2
190 ${ZLIB_LIB}
191 ${OPENSSL_LIB}
192 )
193
194 if(SUPPORT_OLD_WINDOWS)
195 target_link_libraries(
196 ${PACKAGE_NAME}
197 PRIVATE
198 layer_for_unicode
199 )
200 endif()
201
202 target_link_libraries(
203 ${PACKAGE_NAME}
204 PRIVATE
205 ws2_32
206 gdi32
207 comdlg32
208 comctl32
209 # OpenSSL が使用
210 crypt32.lib # TODO このlibを使用しないパッチを適応したら削除すること
211 )
212
213 install(
214 TARGETS ttxssh
215 RUNTIME
216 DESTINATION .
217 )

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26