-
-
Notifications
You must be signed in to change notification settings - Fork 414
Open
Labels
topic: codeRelated to content of the project itselfRelated to content of the project itselftype: enhancementProposed improvementProposed improvement
Description
Feature request
Continuing discussion from #1013 (comment)
Part of unit test compilation in arduino_ci
involves determining which files and directories from a library should be presented to the compiler. I assume that arduino-cli
already has logic to determine this same information, so I'm hopeful that it's as simple as exposing that behind a command or two.
This would eliminate any possible gaps in compiler behavior between the unit test compiler and the official one, especially if the behavior changes.
Best Solution
All compilation information
{
"common_flags": [
"-std=c++0x",
"-O1"
],
"dependencies": [
"SomeDependency"
],
"include_dirs": [
"/path/to/library/src"
],
"include_dirs_recursive": [
"/path/to/library/src",
"/path/to/SomeDependency/src"
],
"source_files": [
"/path/to/library/src/hello.cpp"
],
"source_files_recursive": [
"/path/to/library/src/hello.cpp",
"/path/to/SomeDependency/src/hi.cpp"
]
}
Next Best Solution
Authoritative information I can use to implement my own logic
{
"flat_layout": true,
"base_directory": "/path/to/library/src"
}
Metadata
Metadata
Assignees
Labels
topic: codeRelated to content of the project itselfRelated to content of the project itselftype: enhancementProposed improvementProposed improvement