X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=plugins%2Fmsvc%2Fmsvcplugin.cpp;fp=plugins%2Fmsvc%2Fmsvcplugin.cpp;h=9ebf24a5f517809894bdfc81a09c038983fbc1c1;hb=1dc209f3b40259a5ff2ebdc3081e533b9fbc7b52;hp=1a4fe7b54aca98c28f666a4d092d0af51683fc99;hpb=3d4ef1b93e8cfd8467efd132cb80ad4bd368f33a;p=builder.git diff --git a/plugins/msvc/msvcplugin.cpp b/plugins/msvc/msvcplugin.cpp index 1a4fe7b..9ebf24a 100644 --- a/plugins/msvc/msvcplugin.cpp +++ b/plugins/msvc/msvcplugin.cpp @@ -1,6 +1,9 @@ #include +#include #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)