mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-22 10:19:34 +01:00
change(examples): explicitly specify component dependencies for examples
Currently, several examples do not explicitly state their component dependencies, relying instead on the default behavior that includes all registered components and commonly required ones in the build. Explicitly adding component dependencies can reduce build time when set(COMPONENTS main) is used. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "continuous_read_main.c"
|
||||
PRIV_REQUIRES esp_adc
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "oneshot_read_main.c"
|
||||
PRIV_REQUIRES esp_adc
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "soft_spi_master_main.c"
|
||||
PRIV_REQUIRES soft_spi
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "matrix_keyboard_example_main.c"
|
||||
PRIV_REQUIRES matrix_keyboard
|
||||
INCLUDE_DIRS "")
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
set(srcs "i2c_eeprom_main.c")
|
||||
|
||||
idf_component_register(SRCS ${srcs}
|
||||
INCLUDE_DIRS ".")
|
||||
PRIV_REQUIRES esp_driver_i2c i2c_eeprom
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
idf_component_register(SRCS "i2ctools_example_main.c"
|
||||
"cmd_i2ctools.c"
|
||||
PRIV_REQUIRES fatfs esp_driver_i2c
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "jpeg_decode_main.c"
|
||||
PRIV_REQUIRES fatfs esp_driver_jpeg esp_psram
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "jpeg_encode_main.c"
|
||||
PRIV_REQUIRES fatfs esp_driver_jpeg
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -4,6 +4,7 @@ if(CONFIG_EXAMPLE_LCD_IMAGE_FROM_EMBEDDED_BINARY)
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS "i80_controller_example_main.c" "lvgl_demo_ui.c" ${embedded_images}
|
||||
PRIV_REQUIRES esp_lcd spiffs esp_psram
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
if(CONFIG_EXAMPLE_LCD_IMAGE_FROM_FILE_SYSTEM)
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "rgb_lcd_example_main.c" "lvgl_demo_ui.c"
|
||||
PRIV_REQUIRES esp_lcd
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -5,4 +5,5 @@ set(srcs "pretty_effect.c"
|
||||
|
||||
idf_component_register(SRCS ${srcs}
|
||||
INCLUDE_DIRS "."
|
||||
PRIV_REQUIRES esp_lcd
|
||||
EMBED_FILES image.jpg)
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "ledc_basic_example_main.c"
|
||||
PRIV_REQUIRES esp_driver_ledc esp_driver_gpio
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "ledc_fade_example_main.c"
|
||||
PRIV_REQUIRES esp_driver_ledc esp_driver_gpio
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "ledc_gamma_curve_fade_example_main.c"
|
||||
PRIV_REQUIRES esp_driver_ledc esp_driver_gpio
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "mcpwm_bldc_hall_control_example_main.c"
|
||||
PRIV_REQUIRES esp_driver_mcpwm esp_timer esp_driver_gpio
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "mcpwm_capture_hc_sr04.c"
|
||||
INCLUDE_DIRS ".")
|
||||
PRIV_REQUIRES esp_driver_mcpwm esp_driver_gpio
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "mcpwm_servo_control_example_main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
PRIV_REQUIRES esp_driver_mcpwm
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "mcpwm_sync_example_main.c"
|
||||
PRIV_REQUIRES esp_driver_mcpwm esp_driver_gpio
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "rotary_encoder_example_main.c"
|
||||
PRIV_REQUIRES esp_driver_pcnt esp_driver_gpio
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "dshot_esc_example_main.c" "dshot_esc_encoder.c"
|
||||
PRIV_REQUIRES esp_driver_rmt
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "ir_nec_transceiver_main.c" "ir_nec_encoder.c"
|
||||
PRIV_REQUIRES esp_driver_rmt
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "led_strip_example_main.c" "led_strip_encoder.c"
|
||||
PRIV_REQUIRES esp_driver_rmt
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "led_strip_example_main.c"
|
||||
PRIV_REQUIRES esp_driver_rmt
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "musical_buzzer_example_main.c" "musical_score_encoder.c"
|
||||
PRIV_REQUIRES esp_driver_rmt
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "stepper_motor_example_main.c" "stepper_motor_encoder.c"
|
||||
PRIV_REQUIRES esp_driver_rmt esp_driver_gpio
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "app_main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
PRIV_REQUIRES esp_driver_sdio esp_ringbuf
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "sdm_dac_example_main.c"
|
||||
PRIV_REQUIRES esp_driver_sdm esp_driver_gptimer
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "sdm_led_example_main.c"
|
||||
PRIV_REQUIRES esp_driver_sdm
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
set(srcs "spi_eeprom_main.c")
|
||||
|
||||
idf_component_register(SRCS ${srcs}
|
||||
INCLUDE_DIRS ".")
|
||||
PRIV_REQUIRES esp_driver_spi esp_driver_gpio eeprom
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -5,4 +5,5 @@ set(srcs "pretty_effect.c"
|
||||
|
||||
idf_component_register(SRCS ${srcs}
|
||||
INCLUDE_DIRS "."
|
||||
PRIV_REQUIRES esp_driver_spi esp_driver_gpio
|
||||
EMBED_FILES image.jpg)
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "app_main.c"
|
||||
PRIV_REQUIRES esp_driver_spi esp_driver_gpio
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "app_main.c"
|
||||
PRIV_REQUIRES esp_driver_spi esp_driver_gpio esp_timer
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "app_main.c"
|
||||
PRIV_REQUIRES esp_driver_spi
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "app_main.c"
|
||||
PRIV_REQUIRES esp_driver_spi
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "temp_sensor_main.c"
|
||||
PRIV_REQUIRES esp_driver_tsens
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "temp_sensor_monitor_main.c"
|
||||
PRIV_REQUIRES esp_driver_tsens
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "gptimer_example_main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
PRIV_REQUIRES esp_driver_gptimer
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "gptimer_capture_hc_sr04.c"
|
||||
PRIV_REQUIRES esp_driver_gptimer esp_driver_gpio
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "tp_interrupt_main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
PRIV_REQUIRES driver
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "tp_read_main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
PRIV_REQUIRES driver
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "twai_alert_and_recovery_example_main.c"
|
||||
REQUIRES driver
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "twai_network_example_listen_only_main.c"
|
||||
REQUIRES driver
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "twai_network_example_master_main.c"
|
||||
REQUIRES driver
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "twai_network_example_slave_main.c"
|
||||
REQUIRES driver
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "twai_self_test_example_main.c"
|
||||
REQUIRES driver
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
idf_component_register(SRCS "nmea_parser_example_main.c"
|
||||
"nmea_parser.c"
|
||||
REQUIRES esp_event esp_driver_uart
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "uart_async_rxtxtasks_main.c"
|
||||
REQUIRES esp_driver_uart esp_driver_gpio
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "uart_echo_example_main.c"
|
||||
REQUIRES esp_driver_uart esp_driver_gpio
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "rs485_example.c"
|
||||
REQUIRES nvs_flash esp_driver_uart
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "uart_events_example_main.c"
|
||||
REQUIRES esp_driver_uart
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "uart_repl_example_main.c"
|
||||
REQUIRES esp_driver_uart esp_driver_gpio console
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "uart_select_example_main.c"
|
||||
REQUIRES esp_driver_uart vfs
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "usb_serial_echo_main.c"
|
||||
PRIV_REQUIRES esp_driver_usb_serial_jtag
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
Reference in New Issue
Block a user