Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/action/vs200x/vs2003.c')
-rw-r--r--src/action/vs200x/vs2003.c168
1 files changed, 84 insertions, 84 deletions
diff --git a/src/action/vs200x/vs2003.c b/src/action/vs200x/vs2003.c
index 655aa46..6c9ec3c 100644
--- a/src/action/vs200x/vs2003.c
+++ b/src/action/vs200x/vs2003.c
@@ -1,84 +1,84 @@
-/**
- * \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 "action/action.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);
-}
+/**
+ * \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 "action/action.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);
+}