mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
5730711185
This example shows how to use ESP-IDF build system features to build multiple configurations of an app from the same source files. Configurations are set by overriding SDKCONFIG_DEFAULTS variable when invoking idf.py. Related: https://github.com/espressif/esp-idf/issues/5658
21 lines
605 B
Plaintext
21 lines
605 B
Plaintext
menu "Example Product Configuration"
|
|
|
|
config EXAMPLE_PRODUCT_NAME
|
|
string "Product name"
|
|
default "Not set"
|
|
help
|
|
Product name used in the example
|
|
|
|
choice EXAMPLE_FUNC_IMPL
|
|
prompt "Implementation of function 'func'"
|
|
help
|
|
Select one of the implementations of 'func' to be used in the app.
|
|
This setting is used in component CMakeLists.txt.
|
|
|
|
config EXAMPLE_FUNC_IMPL_DEV
|
|
bool "Development (func_dev.c)"
|
|
config EXAMPLE_FUNC_IMPL_PROD
|
|
bool "Production (func_prod.c)"
|
|
endchoice
|
|
endmenu
|