X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fandroid%2Fandroidplugin.cpp;h=5fc357e57bfb89d56c136b0e23fba264bcee2494;hb=b0438fd2d85d6937b67db38c6138b0783962d8b2;hp=609d5cd5d12815a744e5d176ebb17f971bc5654e;hpb=767e28373e9710720efabc0f4f9bb3e51661c1e6;p=builder.git diff --git a/plugins/android/androidplugin.cpp b/plugins/android/androidplugin.cpp index 609d5cd..5fc357e 100644 --- a/plugins/android/androidplugin.cpp +++ b/plugins/android/androidplugin.cpp @@ -7,6 +7,7 @@ AndroidPlugin::AndroidPlugin(Builder &b): Plugin(b) { + required_plugins.push_back("gnutools"); builder.get_component_registry().register_type("android_application"); } @@ -17,8 +18,16 @@ void AndroidPlugin::add_tools(Toolchain &toolchain, const Architecture &arch) co } +#if defined(_WIN32) +#define ANDROIDTOOLS_API __declspec(dllexport) +#elif defined(__GNUC__) +#define ANDROIDTOOLS_API __attribute__((visibility("default"))) +#else +#define ANDROIDTOOLS_API +#endif + extern "C" -Plugin *create_plugin(Builder &builder) +ANDROIDTOOLS_API Plugin *create_plugin(Builder &builder) { return new AndroidPlugin(builder); }