From 908112d5e1f7230b77455403f01689741ad0f885 Mon Sep 17 00:00:00 2001 From: Philipp Storz Date: Fri, 7 Nov 2014 13:40:08 +0100 Subject: [PATCH] Be able to build also for windows < vista --- platforms/win32/winbareos32.spec | 4 +++- platforms/win32/winbareos64.spec | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/platforms/win32/winbareos32.spec b/platforms/win32/winbareos32.spec index b5a47354546..f87a3e75182 100644 --- a/platforms/win32/winbareos32.spec +++ b/platforms/win32/winbareos32.spec @@ -1,12 +1,14 @@ # If versionstring contains debug, enable debug during build %define WIN_DEBUG %(echo %version | grep debug >/dev/null 2>&1 && echo "yes" || echo "no") +# If versionstring contains prevista, build for windows < vista +%define WIN_VISTACOMPAT %(echo %version | grep prevista >/dev/null 2>&1 && echo "no" || echo "yes") + # Determine Windows Version (32/64) from name (mingw32-.../ming64-...) %define WIN_VERSION %(echo %name | grep 64 >/dev/null 2>&1 && echo "64" || echo "32") # Set what to build %define BUILD_QTGUI yes -%define WIN_VISTACOMPAT yes %define __strip %{_mingw32_strip} %define __objdump %{_mingw32_objdump} diff --git a/platforms/win32/winbareos64.spec b/platforms/win32/winbareos64.spec index 8a006187383..11bd218dee1 100644 --- a/platforms/win32/winbareos64.spec +++ b/platforms/win32/winbareos64.spec @@ -1,12 +1,14 @@ # If versionstring contains debug, enable debug during build %define WIN_DEBUG %(echo %version | grep debug >/dev/null 2>&1 && echo "yes" || echo "no") +# If versionstring contains prevista, build for windows < vista +%define WIN_VISTACOMPAT %(echo %version | grep prevista >/dev/null 2>&1 && echo "no" || echo "yes") + # Determine Windows Version (32/64) from name (mingw32-.../ming64-...) %define WIN_VERSION %(echo %name | grep 64 >/dev/null 2>&1 && echo "64" || echo "32") # Set what to build %define BUILD_QTGUI yes -%define WIN_VISTACOMPAT yes %define __strip %{_mingw64_strip} %define __objdump %{_mingw64_objdump}