diff options
Diffstat (limited to 'src/actions/example/example_solution.lua')
-rw-r--r-- | src/actions/example/example_solution.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/actions/example/example_solution.lua b/src/actions/example/example_solution.lua index 8d434f5..b93eb48 100644 --- a/src/actions/example/example_solution.lua +++ b/src/actions/example/example_solution.lua @@ -1,6 +1,6 @@ -- An example solution generator; see _example.lua for action description --- +-- -- The solution generation function, attached to the action in _example.lua. -- By now, premake.generate() has created the solution file using the name -- provided in _example.lua, and redirected input to this new file. @@ -9,12 +9,12 @@ function premake.example.solution(sln) -- If necessary, set an explicit line ending sequence -- io.eol = '\r\n' - + -- Let's start with a header _p('-- Example solution file version 1.0') _p('Name: %s', sln.name) _p('') - + -- List the build configurations for _, cfgname in ipairs(sln.configurations) do @@ -22,7 +22,7 @@ end _p('') - + -- List the projects contained by the solution, with some info on each for prj in premake.solution.eachproject(sln) do _p('Project: %s', prj.name) @@ -30,7 +30,7 @@ _p(1, 'Language: %s', prj.language) _p(1, 'ID: {%s}', prj.uuid) _p(1, 'Relative path: %s', path.getrelative(sln.location, prj.location)) - + -- List dependencies, if there are any local deps = premake.getdependencies(prj) if #deps > 0 then @@ -42,5 +42,5 @@ _p('') end - + end |