Limiting compilation of all libraries
Posted: Fri Oct 25, 2019 1:19 pm
Hi, everyone,
I am new to the ESP-IDF environment, and I noticed that when I compile a project from the "examples" directory, ALL libraries in the "components" directory are compiled, even though I am not making any references to most of them.
Another issue is that for every project, all compiled libraries are created in a "build" directory which holds a substantial amount of data (around 100 MB is typical). After compiling 10 projects, I get close to 1 GB of data.
I am wondering if it would be possible (and how to do that):
1. to specify the libraries which are specific to my project (say, I am not using SPI, so I would not need to compile it);
2. to direct the output of the compilation of the libraries to a single/general "build" directory, not the project's build directory, so that
for any number of projects my "build" directory would hold only 100 MB.
I am used to doing this on a number of IDEs (I am working on WIndows ), but being new to ESP-IDF, I am having difficulties on where to find information about these options.
Thanks for any pointers, including to documentation I am supposed to read.
Julio
I am new to the ESP-IDF environment, and I noticed that when I compile a project from the "examples" directory, ALL libraries in the "components" directory are compiled, even though I am not making any references to most of them.
Another issue is that for every project, all compiled libraries are created in a "build" directory which holds a substantial amount of data (around 100 MB is typical). After compiling 10 projects, I get close to 1 GB of data.
I am wondering if it would be possible (and how to do that):
1. to specify the libraries which are specific to my project (say, I am not using SPI, so I would not need to compile it);
2. to direct the output of the compilation of the libraries to a single/general "build" directory, not the project's build directory, so that
for any number of projects my "build" directory would hold only 100 MB.
I am used to doing this on a number of IDEs (I am working on WIndows ), but being new to ESP-IDF, I am having difficulties on where to find information about these options.
Thanks for any pointers, including to documentation I am supposed to read.
Julio