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
1 changed files with 3 additions and 9 deletions

View File

@ -11,18 +11,12 @@ On Windows, ImHex is built through [msys2 / mingw](https://www.msys2.org/)'s gcc
cd ImHex cd ImHex
mkdir build mkdir build
cd build cd build
cmake -G "MinGW Makefiles" \ cmake -G "Ninja" \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$PWD/install" \ -DCMAKE_INSTALL_PREFIX="$PWD/install" \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \ -DIMHEX_USE_DEFAULT_BUILD_SETTINGS=ON \
-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/" \
.. ..
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` ImHex will look for any extra resources either in various folders directly next to the executable or in `%localappdata%/imhex`