-
Notifications
You must be signed in to change notification settings - Fork 65
/
CMWin32OpenSSL.class.st
113 lines (89 loc) · 2.54 KB
/
CMWin32OpenSSL.class.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
Class {
#name : #CMWin32OpenSSL,
#superclass : #CMOpenSSL,
#category : #'CMakeVMMaker-Libs'
}
{ #category : #'as yet unclassified' }
CMWin32OpenSSL class >> platformName [
^'win32'
]
{ #category : #'as yet unclassified' }
CMWin32OpenSSL >> archiveMD5Sum [
"answer the MD5 checksum (in string) for downloaded library archive
(to check that downloaded file is not corrupt).
You can take this sum by issuing:
md5 filename
from command line
"
^ 'ae412727c8c15b67880aef7bd2999b2e'
]
{ #category : #'as yet unclassified' }
CMWin32OpenSSL >> build [
gen
puts:
'
add_custom_command(OUTPUT "${libSourcesDir}/Makefile"
COMMAND ./config shared --prefix=''${installPrefix}''
WORKING_DIRECTORY "${libSourcesDir}"
DEPENDS "${unpackTarget}"
)
add_custom_command(OUTPUT "${installPrefix}/bin/libeay32.dll" "${installPrefix}/bin/ssleay32.dll"
COMMAND make
COMMAND make install
WORKING_DIRECTORY "${libSourcesDir}"
DEPENDS "${libSourcesDir}/Makefile"
COMMENT "Building ${libName}"
)
'
]
{ #category : #'as yet unclassified' }
CMWin32OpenSSL >> configurationFlags [
^ 'shared'
]
{ #category : #'as yet unclassified' }
CMWin32OpenSSL >> copyArtefacts [
self copy: '${installPrefix}/bin/libeay32.dll' to: '${externalModulesDir}/libeay32.dll'.
self copy: '${installPrefix}/bin/ssleay32.dll' to: '${externalModulesDir}/ssleay32.dll'.
" self copy: '${installPrefix}/lib/libssl.dll.a' to: '${externalModulesDir}/libssl.dll.a'.
self copy: '${installPrefix}/lib/libcrypto.dll.a' to: '${externalModulesDir}/libcrypto.dll.a'.
"
"
'libcrypto.dll.a' 'libssl.dll.a'.
"
]
{ #category : #'as yet unclassified' }
CMWin32OpenSSL >> defineAsTarget [
gen puts:
'add_custom_target(', self buildTarget , '
DEPENDS
"${externalModulesDir}/libeay32.dll"
"${externalModulesDir}/ssleay32.dll"
)'
"${externalModulesDir}/${libraryFileName}"
]
{ #category : #'as yet unclassified' }
CMWin32OpenSSL >> defineGlobalTargets [
]
{ #category : #'as yet unclassified' }
CMWin32OpenSSL >> downloadURL [
^'http://www.openssl.org/source/openssl-1.0.1c.tar.gz'
]
{ #category : #'as yet unclassified' }
CMWin32OpenSSL >> includeDir [
^ '"${thirdpartyDir}/out/include"'
]
{ #category : #'as yet unclassified' }
CMWin32OpenSSL >> libraryFileName [
^ 'libssl.dll.a'
]
{ #category : #'as yet unclassified' }
CMWin32OpenSSL >> setVariables [
super setVariables.
gen
set: #libraryFileName to: self libraryFileName;
set: #libInstalled to: '${installPrefix}/lib/${libraryFileName}'
]
{ #category : #'as yet unclassified' }
CMWin32OpenSSL >> unpackedDirName [
^ 'openssl-1.0.1c'
]