mirror of
https://github.com/wolfpld/tracy.git
synced 2024-12-01 17:34:36 +00:00
Fix non-wayland build.
This commit is contained in:
parent
970250fc85
commit
58115b35c5
@ -134,7 +134,7 @@ set(PROFILER_FILES
|
|||||||
set(INCLUDES "")
|
set(INCLUDES "")
|
||||||
set(LIBS "")
|
set(LIBS "")
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT LEGACY)
|
if(USE_WAYLAND)
|
||||||
pkg_check_modules(WAYLAND REQUIRED egl wayland-egl wayland-cursor xkbcommon)
|
pkg_check_modules(WAYLAND REQUIRED egl wayland-egl wayland-cursor xkbcommon)
|
||||||
set(INCLUDES "${INCLUDES};${WAYLAND_INCLUDE_DIRS}")
|
set(INCLUDES "${INCLUDES};${WAYLAND_INCLUDE_DIRS}")
|
||||||
set(LIBS "${LIBS};${WAYLAND_LIBRARIES}")
|
set(LIBS "${LIBS};${WAYLAND_LIBRARIES}")
|
||||||
@ -144,6 +144,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT LEGACY)
|
|||||||
src/wayland/xdg-decoration.c
|
src/wayland/xdg-decoration.c
|
||||||
src/wayland/xdg-shell.c
|
src/wayland/xdg-shell.c
|
||||||
)
|
)
|
||||||
|
else()
|
||||||
|
set(PROFILER_FILES ${PROFILER_FILES}
|
||||||
|
src/BackendGlfw.cpp
|
||||||
|
src/imgui/imgui_impl_glfw.cpp
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(${INCLUDES})
|
include_directories(${INCLUDES})
|
||||||
|
Loading…
Reference in New Issue
Block a user