Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
gafferongames committed Dec 24, 2023
1 parent c2f8c79 commit bd671e9
Showing 1 changed file with 0 additions and 77 deletions.
77 changes: 0 additions & 77 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,83 +31,6 @@ project "stats"
project "fuzz"
files { "fuzz.c", "reliable.c" }

if os.ishost "windows" then

-- Windows

newaction
{
trigger = "solution",
description = "Create and open the reliable solution",
execute = function ()
os.execute "premake5 vs2019"
os.execute "start reliable.sln"
end
}

else

-- MacOSX and Linux.

newaction
{
trigger = "test",
description = "Build and run all unit tests",
execute = function ()
os.execute "test ! -e Makefile && premake5 gmake"
if os.execute "make -j32 test" then
os.execute "./bin/test"
end
end
}

newaction
{
trigger = "soak",
description = "Build and run soak test",
execute = function ()
os.execute "test ! -e Makefile && premake5 gmake"
if os.execute "make -j32 soak" then
os.execute "./bin/soak"
end
end
}

newaction
{
trigger = "stats",
description = "Build and run stats example",
execute = function ()
os.execute "test ! -e Makefile && premake5 gmake"
if os.execute "make -j32 stats" then
os.execute "./bin/stats"
end
end
}

newaction
{
trigger = "fuzz",
description = "Build and run fuzz test",
execute = function ()
os.execute "test ! -e Makefile && premake5 gmake"
if os.execute "make -j32 fuzz" then
os.execute "./bin/fuzz"
end
end
}

newaction
{
trigger = "loc",
description = "Count lines of code",
execute = function ()
os.execute "wc -l *.h *.c *.cpp"
end
}

end

newaction
{
trigger = "clean",
Expand Down

0 comments on commit bd671e9

Please sign in to comment.