Bump the GVFG SDK version to 0.3.0

Compared with 7082ebe:

- set the single public SDK version source to 0.3.0 in GVFG_SDK/CMakeLists.txt

- continue injecting PROJECT_VERSION into the gvfg DLL at build time

- keep the public header free of a duplicate compile-time version definition

- update API examples and the internal build guide to reference 0.3.0 and the correct CMake source
This commit is contained in:
Mark.lin
2026-09-14 16:50:18 +08:00
parent 7082ebed35
commit 268335bd40
5 changed files with 7 additions and 12 deletions
+3 -8
View File
@@ -38,16 +38,11 @@
## 4. 更新 SDK 版本
版本只有一個來源:根目錄 `CMakeLists.txt` 的 `project()`:
版本只有一個來源:`GVFG_SDK/CMakeLists.txt` 的 `project()`。例如準備 `0.3.0`
時改成:
```cmake
project(gvfg_standalone VERSION 0.2.1 LANGUAGES CXX)
```
例如準備 `0.2.1` 時改成:
```cmake
project(gvfg_standalone VERSION 0.2.1 LANGUAGES CXX)
project(gvfg_sdk VERSION 0.3.0 LANGUAGES CXX)
```
`sdk/gvfg` 會直接繼承根 project version,並將它編入 `gvfg.dll`。不再存在 `GVFG_SDK_VERSION` cache option,也不應使用 `-DGVFG_SDK_VERSION=...` 覆寫。修改版本後要重新 configure,再重新建置 DLL。