Skip to content

Commit

Permalink
Move VStudio action into a module.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom van Dijck committed Jun 19, 2017
1 parent 22cebb4 commit 3f2f40c
Show file tree
Hide file tree
Showing 103 changed files with 7,956 additions and 7,911 deletions.
2 changes: 2 additions & 0 deletions modules/d/actions/vstudio.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

m.visuald = {}

require ("vstudio")

local vstudio = p.vstudio
local workspace = p.workspace
local project = p.project
Expand Down
23 changes: 23 additions & 0 deletions modules/vstudio/_manifest.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
return {
"_preload.lua",
"vstudio.lua",
"vs2005.lua",
"vs2008.lua",
"vs200x_vcproj.lua",
"vs200x_vcproj_user.lua",
"vs2005_solution.lua",
"vs2005_csproj.lua",
"vs2005_csproj_user.lua",
"vs2010.lua",
"vs2010_nuget.lua",
"vs2010_vcxproj.lua",
"vs2010_vcxproj_user.lua",
"vs2010_vcxproj_filters.lua",
"vs2010_rules_props.lua",
"vs2010_rules_targets.lua",
"vs2010_rules_xml.lua",
"vs2012.lua",
"vs2013.lua",
"vs2015.lua",
"vs2017.lua",
}
37 changes: 37 additions & 0 deletions modules/vstudio/_preload.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
--
-- _preload.lua
-- Define the makefile action(s).
-- Copyright (c) 2002-2015 Jason Perkins and the Premake project
--

local p = premake
local project = p.project

-- initialize module.
p.modules.vstudio = p.modules.vstudio or {}
p.modules.vstudio._VERSION = p._VERSION
p.vstudio = p.modules.vstudio

-- load actions.
include("vs2005.lua")
include("vs2008.lua")
include("vs2010.lua")
include("vs2012.lua")
include("vs2013.lua")
include("vs2015.lua")
include("vs2017.lua")

--
-- Decide when the full module should be loaded.
--

return function(cfg)
return
_ACTION == "vs2005" or
_ACTION == "vs2008" or
_ACTION == "vs2010" or
_ACTION == "vs2012" or
_ACTION == "vs2013" or
_ACTION == "vs2015" or
_ACTION == "vs2017";
end
86 changes: 86 additions & 0 deletions modules/vstudio/tests/_tests.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
require ("vstudio")

return {
-- Visual Studio 2005-2013 C# projects
"cs2005/test_assembly_refs.lua",
"cs2005/test_build_events.lua",
"cs2005/test_common_props.lua",
"cs2005/test_compiler_props.lua",
"cs2005/test_debug_props.lua",
"cs2005/test_files.lua",
"cs2005/test_icon.lua",
"cs2005/test_nuget_config.lua",
"cs2005/test_nuget_packages_config.lua",
"cs2005/test_output_props.lua",
"cs2005/projectelement.lua",
"cs2005/test_platform_groups.lua",
"cs2005/test_project_refs.lua",
"cs2005/projectsettings.lua",
"cs2005/test_targets.lua",
"cs2005/test_user_file.lua",

-- Visual Studio 2005-2013 solutions
"sln2005/test_dependencies.lua",
"sln2005/test_header.lua",
"sln2005/test_nested_projects.lua",
"sln2005/test_projects.lua",
"sln2005/test_platforms.lua",
"sln2005/test_sections.lua",

-- Visual Studio 2002-2008 C/C++ projects
"vc200x/test_assembly_refs.lua",
"vc200x/test_build_steps.lua",
"vc200x/test_configuration.lua",
"vc200x/test_compiler_block.lua",
"vc200x/test_debug_settings.lua",
"vc200x/test_excluded_configs.lua",
"vc200x/test_files.lua",
"vc200x/test_linker_block.lua",
"vc200x/test_manifest_block.lua",
"vc200x/test_nmake_settings.lua",
"vc200x/test_platforms.lua",
"vc200x/test_project.lua",
"vc200x/test_project_refs.lua",
"vc200x/test_resource_compiler.lua",
"vc200x/test_user_file.lua",

-- Visual Studio 2010-2013 C/C++ projects
"vc2010/test_assembly_refs.lua",
"vc2010/test_build_events.lua",
"vc2010/test_build_log.lua",
"vc2010/test_character_set.lua",
"vc2010/test_compile_settings.lua",
"vc2010/test_config_props.lua",
"vc2010/test_debug_settings.lua",
"vc2010/test_excluded_configs.lua",
"vc2010/test_extension_settings.lua",
"vc2010/test_extension_targets.lua",
"vc2010/test_language_settings.lua",
"vc2010/test_language_targets.lua",
"vc2010/test_floatingpoint.lua",
"vc2010/test_globals.lua",
"vc2010/test_header.lua",
"vc2010/test_files.lua",
"vc2010/test_filter_ids.lua",
"vc2010/test_filters.lua",
"vc2010/test_imagexex_settings.lua",
"vc2010/test_item_def_group.lua",
"vc2010/test_link.lua",
"vc2010/test_manifest.lua",
"vc2010/test_nmake_props.lua",
"vc2010/test_nuget_packages_config.lua",
"vc2010/test_output_props.lua",
"vc2010/test_platform_toolset.lua",
"vc2010/test_project_configs.lua",
"vc2010/test_project_refs.lua",
"vc2010/test_prop_sheet.lua",
"vc2010/test_resource_compile.lua",
"vc2010/test_rule_props.lua",
"vc2010/test_rule_targets.lua",
"vc2010/test_rule_vars.lua",
"vc2010/test_rule_xml.lua",
"vc2010/test_target_machine.lua",
"vc2010/test_user_file.lua",
"vc2010/test_vectorextensions.lua",
"vc2010/test_ensure_nuget_imports.lua",
}
File renamed without changes.
Loading

0 comments on commit 3f2f40c

Please sign in to comment.