Build against sibling ../sdk by default

Point the sdk submodule at https://git.slcydia.fun/4v5u09Z5a4Yuc/metin2-SDK.git
and default AVA2_SDK_ROOT to an SDK checkout beside the repository
(../sdk), falling back to the pinned submodule when it is absent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-12 18:04:42 +09:00
co-authored by Claude Opus 5.5
parent 7236edf747
commit efb7c120c0
3 changed files with 18 additions and 8 deletions
+7 -5
View File
@@ -3,7 +3,7 @@
Independent AVA2 port, Android arm64 first with macOS arm64 for development. The host, login/selection transport, supported loading/game socket bridge and Python 2 bootstrap are implemented. It is not yet a playable client.
```sh
git submodule update --init --recursive
git submodule update --init --recursive # only when ../sdk is not checked out
cmake -S . -B build/dev -DCMAKE_BUILD_TYPE=Debug
cmake --build build/dev -j 8
ctest --test-dir build/dev --output-on-failure
@@ -21,10 +21,12 @@ See [port status](docs/PORT-PLAN.md), [login implementation and verification](do
Windows equivalence is tracked in [the parity audit](docs/WINDOWS-PARITY.md). Preview characters require `--preview-data`; game previews do not prove server gameplay. The static [placeholder inventory](docs/WINDOWS-PARITY-INVENTORY.json) is regenerated with `python3 tools/audit_windows_parity.py`.
The SDK is maintained in its own Git repository and pinned by the `sdk` submodule.
Clone with `git clone --recurse-submodules`, or run the initialization command above
before configuring. To develop against an existing SDK checkout, configure with
`-DAVA2_SDK_ROOT=/absolute/path/to/sdk`; normal builds use the pinned submodule.
The SDK is maintained in its own Git repository
(https://git.slcydia.fun/4v5u09Z5a4Yuc/metin2-SDK.git). By default CMake uses an SDK
checkout beside this repository (`../sdk`, i.e. `chakan` and `sdk` in the same parent
directory). Without it, the build falls back to the pinned `sdk` submodule: clone with
`git clone --recurse-submodules` or run the initialization command above. Any other
checkout can be selected with `-DAVA2_SDK_ROOT=/absolute/path/to/sdk`.
Keep build outputs in `build/dev`, `build/release`, or another named directory
under `build/`, rather than configuring directly into `build/`. Put diagnostic