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:
@ -460,6 +460,13 @@ public class Compiler implements MessageConsumer {
|
|||||||
p.put("build.path", _buildPath);
|
p.put("build.path", _buildPath);
|
||||||
p.put("build.project_name", _primaryClassName);
|
p.put("build.project_name", _primaryClassName);
|
||||||
p.put("build.arch", targetPlatform.getId().toUpperCase());
|
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
|
// Platform.txt should define its own compiler.path. For
|
||||||
// compatibility with earlier 1.5 versions, we define a (ugly,
|
// compatibility with earlier 1.5 versions, we define a (ugly,
|
||||||
|
Reference in New Issue
Block a user