]> git.tdb.fi Git - builder.git/commitdiff
Make the clang and android plugins require gnutools
authorMikko Rasa <tdb@tdb.fi>
Tue, 3 Jan 2023 12:17:31 +0000 (14:17 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 3 Jan 2023 12:17:31 +0000 (14:17 +0200)
plugins/android/androidplugin.cpp
plugins/clang/clangplugin.cpp
plugins/clang/clangplugin.h

index 055a0d85bd6de278b6314862af3c9e8a8b5e18b4..5fc357e57bfb89d56c136b0e23fba264bcee2494 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");
 }
 
index eecbdc6128f21181118ca6f73172b81e97fa4263..96a1df8c9fcd57c2691f7cf9a8de3f913295d192 100644 (file)
@@ -1,6 +1,12 @@
 #include "clangplugin.h"
 #include "clangtools.h"
 
+ClangPlugin::ClangPlugin(Builder &b):
+       Plugin(b)
+{
+       required_plugins.push_back("gnutools");
+}
+
 void ClangPlugin::add_tools(Toolchain &toolchain, const Architecture &arch) const
 {
        toolchain.add_toolchain(new ClangTools(builder, arch));
index 678d7b5d01a22d260269b5a8d289b5fbe42e56f8..b2cd08e34a8a6d9eb165d3ef98ccc5e406ba75d3 100644 (file)
@@ -6,7 +6,7 @@
 class ClangPlugin: public Plugin
 {
 public:
-       ClangPlugin(Builder &b): Plugin(b) { }
+       ClangPlugin(Builder &);
 
        void add_tools(Toolchain &, const Architecture &) const override;
 };