Setting up common source files in Espressif-IDE
Posted: Fri Mar 18, 2022 8:43 pm
Hi All,
I hope this ins't a duplicate topic (I've done a fair amount of googling and tinkering), but I cannot seem to come up with the right way to have a set of common source files shared between two projects in the Espressif IDE (Version: 2.4.0 / Build id: 20220128-0745)
What I want is something like this:
Project1/
|---main/
| |----app1_main.c
|...
Project2/
|---main/
| |----app2_main.c
|...
SharedSource
|---main/
| |----shared_code.h
| |----shared_code.c
|...
Where I would like to be able to #include shared_code.h into app1_main.c and app2_main.c. What is the correct way to do this so that I don't have to keep individual copies of shared_code.h/c and then remember to copy them back and forth whenever I need to make a change?
Thanks much!
I hope this ins't a duplicate topic (I've done a fair amount of googling and tinkering), but I cannot seem to come up with the right way to have a set of common source files shared between two projects in the Espressif IDE (Version: 2.4.0 / Build id: 20220128-0745)
What I want is something like this:
Project1/
|---main/
| |----app1_main.c
|...
Project2/
|---main/
| |----app2_main.c
|...
SharedSource
|---main/
| |----shared_code.h
| |----shared_code.c
|...
Where I would like to be able to #include shared_code.h into app1_main.c and app2_main.c. What is the correct way to do this so that I don't have to keep individual copies of shared_code.h/c and then remember to copy them back and forth whenever I need to make a change?
Thanks much!