Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Better crossbuild openssl configuration for windows.
Browse files Browse the repository at this point in the history
Better skip libgcc if not found for windows package.
Better wine integration in release-all.sh
  • Loading branch information
pasnox committed Jun 19, 2010
1 parent 0848197 commit 8844c34
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 26 deletions.
9 changes: 6 additions & 3 deletions libwbfs/shared.pri
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ INCLUDEPATH *= $${LIB_WBFS_PWD}
DEPENDPATH *= $${LIB_WBFS_PWD}

win32 {
isEqual( QT_ARCH, "x86_64" ):OPENSSL_INSTALL_DIR = $(HOME)/.wine/drive_c/Development/OpenSSL
else:OPENSSL_INSTALL_DIR = D:/Developpement/OpenSSL
#OPENSSL_INSTALL_DIR = $(HOME)/Win32Libraries
OS=$$system( "uname -s" )

OPENSSL_INSTALL_DIR = D:/Developpement/OpenSSL
isEqual( OS, "Darwin" ):OPENSSL_INSTALL_DIR = $(HOME)/Win32Libraries
else:isEqual( OS, "Linux" ):OPENSSL_INSTALL_DIR = $(HOME)/.wine/drive_c/Development/OpenSSL

*-g++*:LIBS *= -L$${OPENSSL_INSTALL_DIR}/lib -L$${OPENSSL_INSTALL_DIR}/lib/MinGW
*-msvc*:LIBS *= -L$${OPENSSL_INSTALL_DIR}/lib -L$${OPENSSL_INSTALL_DIR}/lib/VC
INCLUDEPATH *= $${OPENSSL_INSTALL_DIR}/include
Expand Down
48 changes: 28 additions & 20 deletions packages/release-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ WIN_PACKAGE=$BASE_NAME-win32.zip
MAC_PACKAGE=$BASE_NAME.dmg
CUR_PATH=$PWD

if [ $OS = "Linux" ]; then
WINE="wine"
WINE_DRIVE="$HOME/.wine/drive_c"
WINE_PROGRAM_FILES="$WINE_DRIVE/Program Files"
fi

if [ $OS = "Darwin" ]; then
WINE="/Applications/Wine.app/Contents/Resources/bin/wine"
WINE_DRIVE="$HOME/.wine/drive_c"
WINE_PROGRAM_FILES="$WINE_DRIVE/Program Files"
fi

export OS
export VERSION
export VERSION_STR
Expand Down Expand Up @@ -74,10 +86,9 @@ crossBuild()
QT_WIN32_VERSION="4.6.1"
QT_PATH="/usr"
MKSPEC="$HOME/.qt/win32-x11-g++"
QT_WIN32_PATH="$HOME/Disk Wine/Development/Qt/$QT_WIN32_VERSION"
WINE="wine"
ISCC="$HOME/Disk Wine/Program Files/Inno Setup 5/ISCC.exe"
DLLS_PATH="$HOME/Disk Wine/Development/OpenSSL"
QT_WIN32_PATH="$WINE_DRIVE/Development/Qt/$QT_WIN32_VERSION"
ISCC="$WINE_PROGRAM_FILES/Inno Setup 5/ISCC.exe"
DLLS_PATH="$WINE_DRIVE/Development/OpenSSL"
fi

if [ $OS = "Darwin" ]; then
Expand All @@ -86,8 +97,7 @@ crossBuild()
QT_PATH="/usr/local/Trolltech/Qt-$QT_VERSION"
MKSPEC="$HOME/mkspecs/4.6.x/win32-osx-g++"
QT_WIN32_PATH="/usr/local/Trolltech/win32/$QT_WIN32_VERSION"
WINE="/Applications/Wine.app/Contents/Resources/bin/wine"
ISCC="$HOME/Wine Files/drive_c/Program Files/Inno_Setup_5_gpl/ISCC.exe"
ISCC="$WINE_PROGRAM_FILES/Inno_Setup_5_gpl/ISCC.exe"
DLLS_PATH="$HOME/Win32Libraries/bin"

fi
Expand Down Expand Up @@ -117,16 +127,6 @@ windowsZipPackage()
{
echo "Creating windows zip package"

if [ $OS = "Linux" ]; then
WINE="wine"
WINE_PROGRAM_FILES="$HOME/Disk Wine/Program Files"
fi

if [ $OS = "Darwin" ]; then
WINE="/Applications/Wine.app/Contents/Resources/bin/wine"
WINE_PROGRAM_FILES="$HOME/Wine Files/drive_c/Program Files"
fi

# uninstall previous package
find "$WINE_PROGRAM_FILES/QWBFS Manager" -name "unins*.exe" -print0 | xargs -0 -I {} $WINE {} /silent

Expand Down Expand Up @@ -161,8 +161,11 @@ macPackage()
"$QT_PATH/bin/qmake" -r
make -j4 release
"$QT_PATH/bin/macdeployqt" "$BUNDLE_APP_PATH" -dmg
mv "$BUNDLE_PATH/$BUNDLE_NAME.dmg" "$MAC_PACKAGE"
cd "$CUR_PATH"

if [ -f "./$FOLDER_NAME/$BUNDLE_PATH/$BUNDLE_NAME.dmg" ]; then
mv "./$FOLDER_NAME/$BUNDLE_PATH/$BUNDLE_NAME.dmg" "./$MAC_PACKAGE"
fi
}

# delete source folder
Expand Down Expand Up @@ -191,13 +194,18 @@ crossBuild
# create windows zip package
windowsZipPackage

# delete exported repository
deleteIfExists ./$FOLDER_NAME

if [ $OS = "Darwin" ]; then
macPackage
killall wine
killall WineBottler
killall X11.bin
fi

if [ $OS = "Linux" ]; then
echo "Linux"
fi

# delete exported repository
deleteIfExists ./$FOLDER_NAME

echo "********** Processing release finished **********"
6 changes: 3 additions & 3 deletions packages/windows.iss
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ Source: {#QT_PATH}\plugins\codecs\*.dll; DestDir: {app}\qt\plugins\codecs; Flags
Source: {#QT_PATH}\plugins\graphicssystems\*.dll; DestDir: {app}\qt\plugins\graphicssystems; Flags: promptifolder; Excludes: *d4.dll
Source: {#QT_PATH}\plugins\imageformats\*.dll; DestDir: {app}\qt\plugins\imageformats; Flags: promptifolder; Excludes: *d4.dll
Source: {#QT_PATH}\translations\qt*.qm; DestDir: {app}\qt\translations; Flags: promptifolder recursesubdirs; Excludes: qt_help*.qm,qtconfig*.qm
; MinGW related files
Source: {#DLLS_PATH}\mingwm10.dll; DestDir: {app}; Flags: promptifolder
Source: {#DLLS_PATH}\libgcc_s_dw2-1.dll; DestDir: {app}; Flags: promptifolder
; Dependencies related files
Source: {#QT_PATH}\bin\mingwm10.dll; DestDir: {app}; Flags: promptifolder
Source: {#QT_PATH}\bin\libgcc_s_dw2-1.dll; DestDir: {app}; Flags: promptifolder skipifsourcedoesntexist
Source: {#DLLS_PATH}\libeay32.dll; DestDir: {app}; Flags: promptifolder
Source: {#DLLS_PATH}\libssl32.dll; DestDir: {app}; Flags: promptifolder

Expand Down

0 comments on commit 8844c34

Please sign in to comment.