build(windows): add build_windows.ps1; docs: add Windows quick start and packaging
This commit is contained in:
22
README.md
22
README.md
@ -278,4 +278,24 @@ cmd /c "call ""C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Co
|
||||
|
||||
Notes:
|
||||
- If Ninja is not available, you can use the VS generator, but Ninja is recommended for clang.
|
||||
- You can override `LLVM_PROFDATA` and `LLVM_COV` cache variables to absolute tool paths if needed.
|
||||
- You can override `LLVM_PROFDATA` and `LLVM_COV` cache variables to absolute tool paths if needed.
|
||||
|
||||
### Windows – Quick start (vcpkg + VS 2022)
|
||||
|
||||
Build and package using the helper script:
|
||||
|
||||
```powershell
|
||||
$env:VCPKG_ROOT = "$env:USERPROFILE\vcpkg"
|
||||
if (-not (Test-Path $env:VCPKG_ROOT)) { git clone https://github.com/microsoft/vcpkg $env:VCPKG_ROOT; & "$env:VCPKG_ROOT\bootstrap-vcpkg.bat" }
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File .\build_windows.ps1
|
||||
```
|
||||
|
||||
Artifacts:
|
||||
|
||||
- DLL/LIB in `build\Release` and packaged zip at `dist\lib-privatebin-v0.1.1.3-windows-x64.zip`
|
||||
- Example: `build\example\Release\example.exe` (also included in the zip if present)
|
||||
|
||||
Notes:
|
||||
|
||||
- Ensure Visual Studio 2022 Build Tools (C++ workload) and Windows 11 SDK are installed.
|
||||
- The example links against the in-tree library target. The script copies DLL/LIB/PDB (if available), headers, README, and LICENSE into the package.
|
||||
Reference in New Issue
Block a user