]> git.tdb.fi Git - builder.git/blobdiff - source/compilecommandsjson.cpp
Rearrange sources into subdirectories
[builder.git] / source / compilecommandsjson.cpp
diff --git a/source/compilecommandsjson.cpp b/source/compilecommandsjson.cpp
deleted file mode 100644 (file)
index ff24d7e..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "builder.h"
-#include "package.h"
-#include "compilecommandsjson.h"
-#include "objectfile.h"
-
-CompileCommandsJson::CompileCommandsJson(Builder &b, const SourcePackage &p):
-       FileTarget(b, p, p.get_source_directory()/("compile_commands.json"))
-{
-       tool = &builder.get_toolchain().get_tool("CCJG");
-}
-
-void CompileCommandsJson::find_dependencies()
-{
-       for(const auto &kvp: builder.get_build_graph().get_targets())
-               if(kvp.second->is_buildable() && kvp.second->get_package()==package && dynamic_cast<ObjectFile *>(kvp.second))
-                       kvp.second->prepare();
-}