1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

export sketch data folder to the build config

This commit is contained in:
ficeto
2015-05-13 17:09:27 +03:00
parent 716eafe8bf
commit ee6d70d8ee

View File

@ -460,6 +460,13 @@ public class Compiler implements MessageConsumer {
p.put("build.path", _buildPath);
p.put("build.project_name", _primaryClassName);
p.put("build.arch", targetPlatform.getId().toUpperCase());
File sketch_data = sketch.getDataFolder();
if(sketch_data.exists()){
p.put("build.sketch_data", sketch_data.getAbsolutePath());
} else {
p.put("build.sketch_data", "");
}
// Platform.txt should define its own compiler.path. For
// compatibility with earlier 1.5 versions, we define a (ugly,