-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake4.lua
76 lines (57 loc) · 1.45 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
solution "Dukbind"
configurations { "Debug", "Release" }
project "Dukbind"
targetname "dukbind"
language "C++"
kind "StaticLib"
flags { "ExtraWarnings", "StaticRuntime" }
includedirs { "duktape/src", "include", "src" }
files
{
"src/**.h", "src/**.cpp",
}
configuration "Debug"
targetdir "lib/debug"
defines "_DEBUG"
flags { "Symbols" }
configuration "Release"
targetdir "lib/release"
defines "NDEBUG"
flags { "OptimizeSize" }
configuration "vs*"
defines { "_CRT_SECURE_NO_WARNINGS" }
configuration "vs2005"
defines {"_CRT_SECURE_NO_DEPRECATE" }
if _ACTION == "clean" then
end
project "Test"
targetname "dukbind_test"
language "C++"
kind "ConsoleApp"
flags { "ExtraWarnings", "StaticRuntime" }
defines { "DUKBIND_TEST" }
includedirs { "Catch/include", "duktape/src-separate", "include", "src", "tests" }
files
{
"tests/**.cpp",
"src/**.cpp",
"duktape/src-separate/*.c"
}
configuration "Debug"
targetdir "tests/bin/debug"
defines "_DEBUG"
flags { "Symbols" }
configuration "Release"
targetdir "tests/bin/release"
defines "NDEBUG"
flags { "OptimizeSize" }
configuration "vs*"
defines { "_CRT_SECURE_NO_WARNINGS" }
configuration "vs2005"
defines {"_CRT_SECURE_NO_DEPRECATE" }
configuration "linux" or "macosx"
buildoptions { "--std=c++11" }
if _ACTION == "clean" then
os.rmdir("lib")
os.rmdir("tests/bin")
end