forked from mendsley/libssl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake4.lua
53 lines (43 loc) · 1.35 KB
/
premake4.lua
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
local ROOT_DIR = path.getdirectory(_SCRIPT) .. "/"
dofile (ROOT_DIR .. "premake/platforms.lua")
solution "libssl"
configurations {
"release",
"debug",
}
platforms {
"x32",
"x64",
"native"
}
flags {
"Symbols",
"StaticRuntime"
}
local safeplatform = ""
if _ACTION=="gmake" and not _OPTIONS["platform"] then
print("Cannot build a gmake target without a platform from --platform")
os.exit(1)
end
if _ACTION then
safeplatform = _ACTION
if _OPTIONS["platform"] then
safeplatform = _ACTION .. "_" .. _OPTIONS["platform"]
end
end
location (ROOT_DIR .. ".build/projects/" .. safeplatform .. "/")
objdir (ROOT_DIR .. ".build/obj/" .. safeplatform .. "/")
configuration {"debug"}
targetdir (ROOT_DIR .. "lib/" .. safeplatform .. "/debug/")
configuration {"release"}
targetdir (ROOT_DIR .. "lib/" .. safeplatform .. "/release/")
configuration {"x64", "debug"}
targetdir (ROOT_DIR .. "lib/" .. safeplatform .. "_x64/debug/")
configuration {"x64", "release"}
targetdir (ROOT_DIR .. "lib/" .. safeplatform .. "_x64/release/")
configuration {"x32", "debug"}
targetdir (ROOT_DIR .. "lib/" .. safeplatform .. "_x32/debug/")
configuration {"x32", "release"}
targetdir (ROOT_DIR .. "lib/" .. safeplatform .. "_x32/release/")
configuration {}
dofile (ROOT_DIR .. "premake/libssl.lua")