367 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
20 lines
1.1 KiB
Markdown
20 lines
1.1 KiB
Markdown
# Local Windows (PE) cross-build
|
|
|
|
Builds the PE native stack from current sources without the Windows VM.
|
|
|
|
```sh
|
|
docker build -t gw-mingw:f43 tools/mingw-cross
|
|
G=$PWD; RUN="docker run --rm -u $(id -u):$(id -g) -v $G:$G -w $G gw-mingw:f43"
|
|
# GWNativeBackend.dll + libgateway_protocol.a (MinGW GCC)
|
|
$RUN cmake -S . -B build-pe -G Ninja -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-mingw64.cmake \
|
|
-DCMAKE_BUILD_TYPE=Release -DGW_WINDOWS_LOGIN_PROFILE_HEADER=<reviewed login profile>
|
|
$RUN cmake --build build-pe --target GWNativeBackend
|
|
# forever_codec.dll (clang, MinGW target: COMDAT sections are needed to drop unused readers)
|
|
python3 ops/build_windows_codec.py prepare --cache build/<linux codec dir> --output build-pe/codec-closure
|
|
docker run --rm -e GW_WINDOWS_CROSS=1 ... python3 ops/build_windows_codec.py build \
|
|
--closure build-pe/codec-closure --output build-pe/codec-clang --compiler /usr/bin/clang++ \
|
|
--protocol-library build-pe/libgateway_protocol.a --linker lld
|
|
```
|
|
|
|
The Wire/Bridge are already PE (clang, `ops/build_wine_wire.py --pe-only --native-windows`).
|