mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
feat(cmakev2): Added conditional_component example for cmakev2
This commit adds a new example at examples/build_system/cmakev2/features/conditional_components to demonstrate the cmakev2 ability to conditionally include components in the build based on Kconfig options.
This commit is contained in:
committed by
Frantisek Hrbata
parent
fb9143e2c9
commit
1a51a0ad01
@@ -158,6 +158,15 @@ Demonstrates link-time plugin registration using whole-archive linking and const
|
||||
|
||||
---
|
||||
|
||||
### conditional_component
|
||||
**Location:** [conditional_component](./features/conditional_component/)
|
||||
|
||||
Demonstrates the use of the Kconfig configuration system to conditionally include or exclude components in the build.
|
||||
|
||||
**Key Concepts:** Kconfig configuration, `idf_component_include()`
|
||||
|
||||
**When to use:** When you need to build applications or components that must conditionally depend on other components based on `sdkconfig` options.
|
||||
|
||||
## Build System v2 API Quick Reference
|
||||
|
||||
### Project Setup
|
||||
|
||||
Reference in New Issue
Block a user