From fc268d8765551c56388bb0919ac9758c7aef3997 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 3 Aug 2012 13:11:05 +0200 Subject: [PATCH] Added: #1440 Pseudocode --HG-- branch : build_pipeline_v3 --- .../tools/pipeline/service/module_pipeline_slave.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/code/nel/tools/pipeline/service/module_pipeline_slave.cpp b/code/nel/tools/pipeline/service/module_pipeline_slave.cpp index 67c0a44bb..866b4ae72 100644 --- a/code/nel/tools/pipeline/service/module_pipeline_slave.cpp +++ b/code/nel/tools/pipeline/service/module_pipeline_slave.cpp @@ -820,7 +820,7 @@ public: } } - bool needsToBeRebuiltSub(const std::vector &inputPaths, const std::vector &outputPaths, bool inputChanged) + bool needsToBeRebuiltSub(const std::vector &inputPaths, const std::vector &outputPaths, bool inputModified) { if (m_SubTaskResult != FINISH_SUCCESS) return false; // Cannot continue on previous failure. @@ -829,6 +829,15 @@ public: // Sanity check of all the output paths // These must all be files, no directories allowed + + // bool outputModified = Check if any of the output paths are part of the changed or removed output files + + // Check the .depend files of all the output files + // If outputModified + // Compare the output checksum with the cached output checksum + // If inputModified + // Compare the input checksums with the cached input checksums + // (if any checksum was different, require rebuild, if no checksums were different, no rebuild is needed) } /// Returns false if the file does not need to be built, or if an error occured.