#include "basetools.h"
#include "compilecommandsjson.h"
#include "pkgconfigfile.h"
-#include "vcxprojectfile.h"
-#include "vssolutionfile.h"
void BasePlugin::add_tools(Toolchain &toolchain, const Architecture &) 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