Add file & line to debug info.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2025-02-19 11:43:47 +01:00
parent 90fb86be64
commit 94a842fa04
2 changed files with 6 additions and 2 deletions

View File

@@ -238,6 +238,7 @@ function(add_impl_library target)
string(TOUPPER ${target} TARGET_UPPER)
target_compile_definitions(${target} INTERFACE LIB_${TARGET_UPPER}=1)
endfunction()
if(${USB_ITF_HID})
set(SOURCES ${SOURCES}
${CMAKE_CURRENT_LIST_DIR}/src/usb/hid/hid.c
@@ -246,6 +247,9 @@ if(${USB_ITF_HID})
${CMAKE_CURRENT_LIST_DIR}/src/usb/hid
)
endif()
add_definitions("-fmacro-prefix-map=${CMAKE_CURRENT_LIST_DIR}/=")
if(ENABLE_EMULATION)
if(APPLE)
add_definitions("-Wno-deprecated-declarations")