-
Notifications
You must be signed in to change notification settings - Fork 418
/
unittest++.lua
44 lines (37 loc) · 1.02 KB
/
unittest++.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
--
-- Copyright 2010-2013 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
function flagsremove(name)
-- bx's toolchain.lua disables exceptions everywhere
-- this function can remove some of those flags when
-- needed.
local container, err = premake.getobject("solution")
for _, block in pairs(container["blocks"]) do
local tbl = block["flags"]
for index, value in pairs(tbl) do
if value == name then
table.remove(tbl, index)
end
end
end
end
project "UnitTest++"
uuid "ab932f5c-2409-11e3-b000-887628d43830"
kind "StaticLib"
flagsremove("NoExceptions")
files {
"../3rdparty/UnitTest++/src/*.cpp",
"../3rdparty/UnitTest++/src/*.h",
}
configuration { "linux or osx or android-* or *nacl*" }
files {
"../3rdparty/UnitTest++/src/Posix/**.cpp",
"../3rdparty/UnitTest++/src/Posix/**.h",
}
configuration { "mingw* or vs*" }
files {
"../3rdparty/UnitTest++/src/Win32/**.cpp",
"../3rdparty/UnitTest++/src/Win32/**.h",
}
configuration {}