X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=plugins%2Fbase%2Fbaseplugin.cpp;h=0f05fa83fed5995e21f8d6858d94992b0a87bbad;hb=HEAD;hp=b43c851fbdf63cb6bab239a8fa9f633b90cffa5e;hpb=3d4ef1b93e8cfd8467efd132cb80ad4bd368f33a;p=builder.git diff --git a/plugins/base/baseplugin.cpp b/plugins/base/baseplugin.cpp index b43c851..0f05fa8 100644 --- a/plugins/base/baseplugin.cpp +++ b/plugins/base/baseplugin.cpp @@ -4,8 +4,6 @@ #include "basetools.h" #include "compilecommandsjson.h" #include "pkgconfigfile.h" -#include "vcxprojectfile.h" -#include "vssolutionfile.h" void BasePlugin::add_tools(Toolchain &toolchain, const Architecture &) const { @@ -22,18 +20,22 @@ void BasePlugin::create_targets(SourcePackage &spkg) const builder.get_build_graph().get_target("install")->add_dependency(*builder.get_toolchain().get_tool("CP").create_target(*pc)); } - if(native_arch.get_system()=="windows") - { - new VcxProjectFile(builder, spkg); - new VsSolutionFile(builder, spkg); - } - new CompileCommandsJson(builder, spkg); } +#ifdef BASETOOLS_BUILD +#if defined(_WIN32) +#define BASETOOLS_API __declspec(dllexport) +#elif defined(__GNUC__) +#define BASETOOLS_API __attribute__((visibility("default"))) +#else +#define BASETOOLS_API +#endif + extern "C" -Plugin *create_plugin(Builder &builder) +BASETOOLS_API Plugin *create_plugin(Builder &builder) { return new BasePlugin(builder); } +#endif