forked from zhaozg/lua-openssl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openssl-scm-0.rockspec
113 lines (104 loc) · 2.45 KB
/
openssl-scm-0.rockspec
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
package = "openssl"
version = "scm-0"
rockspec_format = "3.0"
source = {
url = "https://github.com/zhaozg/lua-openssl/archive/master.zip"
}
description = {
summary = "Openssl binding for Lua",
homepage = "https://github.com/zhaozg/lua-openssl",
license = "MIT",
maintainer = "George Zhao",
detailed = [[
Full openssl bindings for luajit and lua 5.1/5.2/5.3/5.4.
This library makes openssl available to lua scripts.
]],
}
dependencies = {
"lua >= 5.1, <= 5.4"
}
external_dependencies = {
OPENSSL = {
header = "openssl/evp.h"
}
}
build = {
type = "builtin",
modules = {
openssl = {
sources = {
"deps/auxiliar/auxiliar.c",
"deps/auxiliar/subsidiar.c",
"src/asn1.c",
"src/bio.c",
"src/callback.c",
"src/cipher.c",
"src/cms.c",
"src/compat.c",
"src/crl.c",
"src/csr.c",
"src/dh.c",
"src/digest.c",
"src/dsa.c",
"src/ec.c",
"src/engine.c",
"src/hmac.c",
"src/lbn.c",
"src/lhash.c",
"src/misc.c",
"src/ocsp.c",
"src/openssl.c",
"src/ots.c",
"src/pkcs7.c",
"src/pkcs12.c",
"src/pkey.c",
"src/rsa.c",
"src/srp.c",
"src/ssl.c",
"src/th-lock.c",
"src/util.c",
"src/x509.c",
"src/xalgor.c",
"src/xattrs.c",
"src/xexts.c",
"src/xname.c",
"src/xstore.c"
},
incdirs = {"$(OPENSSL_DIR)/include", "deps/auxiliar", "deps/lua-compat/c-api"},
defines = {"PTHREADS"},
libraries = {"ssl", "crypto"},
}
},
platforms = {
windows = {
modules = {
openssl = {
libraries = {"libeay32", "ssleay32", "ws2_32", "kernel32", "user32", "gdi32", "advapi32"},
defines = {"LUA_BUILD_AS_DLL", "LUA_LIB", "WIN32_LEAN_AND_MEAN"},
incdirs = {"$(OPENSSL_DIR)/include"},
libdirs = {"$(OPENSSL_DIR)/lib"},
}
}
},
linux = {
modules = {
openssl = {
incdirs = {"$(OPENSSL_DIR)/include"},
libdirs = {"$(OPENSSL_DIR)/lib"},
}
}
},
macosx = {
modules = {
openssl = {
incdirs = {"$(OPENSSL_DIR)/include"},
libdirs = {"$(OPENSSL_DIR)/lib"},
}
}
}
},
}
test = {
type = "command",
command = "LUA=`luarocks config deploy_bin_dir`/`luarocks config lua_interpreter` && cd test && $LUA test.lua"
}