CMakeLists.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. idf_component_register(SRCS "ulp_riscv_adc_example_main.c"
  2. "yc_terminal.c"
  3. "yc_protocol.c"
  4. "yc_paint.c"
  5. "esp_ble_ota.c"
  6. "user_sleep.c"
  7. # "wait_list.c"
  8. "user_time.c"
  9. # "batt_charge.c"
  10. INCLUDE_DIRS "" "."
  11. REQUIRES soc ulp esp_adc
  12. "newlib"
  13. "bt"
  14. "esp_ble_ota"
  15. "EPD"
  16. "FONT_LIB"
  17. "LORA"
  18. "button"
  19. "LED"
  20. "esp_timer"
  21. "USER_SPIFFS"
  22. "Decection"
  23. #"lvgl"
  24. #"mcu_bsdiff_upgrade"
  25. "c_linked_list"
  26. #"user_ota"
  27. "app_update"
  28. "esp_event"
  29. "bootloader_support"
  30. "esp_partition"
  31. "nvs_flash"
  32. "hal")
  33. #
  34. # ULP support additions to component CMakeLists.txt.
  35. #
  36. # 1. The ULP app name must be unique (if multiple components use ULP).
  37. set(ulp_app_name ulp_${COMPONENT_NAME})
  38. #
  39. # 2. Specify all C and Assembly source files.
  40. # Files should be placed into a separate directory (in this case, ulp/),
  41. # which should not be added to COMPONENT_SRCS.
  42. set(ulp_riscv_sources "ulp/main.c")
  43. #
  44. # 3. List all the component source files which include automatically
  45. # generated ULP export file, ${ulp_app_name}.h:
  46. set(ulp_exp_dep_srcs "ulp_riscv_adc_example_main.c")
  47. #
  48. # 4. Call function to build ULP binary and embed in project using the argument
  49. # values above.
  50. ulp_embed_binary(${ulp_app_name} "${ulp_riscv_sources}" "${ulp_exp_dep_srcs}")
  51. target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-error)
  52. target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-error=unused-local-typedefs)