Added Windows installer build script

This commit is contained in:
Bartek Kryza
2023-06-11 17:14:00 +02:00
parent 3154cfd737
commit fbb16859f3
2 changed files with 21 additions and 4 deletions

View File

@@ -46,8 +46,7 @@ First build release configuration using `cmake` and `msbuild` according
to the [documentation](../docs/installation.md#visual-studio-native-build). to the [documentation](../docs/installation.md#visual-studio-native-build).
```bash ```bash
cmake -S clang-uml -B .\clang-uml-build-pkg\ -DCMAKE_PREFIX_PATH="C:\clang-uml" -Thost=x64 cd packaging
cd .\clang-uml-build-pkg\ .\make_installer.ps1
msbuild .\clang-uml.vcxproj -maxcpucount /p:Configuration=RelWithDebInfo ls .\_BUILD\windows\clang-uml-0.3.7-win64.exe
cpack -C "RelWithDebInfo" -G NSIS64
``` ```

View File

@@ -0,0 +1,18 @@
# This script assumes that all clang-uml dependencies are instaled in C:\clang-uml
param ($Prefix="C:\clang-uml", $BuildType="Release")
mkdir _BUILD
cmake -S .. -B .\_BUILD\windows\ -DCMAKE_PREFIX_PATH="$Prefix" -Thost=x64
cd .\_BUILD\windows\src
msbuild .\clang-uml.vcxproj -maxcpucount /p:Configuration=Release
cd ..
cpack -C "Release" -G NSIS64
cd ..
cd ..