]> git.tdb.fi Git - builder.git/blobdiff - source/lib/sourcepackage.cpp
Allow plugins to create additional targets in SourcePackages
[builder.git] / source / lib / sourcepackage.cpp
index 34e8a1b6ec1c6009abc366960844981902a5262e..014bd83eb9dcc99be81409c7d5e5291c2b9f41a2 100644 (file)
@@ -14,6 +14,7 @@
 #include "file.h"
 #include "installcomponent.h"
 #include "builtin/pkgconfigfile.h"
+#include "plugin.h"
 #include "sourcearchivecomponent.h"
 #include "sourcegenerator.h"
 #include "sourcepackage.h"
@@ -157,6 +158,8 @@ void SourcePackage::do_prepare()
        }
 
        new CompileCommandsJson(builder, *this);
+
+       builder.call_plugins([this](const Plugin &p){ p.create_targets(*this); });
 }
 
 void SourcePackage::save_caches()