comparison Resources/CMake/OpenSslConfiguration.cmake @ 2711:ef97db3760ed jobs

integration mainline->jobs
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Jul 2018 10:53:13 +0200
parents d2f70c8f8bfd 26eec77abc76
children 301adea5cc7f
comparison
equal deleted inserted replaced
2708:83c991aeb611 2711:ef97db3760ed
1 if (STATIC_BUILD OR NOT USE_SYSTEM_OPENSSL) 1 if (STATIC_BUILD OR NOT USE_SYSTEM_OPENSSL)
2 # WARNING - We had to repack the upstream ".tar.gz" file to a ZIP 2 SET(OPENSSL_SOURCES_DIR ${CMAKE_BINARY_DIR}/openssl-1.0.2o)
3 # file, as the upstream distribution ships symbolic links that are 3 SET(OPENSSL_URL "http://www.orthanc-server.com/downloads/third-party/openssl-1.0.2o.tar.gz")
4 # not always properly handled when uncompressing on Windows. 4 SET(OPENSSL_MD5 "44279b8557c3247cbe324e2322ecd114")
5
6 SET(OPENSSL_SOURCES_DIR ${CMAKE_BINARY_DIR}/openssl-1.0.2d)
7 SET(OPENSSL_URL "http://www.orthanc-server.com/downloads/third-party/openssl-1.0.2d.zip")
8 SET(OPENSSL_MD5 "4b2ac15fc6db17f3dadc54482d3eee85")
9 5
10 if (IS_DIRECTORY "${OPENSSL_SOURCES_DIR}") 6 if (IS_DIRECTORY "${OPENSSL_SOURCES_DIR}")
11 set(FirstRun OFF) 7 set(FirstRun OFF)
12 else() 8 else()
13 set(FirstRun ON) 9 set(FirstRun ON)
14 endif() 10 endif()
15 11
16 DownloadPackage(${OPENSSL_MD5} ${OPENSSL_URL} "${OPENSSL_SOURCES_DIR}") 12 DownloadPackage(${OPENSSL_MD5} ${OPENSSL_URL} "${OPENSSL_SOURCES_DIR}")
17 13
14 if (FirstRun)
15 file(MAKE_DIRECTORY ${OPENSSL_SOURCES_DIR}/include/openssl)
16
17 foreach(header
18 ${OPENSSL_SOURCES_DIR}/crypto/aes/aes.h
19 ${OPENSSL_SOURCES_DIR}/crypto/asn1/asn1.h
20 ${OPENSSL_SOURCES_DIR}/crypto/asn1/asn1_mac.h
21 ${OPENSSL_SOURCES_DIR}/crypto/asn1/asn1t.h
22 ${OPENSSL_SOURCES_DIR}/crypto/bf/blowfish.h
23 ${OPENSSL_SOURCES_DIR}/crypto/bio/bio.h
24 ${OPENSSL_SOURCES_DIR}/crypto/bn/bn.h
25 ${OPENSSL_SOURCES_DIR}/crypto/buffer/buffer.h
26 ${OPENSSL_SOURCES_DIR}/crypto/camellia/camellia.h
27 ${OPENSSL_SOURCES_DIR}/crypto/cast/cast.h
28 ${OPENSSL_SOURCES_DIR}/crypto/cmac/cmac.h
29 ${OPENSSL_SOURCES_DIR}/crypto/cms/cms.h
30 ${OPENSSL_SOURCES_DIR}/crypto/comp/comp.h
31 ${OPENSSL_SOURCES_DIR}/crypto/conf/conf.h
32 ${OPENSSL_SOURCES_DIR}/crypto/conf/conf_api.h
33 ${OPENSSL_SOURCES_DIR}/crypto/crypto.h
34 ${OPENSSL_SOURCES_DIR}/crypto/des/des.h
35 ${OPENSSL_SOURCES_DIR}/crypto/des/des_old.h
36 ${OPENSSL_SOURCES_DIR}/crypto/dh/dh.h
37 ${OPENSSL_SOURCES_DIR}/crypto/dsa/dsa.h
38 ${OPENSSL_SOURCES_DIR}/crypto/dso/dso.h
39 ${OPENSSL_SOURCES_DIR}/crypto/ebcdic.h
40 ${OPENSSL_SOURCES_DIR}/crypto/ec/ec.h
41 ${OPENSSL_SOURCES_DIR}/crypto/ecdh/ecdh.h
42 ${OPENSSL_SOURCES_DIR}/crypto/ecdsa/ecdsa.h
43 ${OPENSSL_SOURCES_DIR}/crypto/engine/engine.h
44 ${OPENSSL_SOURCES_DIR}/crypto/err/err.h
45 ${OPENSSL_SOURCES_DIR}/crypto/evp/evp.h
46 ${OPENSSL_SOURCES_DIR}/crypto/hmac/hmac.h
47 ${OPENSSL_SOURCES_DIR}/crypto/idea/idea.h
48 ${OPENSSL_SOURCES_DIR}/crypto/jpake/jpake.h
49 ${OPENSSL_SOURCES_DIR}/crypto/krb5/krb5_asn.h
50 ${OPENSSL_SOURCES_DIR}/crypto/lhash/lhash.h
51 ${OPENSSL_SOURCES_DIR}/crypto/md2/md2.h
52 ${OPENSSL_SOURCES_DIR}/crypto/md4/md4.h
53 ${OPENSSL_SOURCES_DIR}/crypto/md5/md5.h
54 ${OPENSSL_SOURCES_DIR}/crypto/mdc2/mdc2.h
55 ${OPENSSL_SOURCES_DIR}/crypto/modes/modes.h
56 ${OPENSSL_SOURCES_DIR}/crypto/objects/obj_mac.h
57 ${OPENSSL_SOURCES_DIR}/crypto/objects/objects.h
58 ${OPENSSL_SOURCES_DIR}/crypto/ocsp/ocsp.h
59 ${OPENSSL_SOURCES_DIR}/crypto/opensslconf.h
60 ${OPENSSL_SOURCES_DIR}/crypto/opensslv.h
61 ${OPENSSL_SOURCES_DIR}/crypto/ossl_typ.h
62 ${OPENSSL_SOURCES_DIR}/crypto/pem/pem.h
63 ${OPENSSL_SOURCES_DIR}/crypto/pem/pem2.h
64 ${OPENSSL_SOURCES_DIR}/crypto/pkcs12/pkcs12.h
65 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/pkcs7.h
66 ${OPENSSL_SOURCES_DIR}/crypto/pqueue/pqueue.h
67 ${OPENSSL_SOURCES_DIR}/crypto/rand/rand.h
68 ${OPENSSL_SOURCES_DIR}/crypto/rc2/rc2.h
69 ${OPENSSL_SOURCES_DIR}/crypto/rc4/rc4.h
70 ${OPENSSL_SOURCES_DIR}/crypto/rc5/rc5.h
71 ${OPENSSL_SOURCES_DIR}/crypto/ripemd/ripemd.h
72 ${OPENSSL_SOURCES_DIR}/crypto/rsa/rsa.h
73 ${OPENSSL_SOURCES_DIR}/crypto/seed/seed.h
74 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha.h
75 ${OPENSSL_SOURCES_DIR}/crypto/srp/srp.h
76 ${OPENSSL_SOURCES_DIR}/crypto/stack/safestack.h
77 ${OPENSSL_SOURCES_DIR}/crypto/stack/stack.h
78 ${OPENSSL_SOURCES_DIR}/crypto/store/store.h
79 ${OPENSSL_SOURCES_DIR}/crypto/symhacks.h
80 ${OPENSSL_SOURCES_DIR}/crypto/ts/ts.h
81 ${OPENSSL_SOURCES_DIR}/crypto/txt_db/txt_db.h
82 ${OPENSSL_SOURCES_DIR}/crypto/ui/ui.h
83 ${OPENSSL_SOURCES_DIR}/crypto/ui/ui_compat.h
84 ${OPENSSL_SOURCES_DIR}/crypto/whrlpool/whrlpool.h
85 ${OPENSSL_SOURCES_DIR}/crypto/x509/x509.h
86 ${OPENSSL_SOURCES_DIR}/crypto/x509/x509_vfy.h
87 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/x509v3.h
88 ${OPENSSL_SOURCES_DIR}/e_os2.h
89 ${OPENSSL_SOURCES_DIR}/ssl/dtls1.h
90 ${OPENSSL_SOURCES_DIR}/ssl/kssl.h
91 ${OPENSSL_SOURCES_DIR}/ssl/srtp.h
92 ${OPENSSL_SOURCES_DIR}/ssl/ssl.h
93 ${OPENSSL_SOURCES_DIR}/ssl/ssl2.h
94 ${OPENSSL_SOURCES_DIR}/ssl/ssl23.h
95 ${OPENSSL_SOURCES_DIR}/ssl/ssl3.h
96 ${OPENSSL_SOURCES_DIR}/ssl/tls1.h
97 )
98 file(COPY ${header} DESTINATION ${OPENSSL_SOURCES_DIR}/include/openssl)
99 endforeach()
100 endif()
101
18 add_definitions( 102 add_definitions(
19 -DOPENSSL_THREADS 103 -DOPENSSL_THREADS
20 -DOPENSSL_IA32_SSE2 104 -DOPENSSL_IA32_SSE2
21 -DOPENSSL_NO_ASM 105 -DOPENSSL_NO_ASM
22 -DOPENSSL_NO_DYNAMIC_ENGINE 106 -DOPENSSL_NO_DYNAMIC_ENGINE
200 ${OPENSSL_SOURCES_DIR}/crypto/evp/verify_extra_test.c 284 ${OPENSSL_SOURCES_DIR}/crypto/evp/verify_extra_test.c
201 ${OPENSSL_SOURCES_DIR}/crypto/x509/verify_extra_test.c 285 ${OPENSSL_SOURCES_DIR}/crypto/x509/verify_extra_test.c
202 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/v3prin.c 286 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/v3prin.c
203 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/v3nametest.c 287 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/v3nametest.c
204 ${OPENSSL_SOURCES_DIR}/crypto/constant_time_test.c 288 ${OPENSSL_SOURCES_DIR}/crypto/constant_time_test.c
205 ${OPENSSL_SOURCES_DIR}/crypto/ec/ecp_nistz256_table.c
206 289
207 ${OPENSSL_SOURCES_DIR}/ssl/heartbeat_test.c 290 ${OPENSSL_SOURCES_DIR}/ssl/heartbeat_test.c
291 ${OPENSSL_SOURCES_DIR}/ssl/fatalerrtest.c
292 ${OPENSSL_SOURCES_DIR}/ssl/dtlstest.c
208 ) 293 )
209 294
210 295
211 if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") 296 if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
212 set_source_files_properties( 297 set_source_files_properties(