Files
GVFG_Standalone/GVFG_SDK/CMakeLists.txt
T
Mark.lin f0beaff35f Add GPU text overlays and streamline SDK conversion paths
- add an internal DirectWrite/Direct2D OSD core for YUY2 and Y210 with configurable position, font size, RGB color, and up to 32 printable ASCII characters

- expose per-channel OSD set/clear APIs and blend only the visible overlay rectangle on the GPU while preserving the frame read/release contract and tracking native versus processed buffer ownership

- convert native YUY2/Y210 directly to BGRA8, RGB10A2, or NV12 with reusable output resources, avoiding unnecessary FP16 intermediates and scene copies

- draw native-size and reduced previews directly to the swapchain and allocate an FP16 intermediate only for enlarged previews while retaining the existing upload queue and format support

- bump the SDK version to 1.0.2, fix the installed customer API reference path, update conversion and OSD documentation, and remove the old 0922 SDK archive

Validation: git diff --cached --check passed before commit. No SDK rebuild or hardware runtime validation was performed in this commit pass.
2026-10-15 16:18:30 +08:00

57 lines
1.6 KiB
CMake

cmake_minimum_required(VERSION 3.16)
project(gvfg_sdk LANGUAGES CXX)
set(GVFG_SDK_VERSION "1.0.2")
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(helpers/gvfg_osd)
add_subdirectory(sdk/gvfg)
add_subdirectory(helpers/gvfg_preview)
add_subdirectory(helpers/gvfg_audio_playback)
install(FILES
../docs/GVFG_CUSTOMER_API.md
../docs/GVFG_Customer_doc/GVFG_CUSTOMER_API_REFERENCE.md
DESTINATION ${CMAKE_INSTALL_DOCDIR}
)