esp-idf-template icon indicating copy to clipboard operation
esp-idf-template copied to clipboard

Template for a more complex project

Open mgagic opened this issue 2 years ago • 0 comments

The available documentation and the examples seriously lack any real-world use case examples when it comes to complex directory structures. Would it be possible to add a template that consists of a main component, plus one (or more) additional components located in components/ dir?

Example structure that could show different arrangements esp-idf/ project/

  • CMakeLists.txt
  • Makefile
  • main/
    • CMakeLists.txt
    • component.mk
    • main_file.c
    • main_file.h
  • components/
    • component1/
    • CMakeLists.txt
    • component.mk
    • src/
      • comp1_src1.c
      • comp1_src2.c
    • inc/
      • comp1_src1.h
      • comp1_src2.h
    • Kconfig
  • component2/
    • CMakeLists.txt
    • component.mk
    • comp2_src.c
    • comp2_src.h
    • module1/
      • module1_scr1.c
      • module1_scr1.h
    • module2/
      • module2_scr1.c
      • module2_scr1.h

mgagic avatar Jul 04 '22 14:07 mgagic