Compared with b5b045a:
- Model CH0 and CH1 as independent channel sessions sharing one device connection.
- Keep one outstanding frame per channel and tighten read/release ownership validation.
- Unify facade and PCIES2MM diagnostic details in a per-channel ChannelErrorState.
- Treat polling timeouts and stop wakeups as expected control flow instead of persistent faults.
- Report detailed errors only when an API operation actually fails.
- Remove obsolete preview timing/error diagnostics and the redundant debug error API.
- Refresh the public and internal API references, architecture diagrams, and learning guides.
69 lines
1.7 KiB
CMake
69 lines
1.7 KiB
CMake
# Inherit the version from the standalone root project. The root project()
|
|
# declaration is the single source of truth for the public SDK version.
|
|
set(_GVFG_VERSION "${PROJECT_VERSION}")
|
|
project(gvfg VERSION ${_GVFG_VERSION} LANGUAGES CXX)
|
|
|
|
add_library(gvfg SHARED
|
|
include/gvfg_capture.h
|
|
include/gvfg_debug.h
|
|
src/backend/pcies2mm/pcies2mm_backend_types.h
|
|
src/backend/pcies2mm/pcies2mm_capture_session.cpp
|
|
src/backend/pcies2mm/pcies2mm_capture_session.h
|
|
src/backend/pcies2mm/pcies2mm_device.cpp
|
|
src/backend/pcies2mm/pcies2mm_device.h
|
|
src/backend/pcies2mm/pcies2mm_reg.h
|
|
src/backend/pcies2mm/pcies2mm_video_format.cpp
|
|
src/backend/pcies2mm/pcies2mm_video_format.h
|
|
src/gpu/d3d_conversion_pipeline.cpp
|
|
src/gpu/d3d_conversion_pipeline.h
|
|
src/gpu/gvfg_gpu_convert.cpp
|
|
src/gvfg_error_state.h
|
|
src/gvfg_capture.cpp
|
|
)
|
|
|
|
set_target_properties(gvfg PROPERTIES
|
|
AUTOMOC OFF
|
|
AUTOUIC OFF
|
|
AUTORCC OFF
|
|
)
|
|
|
|
target_include_directories(gvfg
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/backend/pcies2mm
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/gpu
|
|
)
|
|
|
|
target_compile_definitions(gvfg PRIVATE
|
|
GVFG_BUILD
|
|
GVFG_VERSION_STRING="${PROJECT_VERSION}"
|
|
)
|
|
|
|
target_compile_definitions(gvfg PRIVATE
|
|
GVFG_INTERNAL_DIAGNOSTICS=$<IF:$<CONFIG:Debug>,1,0>
|
|
)
|
|
|
|
target_link_libraries(gvfg PRIVATE
|
|
giga_ioctl
|
|
setupapi
|
|
user32
|
|
dxgi
|
|
d3d11
|
|
D3DCompiler
|
|
)
|
|
|
|
if (MSVC)
|
|
target_compile_options(gvfg PRIVATE /utf-8 /EHsc)
|
|
endif()
|
|
|
|
install(TARGETS gvfg
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
)
|
|
|
|
install(FILES include/gvfg_capture.h
|
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
|
)
|