mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Merge pull request #3320 from IvanSavenko/windows_legacy
Fix Windows 7 support
This commit is contained in:
12
.github/workflows/github.yml
vendored
12
.github/workflows/github.yml
vendored
@@ -116,7 +116,7 @@ jobs:
|
|||||||
pack_type: RelWithDebInfo
|
pack_type: RelWithDebInfo
|
||||||
extension: exe
|
extension: exe
|
||||||
preset: windows-msvc-release-ccache
|
preset: windows-msvc-release-ccache
|
||||||
- platform: mingw-ubuntu
|
- platform: mingw
|
||||||
os: ubuntu-22.04
|
os: ubuntu-22.04
|
||||||
test: 0
|
test: 0
|
||||||
pack: 1
|
pack: 1
|
||||||
@@ -126,6 +126,16 @@ jobs:
|
|||||||
cmake_args: -G Ninja
|
cmake_args: -G Ninja
|
||||||
preset: windows-mingw-conan-linux
|
preset: windows-mingw-conan-linux
|
||||||
conan_profile: mingw64-linux.jinja
|
conan_profile: mingw64-linux.jinja
|
||||||
|
- platform: mingw-32
|
||||||
|
os: ubuntu-22.04
|
||||||
|
test: 0
|
||||||
|
pack: 1
|
||||||
|
pack_type: Release
|
||||||
|
extension: exe
|
||||||
|
cpack_args: -D CPACK_NSIS_EXECUTABLE=`which makensis`
|
||||||
|
cmake_args: -G Ninja
|
||||||
|
preset: windows-mingw-conan-linux
|
||||||
|
conan_profile: mingw32-linux.jinja
|
||||||
- platform: android-32
|
- platform: android-32
|
||||||
os: ubuntu-22.04
|
os: ubuntu-22.04
|
||||||
extension: apk
|
extension: apk
|
||||||
|
@@ -17,4 +17,5 @@ RC={{ target_host }}-windres
|
|||||||
{% macro generate_conf(target_host) -%}
|
{% macro generate_conf(target_host) -%}
|
||||||
tools.build:compiler_executables = {"c": "{{ target_host }}-gcc", "cpp": "{{ target_host }}-g++"}
|
tools.build:compiler_executables = {"c": "{{ target_host }}-gcc", "cpp": "{{ target_host }}-g++"}
|
||||||
tools.build:sysroot = /usr/{{ target_host }}
|
tools.build:sysroot = /usr/{{ target_host }}
|
||||||
|
tools.build:defines = ["WINVER=0x0601", "_WIN32_WINNT=0x0601"]
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
16
CI/mingw-32/before_install.sh
Normal file
16
CI/mingw-32/before_install.sh
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install ninja-build mingw-w64 nsis
|
||||||
|
sudo update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
|
||||||
|
|
||||||
|
# Workaround for getting new MinGW headers on Ubuntu 22.04.
|
||||||
|
# Remove it once MinGW headers version in repository will be 10.0 at least
|
||||||
|
curl -O -L http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw-w64-common_10.0.0-3_all.deb \
|
||||||
|
&& sudo dpkg -i mingw-w64-common_10.0.0-3_all.deb;
|
||||||
|
curl -O -L http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw-w64-i686-dev_10.0.0-3_all.deb \
|
||||||
|
&& sudo dpkg -i mingw-w64-i686-dev_10.0.0-3_all.deb;
|
||||||
|
|
||||||
|
mkdir ~/.conan ; cd ~/.conan
|
||||||
|
curl -L "https://github.com/vcmi/vcmi-deps-windows-conan/releases/download/1.1/vcmi-deps-windows-conan-w32.tgz" \
|
||||||
|
| tar -xzf -
|
@@ -12,5 +12,5 @@ curl -O -L http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw-w64-
|
|||||||
&& sudo dpkg -i mingw-w64-x86-64-dev_10.0.0-3_all.deb;
|
&& sudo dpkg -i mingw-w64-x86-64-dev_10.0.0-3_all.deb;
|
||||||
|
|
||||||
mkdir ~/.conan ; cd ~/.conan
|
mkdir ~/.conan ; cd ~/.conan
|
||||||
curl -L "https://github.com/vcmi/vcmi-deps-windows-conan/releases/download/1.0/vcmi-deps-windows-conan-w64.tgz" \
|
curl -L "https://github.com/vcmi/vcmi-deps-windows-conan/releases/download/1.1/vcmi-deps-windows-conan-w64.tgz" \
|
||||||
| tar -xzf -
|
| tar -xzf -
|
@@ -255,7 +255,10 @@ endif()
|
|||||||
|
|
||||||
if(MINGW OR MSVC)
|
if(MINGW OR MSVC)
|
||||||
# Windows Vista or newer for FuzzyLite 6 to compile
|
# Windows Vista or newer for FuzzyLite 6 to compile
|
||||||
|
# Except for conan which already has this definition in its preset
|
||||||
|
if(NOT USING_CONAN)
|
||||||
add_definitions(-D_WIN32_WINNT=0x0600)
|
add_definitions(-D_WIN32_WINNT=0x0600)
|
||||||
|
endif()
|
||||||
|
|
||||||
#delete lib prefix for dlls (libvcmi -> vcmi)
|
#delete lib prefix for dlls (libvcmi -> vcmi)
|
||||||
set(CMAKE_SHARED_LIBRARY_PREFIX "")
|
set(CMAKE_SHARED_LIBRARY_PREFIX "")
|
||||||
|
Reference in New Issue
Block a user