From bed35fe8d1c9f90c21f751cb8a44526f01783a26 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Tue, 19 Jul 2022 14:35:44 +0300 Subject: [PATCH] Remove mingw build instructions and remove building with mingw from github workflow (#283) --- .github/workflows/.github.yml | 7 ------- README.md | 21 --------------------- 2 files changed, 28 deletions(-) diff --git a/.github/workflows/.github.yml b/.github/workflows/.github.yml index 8a9d50a4..29c3bdaa 100644 --- a/.github/workflows/.github.yml +++ b/.github/workflows/.github.yml @@ -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 diff --git a/README.md b/README.md index c71b303a..06d18e4e 100644 --- a/README.md +++ b/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