Skip to content

Commit

Permalink
minor cleanup of MinGW-related scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
FyiurAmron committed Jun 27, 2024
1 parent 68ea3f5 commit e0915b8
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 139 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ jobs:
run: |
ccache --zero-stats
source /opt/qt5*/bin/qt5*-env.sh || true
mkdir build && cd build
cmake .. $CMAKE_OPTS -DCMAKE_INSTALL_PREFIX=./install
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=./install $CMAKE_OPTS
- name: Build
run: cmake --build build
- name: Run tests
Expand Down Expand Up @@ -194,8 +193,11 @@ jobs:
- name: Configure
run: |
ccache --zero-stats
mkdir build && cd build
../cmake/build_win${{ matrix.arch }}.sh
cmake -S . \
-B build \
-DCMAKE_INSTALL_PREFIX=./install \
-DCMAKE_TOOLCHAIN_FILE="./cmake/toolchains/MinGW-W64-${{ matrix.arch }}.cmake" \
$CMAKE_OPTS
- name: Build
run: cmake --build build
- name: Package
Expand Down
40 changes: 0 additions & 40 deletions cmake/build_win32.sh

This file was deleted.

3 changes: 0 additions & 3 deletions cmake/build_win64.sh

This file was deleted.

2 changes: 2 additions & 0 deletions cmake/toolchains/MinGW-W64-32.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/common/Win32.cmake)
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/common/MinGW-W64.cmake)
4 changes: 4 additions & 0 deletions cmake/toolchains/MinGW-W64-64.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SET(CMAKE_TOOLCHAIN_FILE_32 "${CMAKE_CURRENT_LIST_DIR}/MinGW-W64-32.cmake")

INCLUDE(${CMAKE_CURRENT_LIST_DIR}/common/Win64.cmake)
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/common/MinGW-W64.cmake)
2 changes: 0 additions & 2 deletions cmake/toolchains/Ubuntu-MinGW-W64-32.cmake

This file was deleted.

4 changes: 0 additions & 4 deletions cmake/toolchains/Ubuntu-MinGW-W64-64.cmake

This file was deleted.

3 changes: 0 additions & 3 deletions cmake/toolchains/Ubuntu-MinGW-X-Trusty-32.cmake

This file was deleted.

9 changes: 0 additions & 9 deletions cmake/toolchains/Ubuntu-MinGW-X-Trusty-64.cmake

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Toolchain for Ubuntu MinGw compiler shipped with the mingw-w64 and
# g++-mingw-w64 packages

SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_SYSTEM_VERSION 1)

# Toolchain for MinGW compiler
SET(TOOLCHAIN_PREFIX ${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32)
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
Expand All @@ -14,4 +17,8 @@ IF(WIN64)
SET(CMAKE_CXX_COMPILER32 ${TOOLCHAIN_PREFIX32}-g++)
ENDIF()

INCLUDE(${CMAKE_CURRENT_LIST_DIR}/WinCrossCompile.cmake)
# Search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# Search for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
58 changes: 0 additions & 58 deletions cmake/toolchains/common/Ubuntu-MinGW-X-Trusty.cmake

This file was deleted.

2 changes: 0 additions & 2 deletions cmake/toolchains/common/Win32.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_SYSTEM_VERSION 1)

SET(CMAKE_SYSTEM_PROCESSOR i686)

Expand Down
2 changes: 0 additions & 2 deletions cmake/toolchains/common/Win64.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_SYSTEM_VERSION 1)

SET(CMAKE_SYSTEM_PROCESSOR x86_64)
SET(CMAKE_SYSTEM_PROCESSOR32 i686)
Expand Down
9 changes: 0 additions & 9 deletions cmake/toolchains/common/WinCrossCompile.cmake

This file was deleted.

0 comments on commit e0915b8

Please sign in to comment.