1
0
mirror of synced 2024-11-24 07:40:17 +01:00

git: Updated windows build instructions

This commit is contained in:
Nik 2023-09-05 13:43:29 +02:00 committed by GitHub
parent 68b203eb75
commit 4e7c3817ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,18 +11,12 @@ On Windows, ImHex is built through [msys2 / mingw](https://www.msys2.org/)'s gcc
cd ImHex
mkdir build
cd build
cmake -G "MinGW Makefiles" \
cmake -G "Ninja" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$PWD/install" \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_C_FLAGS="-fuse-ld=lld" \
-DCMAKE_CXX_FLAGS="-fuse-ld=lld" \
-DCMAKE_OBJC_COMPILER_LAUNCHER=ccache \
-DCMAKE_OBJCXX_COMPILER_LAUNCHER=ccache \
-DRUST_PATH="$USERPROFILE/.cargo/bin/" \
-DIMHEX_USE_DEFAULT_BUILD_SETTINGS=ON \
..
mingw32-make -j install
ninja install
```
ImHex will look for any extra resources either in various folders directly next to the executable or in `%localappdata%/imhex`