Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:

- name: Build profiler_codegen
run: |
cmake -B ${{github.workspace}}/build -DSKIP_PLATFORMS_CHECK=ON
cmake -B ${{github.workspace}}/build -DSKIP_PLATFORMS_CHECK=ON -DSDL_UNIX_CONSOLE_BUILD=ON
cmake --build ${{github.workspace}}/build --target profiler_codegen

- name: Clean previous versions
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@
[submodule "External/tabler-icons"]
path = External/tabler-icons
url = https://github.com/tabler/tabler-icons
[submodule "External/SDL"]
path = External/SDL
url = https://github.com/libsdl-org/SDL
7 changes: 7 additions & 0 deletions External/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,10 @@ target_include_directories (stb
INTERFACE stb)

set (PROFILER_INSTALL_EXTERNAL_TARGETS ${_PROFILER_INSTALL_EXTERNAL_TARGETS} PARENT_SCOPE)

# libsdl-org/SDL
set (SDL_STATIC ON CACHE BOOL "" FORCE)
set (SDL_SHARED OFF CACHE BOOL "" FORCE)
set (SDL_TEST_LIBRARY OFF CACHE BOOL "" FORCE)

add_subdirectory (SDL)
1 change: 1 addition & 0 deletions External/SDL
Submodule SDL added at d9d553
24 changes: 21 additions & 3 deletions VkLayer_profiler_layer/profiler_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ endif ()
if (BUILD_TESTS)
add_subdirectory (shaders)

set (tests
set (profiler_backend_tests_sources
"profiler_command_buffer_tests.cpp"
"profiler_config_tests.cpp"
"profiler_extensions_tests.cpp"
Expand All @@ -47,8 +47,12 @@ if (BUILD_TESTS)
"profiler_vulkan_state.h"
)

set (profiler_overlay_tests_sources
"profiler_overlay_test.cpp"
)

add_executable (profiler_tests
${tests}
${profiler_backend_tests_sources}
)

add_dependencies (profiler_tests profiler_tests_shaders)
Expand All @@ -64,7 +68,21 @@ if (BUILD_TESTS)
PRIVATE "${CMAKE_CURRENT_BINARY_DIR}"
)

install (TARGETS profiler_tests
add_executable (profiler_overlay_tests
${profiler_overlay_tests_sources}
)

target_link_libraries (profiler_overlay_tests
PRIVATE ${Vulkan_LIBRARIES}
PRIVATE profiler
PRIVATE profiler_trace
PRIVATE profiler_helpers
PRIVATE profiler_overlay
PRIVATE SDL3::SDL3-static
PRIVATE imgui
)

install (TARGETS profiler_tests profiler_overlay_tests
COMPONENT Tests
EXCLUDE_FROM_ALL
)
Expand Down
Loading