forked from zhaozg/lua-openssl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openssl-scm-0.rockspec
81 lines (73 loc) · 2.05 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
package = "openssl"
version = "scm-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.
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","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/ssl.c","src/th-lock.c","src/util.c",
"src/x509.c","src/xattrs.c","src/xexts.c","src/xname.c",
"src/xalgor.c","src/xstore.c", "src/srp.c",
"deps/auxiliar/subsidiar.c"
},
incdirs = {"$(OPENSSL_DIR)/include", "deps/auxiliar", "deps/lua-compat"},
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"},
}
}
}
},
}