Skip to content

Commit

Permalink
windows build postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Jan 2, 2018
1 parent 6d175ab commit f9b20e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platforms/win32/winbareos32.spec
Expand Up @@ -117,11 +117,13 @@ done

for flavor in %flavors; do

WINDOWS_BITS=$(echo %name | grep 64 >/dev/null 2>&1 && echo "64" || echo "32")
WINDOWS_VERSION=$(echo $flavor | grep postvista >/dev/null && echo 0x600 || echo 0x500)
pushd $flavor
%{_mingw64_cmake_qt4} \
-DCMAKE_INSTALL_BINDIR:PATH=%{_mingw64_bindir} \
-Dsqlite3=yes \
-Dpostgresql=yes \
-DWINDOWS_BITS=${WINDOWS_BITS} \
-DWINDOWS_VERSION=${WINDOWS_VERSION}

Expand Down
1 change: 1 addition & 0 deletions platforms/win32/winbareos64.spec
Expand Up @@ -122,6 +122,7 @@ for flavor in %flavors; do
%{_mingw64_cmake_qt4} \
-DCMAKE_INSTALL_BINDIR:PATH=%{_mingw64_bindir} \
-Dsqlite3=yes \
-Dpostgresql=yes \
-DWINDOWS_BITS=${WINDOWS_BITS} \
-DWINDOWS_VERSION=${WINDOWS_VERSION}

Expand Down

0 comments on commit f9b20e1

Please sign in to comment.