Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9252 - (hide annotations) (download)
Sun May 16 16:19:16 2021 UTC (2 years, 10 months ago) by zmatsuo
File MIME type: text/plain
File size: 3714 byte(s)
add files to CMakeLists.txt
1 zmatsuo 7456 project(ttxssh)
2    
3     set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4    
5     include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_zlib.cmake)
6     include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_openssl.cmake)
7    
8 zmatsuo 7952 if (MSVC)
9 zmatsuo 8211 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /DELAYLOAD:user32.dll /DELAYLOAD:dnsapi.dll")
10 zmatsuo 7456 endif()
11    
12 zmatsuo 7952 add_library(
13     ttxssh SHARED
14 zmatsuo 7456 )
15    
16 zmatsuo 7952 target_sources(
17     ttxssh
18     PRIVATE
19 zmatsuo 7456 ${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h
20     ../matcher/matcher.c
21     arc4random.c
22     arc4random.h
23     auth.c
24     auth.h
25     buffer.c
26     buffer.h
27     chacha.c
28     chacha.h
29 zmatsuo 9252 cipher-3des1.c
30     cipher-chachapoly-libcrypto.c
31     cipher-chachapoly.h
32     cipher-ctr.c
33     cipher.c
34 zmatsuo 7456 cipher.h
35 zmatsuo 9252 comp.c
36     comp.h
37 zmatsuo 7456 config.h
38     crypt.c
39     crypt.h
40     dns.c
41     dns.h
42     ed25519.c
43     ed25519_bcrypt_pbkdf.c
44     ed25519_blf.h
45     ed25519_blocks.c
46     ed25519_blowfish.c
47     ed25519_crypto_api.h
48     ed25519_fe25519.c
49     ed25519_fe25519.h
50     ed25519_ge25519.c
51     ed25519_ge25519.h
52     ed25519_hash.c
53     ed25519_sc25519.c
54     ed25519_sc25519.h
55     ed25519_verify.c
56 zmatsuo 9252 fwd-socks.c
57     fwd-socks.h
58 zmatsuo 7456 fwd.c
59     fwd.h
60     fwdui.c
61     fwdui.h
62 zmatsuo 9252 hostkey.c
63     hostkey.h
64 zmatsuo 7456 hosts.c
65     hosts.h
66     kex.c
67     kex.h
68     key.c
69     key.h
70     keyfiles.c
71     keyfiles.h
72 zmatsuo 9252 mac.c
73     mac.h
74 zmatsuo 7456 pkt.c
75     pkt.h
76 zmatsuo 9252 poly1305.c
77     poly1305.h
78 zmatsuo 7456 resource.h
79     sftp.c
80     sftp.h
81     ssh.c
82     ssh.h
83 zmatsuo 9252 ssherr.c
84     ssherr.h
85     ttxssh-version.h
86     ttxssh-version.rc
87 zmatsuo 7456 ttxssh.c
88     ttxssh.def
89     ttxssh.h
90     ttxssh.rc
91     util.c
92     util.h
93     x11util.c
94     x11util.h
95     ${COMMON_SRC}
96     )
97    
98 zmatsuo 7952 target_sources(
99     ttxssh
100     PRIVATE
101     ../../teraterm/teraterm/WSAAsyncGetAddrInfo.c
102     ../../teraterm/common/ttcommon.h
103     ../../teraterm/common/i18n.h
104     ../../teraterm/common/ttlib.h
105     ../../teraterm/common/ttlib.c
106     ../../teraterm/common/dlglib.h
107     ../../teraterm/common/dlglib.c
108     ../../teraterm/common/dlglib_cpp.cpp
109     ../../teraterm/common/dlglib_tmpl.cpp
110     ../../teraterm/common/servicenames.h
111     ../../teraterm/common/codeconv.cpp
112     ../../teraterm/common/codeconv.h
113     ../../teraterm/common/tipwin.cpp
114     ../../teraterm/common/tipwin.h
115     )
116 zmatsuo 7456
117 zmatsuo 7952 source_group(
118     "common"
119     REGULAR_EXPRESSION
120     "teraterm\/common\/")
121    
122     target_include_directories(
123     ttxssh
124     PRIVATE
125 zmatsuo 7456 ../../teraterm/teraterm
126     ../../teraterm/common
127     ../matcher
128     ../putty
129     ${OPENSSL_INCLUDE_DIRS}
130     ${ZLIB_INCLUDE_DIRS}
131 zmatsuo 7952 )
132 zmatsuo 7456
133 zmatsuo 7536 set_target_properties(
134     ttxssh
135     PROPERTIES
136     PREFIX ""
137     )
138    
139 zmatsuo 7952 target_compile_definitions(
140     ttxssh
141     PRIVATE
142     $<$<CONFIG:Debug>:_CRTDBG_MAP_ALLOC>
143     )
144     if(USE_UNICODE_API)
145     target_compile_definitions(
146     ttxssh
147     PRIVATE
148     UNICODE
149     _UNICODE
150     )
151     endif()
152    
153    
154 zmatsuo 7456 target_link_libraries(
155     ttxssh
156     libputty
157     ttpcmn
158 zmatsuo 7952 ${ZLIB_LIB}
159 zmatsuo 7456 ${OPENSSL_LIB}
160     #
161     ws2_32
162     dnsapi
163     gdi32
164     comdlg32
165     delayimp
166 zmatsuo 8332 # OpenSSL が使用
167     crypt32.lib # TODO このlibを使用しないパッチを適応したら削除すること
168 zmatsuo 7456 )
169    
170     ### create puttyversion.h
171    
172 zmatsuo 7532 set(PUTTY_ISS "${CMAKE_SOURCE_DIR}/libs/putty/windows/putty.iss")
173     if(NOT EXISTS ${PUTTY_ISS})
174     message(FATAL_ERROR "${PUTTY_ISS} not found")
175     endif()
176    
177 zmatsuo 7456 file(READ "${CMAKE_SOURCE_DIR}/libs/putty/windows/putty.iss" iis)
178    
179     string(REGEX MATCH "VersionInfoTextVersion=([^\n]+)\n" _ ${iis})
180     set(version_str ${CMAKE_MATCH_1})
181     if("${version_str}" STREQUAL "")
182     string(REGEX MATCH "AppVerName=([^\n]+)\n" _ ${iis})
183     set(version_str ${CMAKE_MATCH_1})
184     endif()
185     if("${version_str}" STREQUAL "")
186     set(version_str "unknown")
187     endif()
188     message("putty version=\"${version_str}\"")
189     FILE(
190     WRITE ${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h
191     "#define PUTTYVERSION \"${version_str}\"\n"
192     )
193 zmatsuo 7990
194     install(
195     TARGETS ttxssh
196     RUNTIME
197     DESTINATION .
198     )

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