mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-04-16 16:32:59 +02:00
fix tracy for emscripten
This commit is contained in:
parent
bbbbc655e7
commit
5f066faa28
51
external/tracy/CMakeLists.txt
vendored
51
external/tracy/CMakeLists.txt
vendored
@ -1,29 +1,38 @@
|
|||||||
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
|
||||||
|
|
||||||
add_library(tracy_client
|
if(NOT EMSCRIPTEN)
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/tracy/Tracy.hpp"
|
add_library(tracy_client
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/tracy/TracyLua.hpp"
|
"${CMAKE_CURRENT_LIST_DIR}/tracy/Tracy.hpp"
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/tracy/TracyVulkan.hpp"
|
"${CMAKE_CURRENT_LIST_DIR}/tracy/TracyLua.hpp"
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/tracy/TracyOpenGL.hpp"
|
"${CMAKE_CURRENT_LIST_DIR}/tracy/TracyVulkan.hpp"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/tracy/TracyOpenGL.hpp"
|
||||||
|
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/tracy/TracyClient.cpp"
|
"${CMAKE_CURRENT_LIST_DIR}/tracy/TracyClient.cpp"
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_features(tracy_client PUBLIC cxx_std_17)
|
if(TRACY_ENABLE)
|
||||||
|
target_compile_definitions(tracy_client PUBLIC TRACY_ENABLE)
|
||||||
|
#target_compile_definitions(tracy_client PUBLIC TRACY_NO_SYSTEM_TRACING)
|
||||||
|
message("Enabled TRACY")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(TRACY_ENABLE)
|
target_compile_features(tracy_client PUBLIC cxx_std_17)
|
||||||
target_compile_definitions(tracy_client PUBLIC TRACY_ENABLE)
|
|
||||||
#target_compile_definitions(tracy_client PUBLIC TRACY_NO_SYSTEM_TRACING)
|
target_include_directories(tracy_client PUBLIC "${CMAKE_CURRENT_LIST_DIR}")
|
||||||
message("Enabled TRACY")
|
|
||||||
|
if(UNIX)
|
||||||
|
target_link_libraries(tracy_client dl)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
target_link_libraries(tracy_client ws2_32 dbghelp)
|
||||||
|
endif()
|
||||||
|
else() # EMSCRIPTEN
|
||||||
|
add_library(tracy_client INTERFACE)
|
||||||
|
|
||||||
|
target_compile_features(tracy_client INTERFACE cxx_std_17)
|
||||||
|
|
||||||
|
target_include_directories(tracy_client INTERFACE "${CMAKE_CURRENT_LIST_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_include_directories(tracy_client PUBLIC "${CMAKE_CURRENT_LIST_DIR}")
|
|
||||||
|
|
||||||
if(UNIX)
|
|
||||||
target_link_libraries(tracy_client dl)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(WIN32)
|
|
||||||
target_link_libraries(tracy_client ws2_32 dbghelp)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user