Develop and Download Open Source Software

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9653 - (hide 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 zmatsuo 9129 set(PACKAGE_NAME "ttxssh")
2 zmatsuo 7456
3 zmatsuo 9129 project(${PACKAGE_NAME})
4 zmatsuo 7456
5     include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_zlib.cmake)
6     include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_openssl.cmake)
7    
8 zmatsuo 7952 add_library(
9 zmatsuo 9129 ${PACKAGE_NAME} SHARED
10 zmatsuo 7456 )
11    
12 zmatsuo 7952 target_sources(
13 zmatsuo 9129 ${PACKAGE_NAME}
14 zmatsuo 7952 PRIVATE
15 zmatsuo 7456 ../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 nmaya 9255 cipher-3des1.c
25     cipher-chachapoly-libcrypto.c
26     cipher-chachapoly.h
27     cipher-ctr.c
28     cipher.c
29 zmatsuo 7456 cipher.h
30 nmaya 9255 comp.c
31     comp.h
32 zmatsuo 7456 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 nmaya 9255 fwd-socks.c
52     fwd-socks.h
53 zmatsuo 7456 fwd.c
54     fwd.h
55     fwdui.c
56     fwdui.h
57 nmaya 9255 hostkey.c
58     hostkey.h
59 zmatsuo 7456 hosts.c
60     hosts.h
61     kex.c
62     kex.h
63     key.c
64     key.h
65     keyfiles.c
66     keyfiles.h
67 zmatsuo 9266 keyfiles-putty.c
68     keyfiles-putty.h
69 nmaya 9255 mac.c
70     mac.h
71 zmatsuo 7456 pkt.c
72     pkt.h
73 nmaya 9255 poly1305.c
74     poly1305.h
75 zmatsuo 7456 resource.h
76     sftp.c
77     sftp.h
78     ssh.c
79     ssh.h
80 nmaya 9255 ssherr.c
81     ssherr.h
82     ttxssh-version.h
83     ttxssh-version.rc
84 zmatsuo 7456 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 zmatsuo 7952 target_sources(
96 zmatsuo 9129 ${PACKAGE_NAME}
97 zmatsuo 7952 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 doda 8445 ../../teraterm/common/compat_win.h
108     ../../teraterm/common/dllutil.h
109 zmatsuo 7952 )
110 zmatsuo 7456
111 zmatsuo 7952 source_group(
112     "common"
113     REGULAR_EXPRESSION
114     "teraterm\/common\/")
115    
116 zmatsuo 9129 if(SUPPORT_OLD_WINDOWS)
117     if(MSVC)
118 zmatsuo 9325 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 zmatsuo 9129 target_sources(
130     ${PACKAGE_NAME}
131     PRIVATE
132     ../../teraterm/common/compat_w95_vs2005.c
133     )
134     endif()
135 zmatsuo 9136 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 zmatsuo 9129 endif(SUPPORT_OLD_WINDOWS)
150    
151 zmatsuo 7952 target_include_directories(
152 zmatsuo 9129 ${PACKAGE_NAME}
153 zmatsuo 7952 PRIVATE
154 zmatsuo 7456 ../../teraterm/teraterm
155     ../../teraterm/common
156     ../matcher
157     ../putty
158     ${OPENSSL_INCLUDE_DIRS}
159     ${ZLIB_INCLUDE_DIRS}
160 zmatsuo 7952 )
161 zmatsuo 7456
162 zmatsuo 7536 set_target_properties(
163 zmatsuo 9129 ${PACKAGE_NAME}
164 zmatsuo 7536 PROPERTIES
165     PREFIX ""
166 zmatsuo 9129 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/"
167 zmatsuo 7536 )
168    
169 zmatsuo 7952 target_compile_definitions(
170 zmatsuo 9129 ${PACKAGE_NAME}
171 zmatsuo 7952 PRIVATE
172     $<$<CONFIG:Debug>:_CRTDBG_MAP_ALLOC>
173     )
174    
175 zmatsuo 9129 if(MINGW)
176     target_link_options(
177     ttxssh
178     PRIVATE
179     -Wl,-Map=ttxssh.map,-cref
180     )
181     endif()
182    
183 zmatsuo 7456 target_link_libraries(
184 zmatsuo 9129 ${PACKAGE_NAME}
185 zmatsuo 8565 PRIVATE
186     common_static
187 zmatsuo 7456 libputty
188     ttpcmn
189 zmatsuo 9266 argon2
190 zmatsuo 7952 ${ZLIB_LIB}
191 zmatsuo 7456 ${OPENSSL_LIB}
192 zmatsuo 9325 )
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 zmatsuo 7456 ws2_32
206     gdi32
207     comdlg32
208 doda 8445 comctl32
209 zmatsuo 8332 # OpenSSL が使用
210     crypt32.lib # TODO このlibを使用しないパッチを適応したら削除すること
211 zmatsuo 7456 )
212    
213 zmatsuo 7990 install(
214     TARGETS ttxssh
215     RUNTIME
216     DESTINATION .
217     )

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