Files
GVFG_Standalone/GVFG_SDK/CMakeLists.txt
T
Mark.lin 350e8e519c Streamline GigabyteLib capture control and diagnostics
Compared with d652f15:

- set the SDK release version to 1.0.0 for the new GigabyteLib backend and its required matching driver

- preserve GigabyteLib result codes and event names through the public SDK instead of translating vendor semantics

- expose cached Lib signal, SDI string fields, ErrorCount, and separate video/audio event counters for direct diagnostics

- serialize GigabyteLib capture calls and recover an active stream internally after a video input plugin event

- keep the SDK frame lifetime fence while following the current zero-copy contract without a vendor release call

- separate Sample logging and presentation counters from capture control, and report Lib-owned fields with explicit source names

- remove the manual Open Device control so Start lazily opens the selected device and revalidates VideoSignalLock once per request

- keep format selection side-effect free until Start opens the channel, then apply the selected output depth through GigabyteLib

- update the public API, diagnostics, architecture, error-handling, and build documentation for the simplified ownership model
2026-09-15 16:52:19 +08:00

53 lines
1.5 KiB
CMake

cmake_minimum_required(VERSION 3.16)
project(gvfg_sdk VERSION 1.0.0 LANGUAGES CXX)
include(GNUInstallDirs)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTOMOC OFF)
set(CMAKE_AUTOUIC OFF)
set(CMAKE_AUTORCC OFF)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(GVFG_MINGW_DLLTOOL "" CACHE FILEPATH
"MinGW dlltool used to generate GNU import libraries from the MSVC DLL exports")
if (MSVC AND NOT GVFG_MINGW_DLLTOOL)
find_program(_GVFG_MINGW_DLLTOOL_FOUND
NAMES dlltool.exe x86_64-w64-mingw32-dlltool.exe
HINTS
"C:/Qt/Tools/mingw1310_64/bin"
"C:/Qt/Tools/mingw1120_64/bin"
NO_CACHE
)
if (_GVFG_MINGW_DLLTOOL_FOUND)
set(GVFG_MINGW_DLLTOOL "${_GVFG_MINGW_DLLTOOL_FOUND}" CACHE FILEPATH
"MinGW dlltool used to generate GNU import libraries from the MSVC DLL exports" FORCE)
endif()
endif()
if (MSVC AND NOT GVFG_MINGW_DLLTOOL)
message(WARNING
"MinGW dlltool was not found. MSVC libraries will be built, but GNU "
"import libraries for MinGW consumers will not be generated. Set "
"GVFG_MINGW_DLLTOOL to enable them.")
endif()
if (NOT WIN32)
message(FATAL_ERROR "GVFG SDK currently supports Windows only.")
endif()
add_subdirectory(sdk/gvfg)
add_subdirectory(helpers/gvfg_preview)
install(FILES
../docs/GVFG_CUSTOMER_API.md
../docs/GVFG_CUSTOMER_API_REFERENCE.md
DESTINATION ${CMAKE_INSTALL_DOCDIR}
)