# Box2D 3.2.0 & raylib 6.2 — Windows ARM64 (`win32-arm64`) portabili

DLL native `ARM64` (`AA64`) compilate in Release con **Visual Studio Professional 2022** e CRT MSVC linkato staticamente (`MultiThreaded` / `/MT`): non richiedono alcuna redistributable Visual C++ (`VCRUNTIME140.dll`, `ucrtbase.dll`), ma dipendono esclusivamente da DLL standard di Windows.

## Contenuto

| File | Dimensione | SHA-256 | Descrizione |
|---|---:|---|---|
| `box2d.dll` | 530 KB | `c97b41f4f990831682cf95fca14387701cfb218b9ecb20146a24cdaf4994d5df` | Box2D `3.2.0` single-precision (`/MT`, `machine (ARM64)`) |
| `raylib.dll` | 1.5 MB | `29bd9e9704fc68e363b582d73a58e02c64a5f6948afa46a22617d367117068e4` | raylib `6.2.0` Desktop Win32 + OpenGL 3.3 (`/MT`, `machine (ARM64)`) |
| `LICENSE-Box2D` | 1.0 KB | `68a3e676d7e94093b102d5cba0d4e04af812040d6f230c3db67a6664574e43d2` | Licenza MIT di Box2D (`erincatto/box2d`) |
| `LICENSE-raylib` | 877 B | `882a5a819cf562aa3583aae3af3f2211dda15c63de9fc8cc4b399a2f9e78d799` | Licenza zlib/libpng di raylib (`raysan5/raylib`) |

## Versioni e toolchain usate

| Componente | Versione / Commit |
|---|---|
| Box2D | `v3.2.0`, commit `178495ba35695aefe9c321e569d2277f06db3b90` |
| raylib | `6.2`, commit `02566453880e06bec97f5b8160fa6fe1e98397ca` |
| Compilatore | MSVC `19.44.35230.0`, toolset `14.44.35207` (`Hostarm64\arm64\cl.exe`), Visual Studio Professional 2022 `17.14.45` |
| Windows SDK | `10.0.26100.0` (target `10.0.26300`) |
| CMake | `4.0.2`, generatore `Visual Studio 17 2022`, `-A ARM64` |
| Runtime | `CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded` (`/MT`) |
| Macchina di build | Windows 11 (`10.0.26300.10075`) ARM64 in Parallels su Apple Silicon |

## Riproducibilità della build

```powershell
git clone --depth 1 --branch v3.2.0 https://github.com/erincatto/box2d.git box2d
git clone --depth 1 --branch 6.2 https://github.com/raysan5/raylib.git raylib

cmake -S box2d -B build-box2d-ARM64 -G "Visual Studio 17 2022" -A ARM64 `
  -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded `
  -DBUILD_SHARED_LIBS=ON `
  -DBOX2D_SAMPLES=OFF -DBOX2D_BENCHMARKS=OFF -DBOX2D_DOCS=OFF -DBOX2D_UNIT_TESTS=OFF
cmake --build build-box2d-ARM64 --config Release --parallel

cmake -S raylib -B build-raylib-ARM64 -G "Visual Studio 17 2022" -A ARM64 `
  -DCMAKE_POLICY_DEFAULT_CMP0091=NEW `
  -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded `
  -DUSE_MSVC_RUNTIME_LIBRARY_DLL=OFF `
  -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -DPLATFORM=Desktop
cmake --build build-raylib-ARM64 --config Release --parallel
```

## Verifiche (`dumpbin` + smoke test nativo ARM64)

```text
box2d.dll (AA64 machine (ARM64)):
    KERNEL32.dll

raylib.dll (AA64 machine (ARM64)):
    WINMM.dll
    KERNEL32.dll
    USER32.dll
    GDI32.dll
    SHELL32.dll
```

- Export verificati (`dumpbin /exports`): `b2CreateWorld`, `b2DefaultDebugDraw`, `b2GetVersion`, `b2IsDoublePrecision`, `b2World_Draw`, `ColorAlpha`, `DrawTriangle`, `InitWindow`.
- Eseguibile nativo `smoke_arm64.exe` (`LoadLibraryA` + `GetProcAddress` su Windows 11 ARM64): `Smoke Box2D v3.2.0 OK (10 steps)` e `Smoke raylib ColorAlpha=(100,150,200,127) OK`.
