How to create "complex" project structures ?

Baldhead
Posts: 471
Joined: Sun Mar 31, 2019 5:16 am

Re: How to create "complex" project structures ?

Postby Baldhead » Thu Sep 12, 2019 9:32 pm

Hi,

I started doing the tests step by step. I took the example hello_world and went removing files one by one and checking if it compiled, until the minimum necessary to compile only with cmake.

After this step, i added the components folder and tried to follow their tips.
After a lot of "trial and error" i made the project compile.

The next step is to change lib littlevgl (I want to make it as clean as possible) to compile using cmake only.
I will try to change all includes, in all files, and try to make the path as short as possible.

In annex follow the two projects with the minimum requirements to compile on cmake.

Thank's.
Attachments
hello_world-Cmake project minimum.zip
(1.88 KiB) Downloaded 509 times
hello_world-withComponents.zip
(4.79 KiB) Downloaded 520 times

Baldhead
Posts: 471
Joined: Sun Mar 31, 2019 5:16 am

Re: How to create "complex" project structures ?

Postby Baldhead » Sun Sep 15, 2019 8:46 pm

Hello people,

I am trying to create a folder inside components folder ie:
projectFolder/components/ui/.global_conf

Yes "projectFolder/components/ui" are working, only check on this project i posted above.
hello_world-withComponents.zip

In folder ".global_conf" i put all *.h files that i consider LittleVgl config and other things like:

".global_conf" folder
* lv_conf.h
* lv_conf_checker.h
* lv_conf_template.h
* lv_ex_conf.h
* lv_ex_conf_templ.h
* lv_examples.h
* lv_test.h
* lv_version.h
* lvgl.h

My problem are how to register these folder(that has only *.h files) on Cmake espressif structuring.

I already trying to add this folder like a component folder(so i could use requires on the others components that needed the files in this folder) but not works.
I tried other things too, but no luck.

Any suggestion ???

In annex follows the project.

Thank's.
Attachments
esp32_ili9341-master.zip
(537.8 KiB) Downloaded 458 times

Who is online

Users browsing this forum: Google [Bot], igormoo and 135 guests