X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tools%2Fbuilder-plugin%2Fgameplugin.cpp;fp=tools%2Fbuilder-plugin%2Fgameplugin.cpp;h=7b01b204ffa9a9f8fb7548ee7ebba26e1896f295;hb=bb1c22d58cc71e68555a144ac884137c775ef427;hp=0000000000000000000000000000000000000000;hpb=dc90919dcc6519c7611ff7f8f6b7c22876e2fc13;p=libs%2Fgame.git diff --git a/tools/builder-plugin/gameplugin.cpp b/tools/builder-plugin/gameplugin.cpp new file mode 100644 index 0000000..7b01b20 --- /dev/null +++ b/tools/builder-plugin/gameplugin.cpp @@ -0,0 +1,23 @@ +#include "gameplugin.h" +#include +#include "gametools.h" + +void GamePlugin::add_tools(Toolchain &toolchain, const Architecture &) const +{ + toolchain.add_toolchain(new GameTools(builder)); +} + + +#if defined(_WIN32) +#define GAMETOOLS_API __declspec(dllexport) +#elif defined(__GNUC__) +#define GAMETOOLS_API __attribute__((visibility("default"))) +#else +#define GAMETOOLS_API +#endif + +extern "C" +GAMETOOLS_API Plugin *create_plugin(Builder &builder) +{ + return new GamePlugin(builder); +}