]> git.tdb.fi Git - builder.git/blobdiff - plugins/android/androidplugin.cpp
Make it possible to use built-in plugins
[builder.git] / plugins / android / androidplugin.cpp
index 055a0d85bd6de278b6314862af3c9e8a8b5e18b4..ecd4610046e1b5dbd3a1247e41448f81f46fe3c7 100644 (file)
@@ -7,6 +7,7 @@
 AndroidPlugin::AndroidPlugin(Builder &b):
        Plugin(b)
 {
+       required_plugins.push_back("gnutools");
        builder.get_component_registry().register_type<AndroidApplicationComponent>("android_application");
 }
 
@@ -17,6 +18,7 @@ void AndroidPlugin::add_tools(Toolchain &toolchain, const Architecture &arch) co
 }
 
 
+#ifdef ANDROIDTOOLS_BUILD
 #if defined(_WIN32)
 #define ANDROIDTOOLS_API __declspec(dllexport)
 #elif defined(__GNUC__)
@@ -30,3 +32,4 @@ ANDROIDTOOLS_API Plugin *create_plugin(Builder &builder)
 {
        return new AndroidPlugin(builder);
 }
+#endif