Files
GVFG_Standalone/sdk/gvfg/CMakeLists.txt
T
Mark.lin 1574e90b49 Refactor GVFG channel and driver access flow
- support only the new vfg100_0821c driver; legacy drivers and IOCTL contracts are intentionally unsupported
- use one SDK handle per physical device with independent CH0/CH1 sessions and selectable event masks
- expose Device Manager friendly names and remove redundant enumerated device indices
- align active capture IOCTLs with the new driver while omitting unsupported OPEN_VIDEO/CLOSE_VIDEO calls
- isolate IOCTL codes, request layouts, and DeviceIoControl calls in the new giga_ioctl DLL
- block reads of pure write-only registers while preserving dual-semantics interrupt status reads
- reduce duplicate signal register queries during open/start
- add zero-copy/copy driver GetFrame timing in microseconds and show it in the preview status
- update public/internal documentation for the revised lifecycle and channel APIs

Validation: static searches and git diff --check only; build intentionally not run.
2026-08-21 17:52:04 +08:00

67 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_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/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}
)