diff options
Diffstat (limited to 'src/actions/vs200x/vs2003.c')
-rw-r--r-- | src/actions/vs200x/vs2003.c | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/src/actions/vs200x/vs2003.c b/src/actions/vs200x/vs2003.c deleted file mode 100644 index db83666..0000000 --- a/src/actions/vs200x/vs2003.c +++ /dev/null @@ -1,84 +0,0 @@ -/** - * \file vs2003.c - * \brief Visual Studio 2003 project file generation action. - * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project - */ - -#include <stdlib.h> -#include "premake.h" -#include "actions/actions.h" -#include "vs200x.h" -#include "vs200x_solution.h" -#include "vs200x_project.h" - - -/** The project features supported by this action */ -static SessionFeatures Features = -{ - { "c", "c++", NULL }, -}; - - -/** The VS2003 solution writing process, for session_enumerate_objects() */ -static SessionSolutionCallback SolutionCallbacks[] = -{ - vs200x_solution_create, - vs2003_solution_signature, - vs2002_solution_projects, - vs2003_solution_configuration, - vs2002_solution_project_configuration, - vs2002_solution_extensibility, - NULL -}; - -/** The VS2003 project writing process, for session_enumerate_objects() */ -static SessionProjectCallback ProjectCallbacks[] = -{ - vs200x_project_create, - vs200x_project_encoding, - vs200x_project_element, - vs200x_project_platforms, - vs200x_project_tool_files, - session_enumerate_configurations, - vs200x_project_references, - vs200x_project_files, - vs200x_project_globals, - NULL -}; - -/** The VS2003 configuration writing process, for session_enumerate_configurations() */ -static SessionProjectCallback ConfigCallbacks[] = -{ - vs200x_project_config_element, - vs200x_project_vc_cl_compiler_tool, - vs200x_project_vc_custom_build_tool, - vs200x_project_vc_linker_tool, - vs200x_project_vc_midl_tool, - vs200x_project_vc_post_build_event_tool, - vs200x_project_vc_pre_build_event_tool, - vs200x_project_vc_pre_link_event_tool, - vs200x_project_vc_resource_compiler_tool, - vs200x_project_vc_web_service_proxy_generator_tool, - vs200x_project_vc_xml_data_generator_tool, - vs200x_project_vc_web_deployment_tool, - vs200x_project_config_end, - NULL -}; - - -/** - * The Visual Studio 2003 action handler. - * \param sess The active session object. - * \returns OKAY if successful. - */ -int vs2003_action(Session sess) -{ - /* make sure I can support all of the features used in the session */ - if (session_validate(sess, &Features) != OKAY) - { - return !OKAY; - } - - stream_writeline(Console, "Generating project files for Visual Studio 2003..."); - return session_enumerate_objects(sess, SolutionCallbacks, ProjectCallbacks, ConfigCallbacks); -} |