2018-09-10 21:44:12 -04:00
|
|
|
set(COMPONENT_SRCS "app_trace.c"
|
|
|
|
"app_trace_util.c"
|
2018-09-12 20:56:59 -04:00
|
|
|
"host_file_io.c"
|
|
|
|
"gcov/gcov_rtio.c")
|
2018-01-19 00:22:08 -05:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS "include")
|
|
|
|
|
2018-03-19 21:27:00 -04:00
|
|
|
if(CONFIG_SYSVIEW_ENABLE)
|
2018-02-27 01:44:31 -05:00
|
|
|
list(APPEND COMPONENT_ADD_INCLUDEDIRS
|
|
|
|
sys_view/Config
|
|
|
|
sys_view/SEGGER
|
|
|
|
sys_view/Sample/OS)
|
|
|
|
|
2018-09-12 20:56:59 -04:00
|
|
|
list(APPEND COMPONENT_SRCS "sys_view/SEGGER/SEGGER_SYSVIEW.c"
|
|
|
|
"sys_view/Sample/Config/SEGGER_SYSVIEW_Config_FreeRTOS.c"
|
|
|
|
"sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.c"
|
|
|
|
"sys_view/esp32/SEGGER_RTT_esp32.c")
|
2018-02-27 01:44:31 -05:00
|
|
|
endif()
|
|
|
|
|
2018-03-22 02:27:10 -04:00
|
|
|
set(COMPONENT_REQUIRES)
|
|
|
|
set(COMPONENT_PRIV_REQUIRES xtensa-debug-module)
|
2018-04-17 22:57:45 -04:00
|
|
|
set(COMPONENT_ADD_LDFRAGMENTS linker.lf)
|
2018-03-22 02:27:10 -04:00
|
|
|
|
2018-01-11 21:49:13 -05:00
|
|
|
register_component()
|
2018-02-27 01:44:31 -05:00
|
|
|
|
|
|
|
# disable --coverage for this component, as it is used as transport
|
|
|
|
# for gcov
|
|
|
|
component_compile_options("-fno-profile-arcs" "-fno-test-coverage")
|
2018-09-18 00:23:56 -04:00
|
|
|
|
2018-11-11 02:36:10 -05:00
|
|
|
target_link_libraries(${COMPONENT_TARGET} gcov)
|