mirror of
https://github.com/wolfpld/tracy.git
synced 2024-12-01 17:34:36 +00:00
1c1faeff2d
PPQSort is supposedly quite fast: https://github.com/GabTux/PPQSort More importantly, it does not depend on TBB fuckery, so there's no longer a need to link with an external library that people may or may not have. The NO_PARALLEL_STL option is out, as it was provided solely to deal with TBB being not available. Sequential sorting is still used on emscripten.
36 lines
972 B
CMake
36 lines
972 B
CMake
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
|
|
TracySysUtil.cpp
|
|
TracyTaskDispatch.cpp
|
|
TracyTextureCompression.cpp
|
|
TracyThreadCompress.cpp
|
|
TracyWorker.cpp
|
|
)
|
|
|
|
list(TRANSFORM TRACY_SERVER_SOURCES PREPEND "${TRACY_SERVER_DIR}/")
|
|
|
|
|
|
add_library(TracyServer STATIC EXCLUDE_FROM_ALL ${TRACY_COMMON_SOURCES} ${TRACY_SERVER_SOURCES})
|
|
target_include_directories(TracyServer PUBLIC ${TRACY_COMMON_DIR} ${TRACY_SERVER_DIR})
|
|
target_link_libraries(TracyServer PUBLIC TracyCapstone TracyZstd PPQSort::PPQSort)
|
|
if(NO_STATISTICS)
|
|
target_compile_definitions(TracyServer PUBLIC TRACY_NO_STATISTICS)
|
|
endif()
|