-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpremake5.lua
More file actions
57 lines (46 loc) · 1.13 KB
/
premake5.lua
File metadata and controls
57 lines (46 loc) · 1.13 KB
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
local ROOT_DIR = path.getdirectory(_SCRIPT) .. "/"
-- Load the OpenSSL extension
include "modules/openssl/openssl.lua"
local openssl = premake.extensions.openssl
-- Configure the OpenSSL build
openssl_config = {
src_dir = ROOT_DIR .. "openssl_tarball/",
include_dir = ROOT_DIR .. "include/",
excluded_libs = {
"jpake",
"rc5",
"md2",
"store",
"engine",
},
}
--
-- Generate public OpenSSL header files
--
if _ACTION == "openssl_headers" then
print "Generating header files"
premake.extensions.openssl.copy_public_headers(openssl_config)
os.exit(0)
end
--
-- Generate a solution with crypto/ssl Static Library projects
--
solution "libssl"
configurations {
"debug",
"release",
}
language "C"
kind "StaticLib"
location (ROOT_DIR .. ".build/projects/")
objdir (ROOT_DIR .. ".build/obj/")
configuration {"debug"}
targetdir (ROOT_DIR .. "lib/debug/")
configuration {"release"}
optimize "Speed"
targetdir (ROOT_DIR .. "lib/release/")
configuration {}
project "crypto"
openssl.crypto_project(openssl_config)
project "ssl"
openssl.ssl_project(openssl_config)