mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-13 16:37:57 +00:00
Remove mingw build instructions and remove building with mingw from github workflow (#283)
This commit is contained in:
parent
e51878c45b
commit
bed35fe8d1
7
.github/workflows/.github.yml
vendored
7
.github/workflows/.github.yml
vendored
@ -63,13 +63,6 @@ jobs:
|
||||
schroot --chroot steamrt_scout_i386 -- cmake --build build-vgui --target all
|
||||
schroot --chroot steamrt_scout_i386 -- cmake --build build-vgui --target install
|
||||
|
||||
- name: Build with mingw
|
||||
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.cc, 'gcc')
|
||||
run: |
|
||||
sudo apt-get install -y mingw-w64-i686-dev binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686
|
||||
cmake -B build-mingw -S . -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++
|
||||
cmake --build build-mingw --target all
|
||||
|
||||
- name: Add msbuild to PATH
|
||||
if: startsWith(matrix.os, 'windows')
|
||||
uses: microsoft/setup-msbuild@v1.0.2
|
||||
|
21
README.md
21
README.md
@ -171,27 +171,6 @@ schroot --chroot jessie -- cmake -B build-in-chroot -S .
|
||||
schroot --chroot jessie -- cmake --build build-in-chroot
|
||||
```
|
||||
|
||||
## Linux. Crosscompiling using mingw
|
||||
|
||||
Note that GoldSource won't work with libraries compiled with mingw.
|
||||
|
||||
TODO: do we need this section at all? Is Xash3D-FWGS distributed with support for game libraries built with mingw?
|
||||
|
||||
### Prerequisites
|
||||
|
||||
Install mingw. On Ubuntu/Debian:
|
||||
```
|
||||
sudo apt-get install -y mingw-w64-i686-dev binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686
|
||||
```
|
||||
|
||||
### Building
|
||||
|
||||
```
|
||||
mkdir build-mingw && cd build-mingw
|
||||
TOOLCHAIN_PREFIX=i686-w64-mingw32 # check up the actual mingw prefix of your mingw installation
|
||||
cmake .. -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER="$TOOLCHAIN_PREFIX-gcc" -DCMAKE_CXX_COMPILER="$TOOLCHAIN_PREFIX-g++"
|
||||
```
|
||||
|
||||
## Android
|
||||
|
||||
TODO
|
||||
|
Loading…
Reference in New Issue
Block a user