Files
GVFG_Standalone/GVFG_SDK/CMakeLists.txt
T
iverson3yaandClaude Opus 5.5 784aa5c579 Update SDK 3.2 documentation and add English and Traditional Chinese versions
- Check the README, customer guides, API reference, and internal notes against the
  SDK 3.2.0 headers, export lists, and CMake rules. Fix stale versions, the OSD move to
  gvfg_osd.dll, the OSD example header, and missing APIs (HDMI audio info, the HDMI and
  chip structs, gvfg_render_osd_frame_bgra, gvfg_playback_enable_audio_reconnect).
- Document present_image returning EOUTPUT when nothing was presented, opt-in audio
  reconnect for EAUDIO, and whole-macropixel YUY2 row sizes.
- Make English the primary *.md for the README and customer documents, keep Traditional
  Chinese as *.zh-TW.md, and install both language versions.
- Update the GigabyteLib README version and checksum to 1.0.5 and redraw the
  architecture diagram for the Capture, OSD, and Playback DLLs.

Validation: git diff --cached --check passed. All relative links and anchors in the
changed Markdown files resolve, and the drawio XML parses with valid edges and
non-overlapping boxes. No build, cmake --install, or PDF regeneration was run, and the
diagram was not opened in draw.io.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:03:38 +08:00

68 lines
2.1 KiB
CMake

cmake_minimum_required(VERSION 3.16)
project(gvfg_sdk LANGUAGES CXX)
# Version policy: breaking public API changes bump MAJOR; features bump MINOR; fixes bump PATCH.
set(GVFG_SDK_VERSION "3.2.0")
option(GVFG_ENABLE_INTERNAL_DIAGNOSTICS "Enable SDK diagnostics in non-Debug builds" OFF)
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_osd)
add_subdirectory(helpers/gvfg_preview)
add_subdirectory(helpers/gvfg_audio_playback)
add_subdirectory(helpers/gvfg_playback)
install(FILES
../docs/GVFG_CUSTOMER_API.md
../docs/GVFG_CUSTOMER_API.zh-TW.md
../docs/GVFG_PLAYBACK_API.md
../docs/GVFG_PLAYBACK_API.zh-TW.md
DESTINATION ${CMAKE_INSTALL_DOCDIR}
)
install(FILES
../docs/GVFG_Customer_doc/GVFG_CUSTOMER_API_REFERENCE.md
../docs/GVFG_Customer_doc/GVFG_CUSTOMER_API_REFERENCE.zh-TW.md
DESTINATION ${CMAKE_INSTALL_DOCDIR}/GVFG_Customer_doc
)