]> git.tdb.fi Git - builder.git/blobdiff - plugins/msvc/msvcplugin.cpp
Move the VS project and solution generators to the MSVC plugin
[builder.git] / plugins / msvc / msvcplugin.cpp
index 1a4fe7b54aca98c28f666a4d092d0af51683fc99..9ebf24a5f517809894bdfc81a09c038983fbc1c1 100644 (file)
@@ -1,6 +1,9 @@
 #include <msp/builder/architecture.h>
+#include <msp/builder/builder.h>
 #include "microsofttools.h"
 #include "msvcplugin.h"
+#include "vcxprojectfile.h"
+#include "vssolutionfile.h"
 
 void MsvcPlugin::add_tools(Toolchain &toolchain, const Architecture &arch) const
 {
@@ -8,6 +11,17 @@ void MsvcPlugin::add_tools(Toolchain &toolchain, const Architecture &arch) const
                toolchain.add_toolchain(new MicrosoftTools(builder, arch));
 }
 
+void MsvcPlugin::create_targets(SourcePackage &spkg) const
+{
+       const Architecture &native_arch = builder.get_native_arch();
+
+       if(native_arch.get_system()=="windows")
+       {
+               new VcxProjectFile(builder, spkg);
+               new VsSolutionFile(builder, spkg);
+       }
+}
+
 
 extern "C"
 Plugin *create_plugin(Builder &builder)