CMakeLists.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # SPDX-License-Identifier: Apache-2.0
  2. if(NOT CONFIG_LOG_MINIMAL)
  3. zephyr_sources_ifdef(
  4. CONFIG_LOG
  5. log_list.c
  6. log_core.c
  7. log_mgmt.c
  8. log_msg.c
  9. log_output.c
  10. )
  11. zephyr_sources_ifdef(
  12. CONFIG_LOG2
  13. log_msg2.c
  14. )
  15. zephyr_sources_ifdef(
  16. CONFIG_LOG_BACKEND_UART
  17. log_backend_uart.c
  18. )
  19. zephyr_sources_ifdef(
  20. CONFIG_LOG_BACKEND_FS
  21. log_backend_fs.c
  22. )
  23. zephyr_sources_ifdef(
  24. CONFIG_LOG_CMDS
  25. log_cmds.c
  26. )
  27. zephyr_sources_ifdef(
  28. CONFIG_LOG_BACKEND_NATIVE_POSIX
  29. log_backend_native_posix.c
  30. )
  31. zephyr_sources_ifdef(
  32. CONFIG_LOG_BACKEND_XTENSA_SIM
  33. log_backend_xtensa_sim.c
  34. )
  35. zephyr_sources_ifdef(
  36. CONFIG_LOG_BACKEND_NET
  37. log_backend_net.c
  38. )
  39. zephyr_sources_ifdef(
  40. CONFIG_LOG_BACKEND_RTT
  41. log_backend_rtt.c
  42. )
  43. zephyr_sources_ifdef(
  44. CONFIG_LOG_BACKEND_SWO
  45. log_backend_swo.c
  46. )
  47. zephyr_sources_ifdef(
  48. CONFIG_LOG_MIPI_SYST_ENABLE
  49. log_output_syst.c
  50. )
  51. zephyr_sources_ifdef(
  52. CONFIG_LOG_BACKEND_ADSP
  53. log_backend_adsp.c
  54. )
  55. if(CONFIG_LOG_BACKEND_SPINEL)
  56. zephyr_library_include_directories(
  57. ${ZEPHYR_BASE}/subsys/net/lib/openthread/platform/
  58. )
  59. endif()
  60. zephyr_sources_ifdef(
  61. CONFIG_LOG_BACKEND_SPINEL
  62. log_backend_spinel.c
  63. )
  64. if(CONFIG_LOG_DICTIONARY_SUPPORT)
  65. zephyr_sources(log_output_dict.c)
  66. endif()
  67. else()
  68. zephyr_sources(log_minimal.c)
  69. endif()