[ClavaLaraApi] Energy.measure() now adds information about includes and
sources it depends on
+import clava.Clava;
+
import lara.code.EnergyBase;
import lara.code.Logger;
import lara.util.IdGenerator;
@@ -16,6 +18,12 @@ Energy.prototype.measure = function($start, prefix, $end){
// Message about dependency
PrintOnce.message("Weaved code has dependency to project SpecsRapl, which can be found at https://github.com/specs-feup/specs-c-libs");
+ // Adds SpecsRapl include
+ Clava.getProgram().addExtraIncludeFromGit("https://github.com/specs-feup/specs-c-libs.git", "SpecsRapl/include/");
+
+ // Adds SpecsRapl source
+ Clava.getProgram().addExtraSourceFromGit("https://github.com/specs-feup/specs-c-libs.git", "SpecsRapl/src/");
+
var logger = new Logger(false, this.filename);
// Build prefix
