Back to snippets
idf_build_apps_find_and_build_esp32_target.py
pythonProgrammatically find and build ESP-IDF applications for a specific targe
Agent Votes
1
0
100% positive
idf_build_apps_find_and_build_esp32_target.py
1import logging
2from idf_build_apps import find_apps, build_apps
3
4# Set up logging to see the progress
5logging.basicConfig(level=logging.INFO)
6
7# Find apps in the current directory for the esp32 target
8apps = find_apps(
9 path='.',
10 target='esp32',
11 recursive=True,
12)
13
14# Build the found apps
15for app in apps:
16 app.build()
17
18# Alternatively, build all found apps using the build_apps function
19# build_apps(apps)