diff options
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/CMakeLists.txt | 42 | ||||
-rw-r--r-- | ssl/Makefile.am | 56 |
2 files changed, 92 insertions, 6 deletions
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index e2eeab5..cd7e335 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt | |||
@@ -72,6 +72,13 @@ target_include_directories(ssl_obj | |||
72 | ../include | 72 | ../include |
73 | ${CMAKE_BINARY_DIR}/include) | 73 | ${CMAKE_BINARY_DIR}/include) |
74 | 74 | ||
75 | if(MSVC) | ||
76 | # "C4702" - unreachable code | ||
77 | set_source_files_properties(d1_pkt.c s3_cbc.c PROPERTIES | ||
78 | COMPILE_OPTIONS /wd4702 | ||
79 | ) | ||
80 | endif() | ||
81 | |||
75 | add_library(bs_obj OBJECT ${BS_SRC}) | 82 | add_library(bs_obj OBJECT ${BS_SRC}) |
76 | target_include_directories(bs_obj | 83 | target_include_directories(bs_obj |
77 | PRIVATE | 84 | PRIVATE |
@@ -86,16 +93,16 @@ endif() | |||
86 | 93 | ||
87 | export_symbol(ssl ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym) | 94 | export_symbol(ssl ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym) |
88 | target_link_libraries(ssl crypto ${PLATFORM_LIBS}) | 95 | target_link_libraries(ssl crypto ${PLATFORM_LIBS}) |
89 | if (WIN32) | ||
90 | set(SSL_POSTFIX -${SSL_MAJOR_VERSION} PARENT_SCOPE) | ||
91 | endif() | ||
92 | set_target_properties(ssl PROPERTIES | 96 | set_target_properties(ssl PROPERTIES |
93 | OUTPUT_NAME ssl${SSL_POSTFIX} | 97 | OUTPUT_NAME ssl |
94 | ARCHIVE_OUTPUT_NAME ssl${SSL_POSTFIX} | 98 | ARCHIVE_OUTPUT_NAME ssl |
95 | EXPORT_NAME SSL | 99 | EXPORT_NAME SSL |
96 | VERSION ${SSL_VERSION} | 100 | VERSION ${SSL_VERSION} |
97 | SOVERSION ${SSL_MAJOR_VERSION} | 101 | SOVERSION ${SSL_MAJOR_VERSION} |
98 | ) | 102 | ) |
103 | if(NOT CMAKE_VERSION VERSION_LESS 3.27.0) | ||
104 | set_target_properties(ssl PROPERTIES DLL_NAME_WITH_SOVERSION TRUE) | ||
105 | endif() | ||
99 | 106 | ||
100 | target_include_directories( | 107 | target_include_directories( |
101 | ssl | 108 | ssl |
@@ -104,6 +111,30 @@ target_include_directories( | |||
104 | $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> | 111 | $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> |
105 | ) | 112 | ) |
106 | 113 | ||
114 | if(HOST_AARCH64) | ||
115 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/aarch64/) | ||
116 | elseif(HOST_ARM) | ||
117 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/arm/) | ||
118 | elseif(HOST_I386) | ||
119 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/i386/) | ||
120 | elseif(HOST_LOONGARCH64) | ||
121 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/loongarch64) | ||
122 | elseif(HOST_MIPS64) | ||
123 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/mips64) | ||
124 | elseif(HOST_MIPS) | ||
125 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/mips) | ||
126 | elseif(HOST_POWERPC) | ||
127 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/powerpc) | ||
128 | elseif(HOST_POWERPC64) | ||
129 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/powerpc64) | ||
130 | elseif(HOST_RISCV64) | ||
131 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/riscv64) | ||
132 | elseif(HOST_SPARC64) | ||
133 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/sparc64) | ||
134 | elseif(HOST_X86_64) | ||
135 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/amd64) | ||
136 | endif() | ||
137 | |||
107 | install( | 138 | install( |
108 | TARGETS ssl | 139 | TARGETS ssl |
109 | EXPORT SSL-target | 140 | EXPORT SSL-target |
@@ -135,4 +166,3 @@ if(BUILD_SHARED_LIBS) | |||
135 | add_library(ssl-static STATIC $<TARGET_OBJECTS:ssl_obj>) | 166 | add_library(ssl-static STATIC $<TARGET_OBJECTS:ssl_obj>) |
136 | target_link_libraries(ssl-static crypto-static ${PLATFORM_LIBS}) | 167 | target_link_libraries(ssl-static crypto-static ${PLATFORM_LIBS}) |
137 | endif() | 168 | endif() |
138 | |||
diff --git a/ssl/Makefile.am b/ssl/Makefile.am index a7a7d72..2c84bff 100644 --- a/ssl/Makefile.am +++ b/ssl/Makefile.am | |||
@@ -114,3 +114,59 @@ noinst_HEADERS += tls12_internal.h | |||
114 | noinst_HEADERS += tls13_internal.h | 114 | noinst_HEADERS += tls13_internal.h |
115 | noinst_HEADERS += tls13_handshake.h | 115 | noinst_HEADERS += tls13_handshake.h |
116 | noinst_HEADERS += tls13_record.h | 116 | noinst_HEADERS += tls13_record.h |
117 | |||
118 | # arch | ||
119 | if HOST_AARCH64 | ||
120 | libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/aarch64/ | ||
121 | endif | ||
122 | noinst_HEADERS += $(top_srcdir)/crypto/arch/aarch64/crypto_arch.h | ||
123 | |||
124 | if HOST_ARM | ||
125 | libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/arm/ | ||
126 | endif | ||
127 | noinst_HEADERS += $(top_srcdir)/crypto/arch/arm/crypto_arch.h | ||
128 | |||
129 | if HOST_I386 | ||
130 | libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/i386/ | ||
131 | endif | ||
132 | noinst_HEADERS += $(top_srcdir)/crypto/arch/i386/crypto_arch.h | ||
133 | |||
134 | if HOST_LOONGARCH64 | ||
135 | libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/loongarch64/ | ||
136 | endif | ||
137 | noinst_HEADERS += $(top_srcdir)/crypto/arch/loongarch64/crypto_arch.h | ||
138 | |||
139 | if HOST_MIPS | ||
140 | libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/mips/ | ||
141 | endif | ||
142 | noinst_HEADERS += $(top_srcdir)/crypto/arch/mips/crypto_arch.h | ||
143 | |||
144 | if HOST_MIPS64 | ||
145 | libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/mips64/ | ||
146 | endif | ||
147 | noinst_HEADERS += $(top_srcdir)/crypto/arch/mips64/crypto_arch.h | ||
148 | |||
149 | if HOST_POWERPC | ||
150 | libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/powerpc/ | ||
151 | endif | ||
152 | noinst_HEADERS += $(top_srcdir)/crypto/arch/powerpc/crypto_arch.h | ||
153 | |||
154 | if HOST_POWERPC64 | ||
155 | libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/powerpc64/ | ||
156 | endif | ||
157 | noinst_HEADERS += $(top_srcdir)/crypto/arch/powerpc64/crypto_arch.h | ||
158 | |||
159 | if HOST_RISCV64 | ||
160 | libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/riscv64/ | ||
161 | endif | ||
162 | noinst_HEADERS += $(top_srcdir)/crypto/arch/riscv64/crypto_arch.h | ||
163 | |||
164 | if HOST_SPARC64 | ||
165 | libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/sparc64/ | ||
166 | endif | ||
167 | noinst_HEADERS += $(top_srcdir)/crypto/arch/sparc64/crypto_arch.h | ||
168 | |||
169 | if HOST_X86_64 | ||
170 | libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/amd64/ | ||
171 | endif | ||
172 | noinst_HEADERS += $(top_srcdir)/crypto/arch/amd64/crypto_arch.h | ||