2024-03-17 11:55:48 +00:00
|
|
|
set(TRACY_COMMON_DIR ${CMAKE_CURRENT_LIST_DIR}/../public/common)
|
|
|
|
|
|
|
|
set(TRACY_COMMON_SOURCES
|
|
|
|
tracy_lz4.cpp
|
|
|
|
tracy_lz4hc.cpp
|
|
|
|
TracySocket.cpp
|
|
|
|
TracyStackFrames.cpp
|
|
|
|
TracySystem.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
list(TRANSFORM TRACY_COMMON_SOURCES PREPEND "${TRACY_COMMON_DIR}/")
|
|
|
|
|
|
|
|
|
|
|
|
set(TRACY_SERVER_DIR ${CMAKE_CURRENT_LIST_DIR}/../server)
|
|
|
|
|
|
|
|
set(TRACY_SERVER_SOURCES
|
|
|
|
TracyMemory.cpp
|
|
|
|
TracyMmap.cpp
|
|
|
|
TracyPrint.cpp
|
2024-05-04 14:45:21 +00:00
|
|
|
TracySysUtil.cpp
|
2024-03-17 11:55:48 +00:00
|
|
|
TracyTaskDispatch.cpp
|
|
|
|
TracyTextureCompression.cpp
|
|
|
|
TracyThreadCompress.cpp
|
|
|
|
TracyWorker.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
list(TRANSFORM TRACY_SERVER_SOURCES PREPEND "${TRACY_SERVER_DIR}/")
|
|
|
|
|
|
|
|
|
2024-09-26 11:04:47 +00:00
|
|
|
add_library(TracyServer STATIC EXCLUDE_FROM_ALL ${TRACY_COMMON_SOURCES} ${TRACY_SERVER_SOURCES})
|
2024-03-17 11:55:48 +00:00
|
|
|
target_include_directories(TracyServer PUBLIC ${TRACY_COMMON_DIR} ${TRACY_SERVER_DIR})
|
|
|
|
target_link_libraries(TracyServer PUBLIC TracyCapstone TracyZstd)
|
|
|
|
if(NO_STATISTICS)
|
|
|
|
target_compile_definitions(TracyServer PUBLIC TRACY_NO_STATISTICS)
|
|
|
|
endif()
|
2024-03-17 12:25:29 +00:00
|
|
|
|
2024-06-07 22:20:12 +00:00
|
|
|
if(NOT NO_PARALLEL_STL AND UNIX AND NOT APPLE AND NOT EMSCRIPTEN)
|
2024-03-17 12:25:29 +00:00
|
|
|
target_link_libraries(TracyServer PRIVATE TracyTbb)
|
|
|
|
endif()
|