How to add examples folder in project?

lbruder
Posts: 14
Joined: Sat Nov 12, 2016 1:51 am

How to add examples folder in project?

Postby lbruder » Sat Dec 03, 2016 8:27 pm

I'm trying to add an examples folder to my ESP32 WS2812B library, but am having trouble getting it building. I am horrible at understanding build systems, they're like magic to me. I've read the docs but haven't had any luck.

My folder structure is exactly like the folder structure in the examples folder in the esp-idf folder:
esp32_led/ (project)
--examples/
----00_blinky/
------Makefile
------main/
--------main.c
--------component.mk

What do I need to add to have an examples folder? Is it something like the build_examples.sh bash script?

Thank you,
Lucas

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: How to add examples folder in project?

Postby ESP_Sprite » Mon Dec 05, 2016 3:01 am

As far as I can see, the examples folder is nothing special in esp-idf; just a standard folder where a bunch of projects are dropped in, not different from any projects that live outside of the esp-idf tree. The build-examples.sh script is a wrapper script that builds all these examples for our CI tests; while you can use it manually it isn't really intended as such. If you want CI in your project as well, you can copy it, but there's no need for that otherwise.

Who is online

Users browsing this forum: Bing [Bot] and 235 guests