Compared with SDK 0.2.0 (3cd7fbbb):
- Handle the zero-copy release race where the driver clears frame ownership before the SDK receives the unplug event. Wait up to 100 ms only after ERROR_BAD_COMMAND, accept the release as revoked only after a confirmed disconnect, and preserve all other release failures.
- Apply the same confirmed-unplug handling to normal frame release and pending-frame teardown without adding latency to successful per-frame releases.
- Add Debug-only audio event, frame, and byte counters across the Driver-to-SDK, SDK-to-APP, and APP-to-output boundaries, and show the concise totals in the internal diagnostic sample.
- Rename Release and Debug customer packages to the requested GVFG_Sample labels, use minute-resolution timestamps, and derive the package suffix from the root CMake project version.
- Bump the standalone SDK version to 0.2.1 and synchronize the public API examples and internal build guide.
Validation: git diff --check and focused source/diff inspection passed. No build, package generation, runtime capture, unplug stress test, or hardware validation was run.
37 lines
880 B
CMake
37 lines
880 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(gvfg_standalone VERSION 0.2.1 LANGUAGES CXX)
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTOUIC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
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")
|
|
|
|
option(BUILD_GVFG_SAMPLES "Build GVFG customer samples" ON)
|
|
|
|
if (NOT WIN32)
|
|
message(FATAL_ERROR "GVFG currently supports Windows only.")
|
|
endif()
|
|
|
|
add_subdirectory(sdk/giga_ioctl)
|
|
add_subdirectory(sdk/gvfg)
|
|
add_subdirectory(helpers/gvfg_preview)
|
|
|
|
if (BUILD_GVFG_SAMPLES)
|
|
add_subdirectory(samples/gvfg_qt_preview)
|
|
endif()
|
|
|
|
install(FILES
|
|
docs/GVFG_CUSTOMER_API.md
|
|
docs/GVFG_CUSTOMER_API_REFERENCE.md
|
|
DESTINATION ${CMAKE_INSTALL_DOCDIR}
|
|
)
|