mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 23:19:29 -05:00
Windows build environment:
- Updated external libraries - Added compile of plugins to build.bat - Added copy of Qt style DLL to pack.bat and Windows Installer - Removed "CONFIG=console" for release build
This commit is contained in:
parent
593e57b14c
commit
c92b860174
@ -1,17 +1,17 @@
|
|||||||
ZLIB_VERSION=1.2.3
|
ZLIB_VERSION=1.2.3
|
||||||
BZIP2_VERSION=1.0.6
|
BZIP2_VERSION=1.0.6
|
||||||
MINIUPNPC_VERSION=2.0
|
MINIUPNPC_VERSION=2.0
|
||||||
OPENSSL_VERSION=1.0.2k
|
OPENSSL_VERSION=1.0.2n
|
||||||
SPEEX_VERSION=1.2.0
|
SPEEX_VERSION=1.2.0
|
||||||
SPEEXDSP_VERSION=1.2rc3
|
SPEEXDSP_VERSION=1.2rc3
|
||||||
OPENCV_VERSION=3.2.0
|
OPENCV_VERSION=3.4.1
|
||||||
LIBXML2_VERSION=2.9.4
|
LIBXML2_VERSION=2.9.7
|
||||||
LIBXSLT_VERSION=1.1.28
|
LIBXSLT_VERSION=1.1.32
|
||||||
CURL_VERSION=7.53.1
|
CURL_VERSION=7.58.0
|
||||||
TCL_VERSION=8.6.2
|
TCL_VERSION=8.6.2
|
||||||
SQLCIPHER_VERSION=2.2.1
|
SQLCIPHER_VERSION=2.2.1
|
||||||
LIBMICROHTTPD_VERSION=0.9.52
|
LIBMICROHTTPD_VERSION=0.9.59
|
||||||
FFMPEG_VERSION=3.2.4
|
FFMPEG_VERSION=3.4
|
||||||
|
|
||||||
MAKEFILE_PATH=$(dir $(MAKEFILE_LIST))
|
MAKEFILE_PATH=$(dir $(MAKEFILE_LIST))
|
||||||
LIBS_PATH?=$(MAKEFILE_PATH)../../../../libs
|
LIBS_PATH?=$(MAKEFILE_PATH)../../../../libs
|
||||||
@ -137,7 +137,7 @@ libs/openssl-$(OPENSSL_VERSION): $(DOWNLOAD_PATH)/openssl-$(OPENSSL_VERSION).tar
|
|||||||
speex: libs/speex-$(SPEEX_VERSION)
|
speex: libs/speex-$(SPEEX_VERSION)
|
||||||
|
|
||||||
$(DOWNLOAD_PATH)/speex-$(SPEEX_VERSION).tar.gz:
|
$(DOWNLOAD_PATH)/speex-$(SPEEX_VERSION).tar.gz:
|
||||||
wget http://downloads.xiph.org/releases/speex/speex-$(SPEEX_VERSION).tar.gz -O $(DOWNLOAD_PATH)/speex-$(SPEEX_VERSION).tar.gz
|
wget --no-check-certificate http://downloads.xiph.org/releases/speex/speex-$(SPEEX_VERSION).tar.gz -O $(DOWNLOAD_PATH)/speex-$(SPEEX_VERSION).tar.gz
|
||||||
|
|
||||||
libs/speex-$(SPEEX_VERSION): $(DOWNLOAD_PATH)/speex-$(SPEEX_VERSION).tar.gz
|
libs/speex-$(SPEEX_VERSION): $(DOWNLOAD_PATH)/speex-$(SPEEX_VERSION).tar.gz
|
||||||
# prepare
|
# prepare
|
||||||
@ -158,7 +158,7 @@ libs/speex-$(SPEEX_VERSION): $(DOWNLOAD_PATH)/speex-$(SPEEX_VERSION).tar.gz
|
|||||||
speexdsp: libs/speexdsp-$(SPEEXDSP_VERSION)
|
speexdsp: libs/speexdsp-$(SPEEXDSP_VERSION)
|
||||||
|
|
||||||
$(DOWNLOAD_PATH)/speexdsp-$(SPEEXDSP_VERSION).tar.gz:
|
$(DOWNLOAD_PATH)/speexdsp-$(SPEEXDSP_VERSION).tar.gz:
|
||||||
wget http://downloads.xiph.org/releases/speex/speexdsp-$(SPEEXDSP_VERSION).tar.gz -O $(DOWNLOAD_PATH)/speexdsp-$(SPEEXDSP_VERSION).tar.gz
|
wget --no-check-certificate http://downloads.xiph.org/releases/speex/speexdsp-$(SPEEXDSP_VERSION).tar.gz -O $(DOWNLOAD_PATH)/speexdsp-$(SPEEXDSP_VERSION).tar.gz
|
||||||
|
|
||||||
libs/speexdsp-$(SPEEXDSP_VERSION): $(DOWNLOAD_PATH)/speexdsp-$(SPEEXDSP_VERSION).tar.gz
|
libs/speexdsp-$(SPEEXDSP_VERSION): $(DOWNLOAD_PATH)/speexdsp-$(SPEEXDSP_VERSION).tar.gz
|
||||||
# prepare
|
# prepare
|
||||||
@ -187,7 +187,7 @@ libs/opencv-$(OPENCV_VERSION): $(DOWNLOAD_PATH)/opencv-$(OPENCV_VERSION).tar.gz
|
|||||||
# build
|
# build
|
||||||
mkdir -p opencv-$(OPENCV_VERSION)/build
|
mkdir -p opencv-$(OPENCV_VERSION)/build
|
||||||
#cd opencv-$(OPENCV_VERSION)/build && cmake .. -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="`pwd`/../../libs"
|
#cd opencv-$(OPENCV_VERSION)/build && cmake .. -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="`pwd`/../../libs"
|
||||||
cd opencv-$(OPENCV_VERSION)/build && cmake .. -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="`pwd`/install"
|
cd opencv-$(OPENCV_VERSION)/build && cmake .. -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF -DENABLE_CXX11=ON -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -DSTRSAFE_NO_DEPRECATE" -DCMAKE_INSTALL_PREFIX="`pwd`/install"
|
||||||
cd opencv-$(OPENCV_VERSION)/build && make install
|
cd opencv-$(OPENCV_VERSION)/build && make install
|
||||||
# copy files
|
# copy files
|
||||||
mkdir -p libs/opencv-$(OPENCV_VERSION).tmp/include
|
mkdir -p libs/opencv-$(OPENCV_VERSION).tmp/include
|
||||||
@ -228,7 +228,6 @@ libs/libxslt-$(LIBXSLT_VERSION): $(DOWNLOAD_PATH)/libxml2-$(LIBXML2_VERSION).tar
|
|||||||
rm -r -f libs/libxslt-*
|
rm -r -f libs/libxslt-*
|
||||||
tar xvf $(DOWNLOAD_PATH)/libxml2-$(LIBXML2_VERSION).tar.gz
|
tar xvf $(DOWNLOAD_PATH)/libxml2-$(LIBXML2_VERSION).tar.gz
|
||||||
tar xvf $(DOWNLOAD_PATH)/libxslt-$(LIBXSLT_VERSION).tar.gz
|
tar xvf $(DOWNLOAD_PATH)/libxslt-$(LIBXSLT_VERSION).tar.gz
|
||||||
tar xvf $(MAKEFILE_PATH)libxslt-$(LIBXSLT_VERSION)-fix.tar.gz
|
|
||||||
# build
|
# build
|
||||||
cd libxslt-$(LIBXSLT_VERSION) && ./configure --with-libxml-src=../libxml2-$(LIBXML2_VERSION) -enable-shared=no CFLAGS=-DLIBXML_STATIC
|
cd libxslt-$(LIBXSLT_VERSION) && ./configure --with-libxml-src=../libxml2-$(LIBXML2_VERSION) -enable-shared=no CFLAGS=-DLIBXML_STATIC
|
||||||
cd libxslt-$(LIBXSLT_VERSION) && make
|
cd libxslt-$(LIBXSLT_VERSION) && make
|
||||||
@ -245,7 +244,7 @@ libs/libxslt-$(LIBXSLT_VERSION): $(DOWNLOAD_PATH)/libxml2-$(LIBXML2_VERSION).tar
|
|||||||
curl: libs/curl-$(CURL_VERSION)
|
curl: libs/curl-$(CURL_VERSION)
|
||||||
|
|
||||||
$(DOWNLOAD_PATH)/curl-$(CURL_VERSION).tar.gz:
|
$(DOWNLOAD_PATH)/curl-$(CURL_VERSION).tar.gz:
|
||||||
wget --no-check-certificate http://curl.haxx.se/$(DOWNLOAD_PATH)/curl-$(CURL_VERSION).tar.gz -O $(DOWNLOAD_PATH)/curl-$(CURL_VERSION).tar.gz
|
wget --no-check-certificate http://curl.haxx.se/download/curl-$(CURL_VERSION).tar.gz -O $(DOWNLOAD_PATH)/curl-$(CURL_VERSION).tar.gz
|
||||||
|
|
||||||
libs/curl-$(CURL_VERSION): $(DOWNLOAD_PATH)/curl-$(CURL_VERSION).tar.gz
|
libs/curl-$(CURL_VERSION): $(DOWNLOAD_PATH)/curl-$(CURL_VERSION).tar.gz
|
||||||
# prepare
|
# prepare
|
||||||
|
Binary file not shown.
@ -52,7 +52,7 @@ echo.
|
|||||||
|
|
||||||
title Build - %SourceName%-%RsBuildConfig% [qmake]
|
title Build - %SourceName%-%RsBuildConfig% [qmake]
|
||||||
|
|
||||||
qmake "%SourcePath%\RetroShare.pro" -r "CONFIG+=%RsBuildConfig% version_detail_bash_script rs_autologin"
|
qmake "%SourcePath%\RetroShare.pro" -r "CONFIG+=%RsBuildConfig% version_detail_bash_script rs_autologin retroshare_plugins"
|
||||||
if errorlevel 1 goto error
|
if errorlevel 1 goto error
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
|
@ -128,6 +128,12 @@ if "%QtMainVersion%"=="5" (
|
|||||||
copy "%QtPath%\..\plugins\audio\qtaudio_windows.dll" "%RsDeployPath%\audio" %Quite%
|
copy "%QtPath%\..\plugins\audio\qtaudio_windows.dll" "%RsDeployPath%\audio" %Quite%
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if exist "%QtPath%\..\plugins\styles\qwindowsvistastyle.dll" (
|
||||||
|
echo Copy styles
|
||||||
|
mkdir "%RsDeployPath%\styles" %Quite%
|
||||||
|
copy "%QtPath%\..\plugins\styles\qwindowsvistastyle.dll" "%RsDeployPath%\styles" %Quite%
|
||||||
|
)
|
||||||
|
|
||||||
copy "%QtPath%\..\plugins\imageformats\*.dll" "%RsDeployPath%\imageformats" %Quite%
|
copy "%QtPath%\..\plugins\imageformats\*.dll" "%RsDeployPath%\imageformats" %Quite%
|
||||||
del /Q "%RsDeployPath%\imageformats\*d?.dll" %Quite%
|
del /Q "%RsDeployPath%\imageformats\*d?.dll" %Quite%
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ set SevenZipUrl=http://7-zip.org/a/7z1602.msi
|
|||||||
set SevenZipInstall=7z1602.msi
|
set SevenZipInstall=7z1602.msi
|
||||||
::set CurlUrl=https://bintray.com/artifact/download/vszakats/generic/curl-7.50.1-win32-mingw.7z
|
::set CurlUrl=https://bintray.com/artifact/download/vszakats/generic/curl-7.50.1-win32-mingw.7z
|
||||||
::set CurlInstall=curl-7.50.1-win32-mingw.7z
|
::set CurlInstall=curl-7.50.1-win32-mingw.7z
|
||||||
set WgetUrl=https://eternallybored.org/misc/wget/current/wget.exe
|
set WgetUrl=https://eternallybored.org/misc/wget/1.19.4/32/wget.exe
|
||||||
set WgetInstall=wget.exe
|
set WgetInstall=wget.exe
|
||||||
set JomUrl=http://download.qt.io/official_releases/jom/jom.zip
|
set JomUrl=http://download.qt.io/official_releases/jom/jom.zip
|
||||||
set JomInstall=jom.zip
|
set JomInstall=jom.zip
|
||||||
@ -118,7 +118,7 @@ if not exist "%EnvToolsPath%\cut.exe" (
|
|||||||
%cecho% info "Download Unix Tools installation"
|
%cecho% info "Download Unix Tools installation"
|
||||||
|
|
||||||
if not exist "%EnvDownloadPath%\%UnixToolsInstall%" call "%ToolsPath%\winhttpjs.bat" %UnixToolsUrl% -saveTo "%EnvDownloadPath%\%UnixToolsInstall%"
|
if not exist "%EnvDownloadPath%\%UnixToolsInstall%" call "%ToolsPath%\winhttpjs.bat" %UnixToolsUrl% -saveTo "%EnvDownloadPath%\%UnixToolsInstall%"
|
||||||
if not exist "%EnvDownloadPath%\%UnixToolsInstall%" %cecho% error ""Cannot download Unix Tools installation" & goto error
|
if not exist "%EnvDownloadPath%\%UnixToolsInstall%" %cecho% error "Cannot download Unix Tools installation" & goto error
|
||||||
|
|
||||||
%cecho% info "Unpack Unix Tools"
|
%cecho% info "Unpack Unix Tools"
|
||||||
"%EnvSevenZipExe%" x -o"%EnvTempPath%" "%EnvDownloadPath%\%UnixToolsInstall%"
|
"%EnvSevenZipExe%" x -o"%EnvTempPath%" "%EnvDownloadPath%\%UnixToolsInstall%"
|
||||||
@ -134,7 +134,7 @@ if not exist "%EnvToolsPath%\sed.exe" (
|
|||||||
%cecho% info "Download Unix Tools installation"
|
%cecho% info "Download Unix Tools installation"
|
||||||
|
|
||||||
if not exist "%EnvDownloadPath%\%UnixToolsInstall%" call "%ToolsPath%\winhttpjs.bat" %UnixToolsUrl% -saveTo "%EnvDownloadPath%\%UnixToolsInstall%"
|
if not exist "%EnvDownloadPath%\%UnixToolsInstall%" call "%ToolsPath%\winhttpjs.bat" %UnixToolsUrl% -saveTo "%EnvDownloadPath%\%UnixToolsInstall%"
|
||||||
if not exist "%EnvDownloadPath%\%UnixToolsInstall%" %cecho% error ""Cannot download Unix Tools installation" & goto error
|
if not exist "%EnvDownloadPath%\%UnixToolsInstall%" %cecho% error "Cannot download Unix Tools installation" & goto error
|
||||||
|
|
||||||
%cecho% info "Unpack Unix Tools"
|
%cecho% info "Unpack Unix Tools"
|
||||||
"%EnvSevenZipExe%" x -o"%EnvTempPath%" "%EnvDownloadPath%\%UnixToolsInstall%"
|
"%EnvSevenZipExe%" x -o"%EnvTempPath%" "%EnvDownloadPath%\%UnixToolsInstall%"
|
||||||
|
@ -195,11 +195,15 @@ Section $(Section_Main) Section_Main
|
|||||||
|
|
||||||
; Qt audio
|
; Qt audio
|
||||||
SetOutPath "$INSTDIR\audio"
|
SetOutPath "$INSTDIR\audio"
|
||||||
File /r "${QTDIR}\plugins\audio\qtaudio_windows.dll"
|
File "${QTDIR}\plugins\audio\qtaudio_windows.dll"
|
||||||
|
|
||||||
; Qt platforms
|
; Qt platforms
|
||||||
SetOutPath "$INSTDIR\platforms"
|
SetOutPath "$INSTDIR\platforms"
|
||||||
File /r "${QTDIR}\plugins\platforms\qwindows.dll"
|
File "${QTDIR}\plugins\platforms\qwindows.dll"
|
||||||
|
|
||||||
|
; Qt styles
|
||||||
|
SetOutPath "$INSTDIR\styles"
|
||||||
|
File /NONFATAL "${QTDIR}\plugins\styles\qwindowsvistastyle.dll"
|
||||||
|
|
||||||
; MinGW binaries
|
; MinGW binaries
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
|
@ -35,7 +35,7 @@ win32 {
|
|||||||
DEPENDPATH += . $$INC_DIR
|
DEPENDPATH += . $$INC_DIR
|
||||||
INCLUDEPATH += . $$INC_DIR
|
INCLUDEPATH += . $$INC_DIR
|
||||||
|
|
||||||
OPENCV_VERSION = "320"
|
OPENCV_VERSION = "341"
|
||||||
USE_PRECOMPILED_LIBS =
|
USE_PRECOMPILED_LIBS =
|
||||||
for(lib, LIB_DIR) {
|
for(lib, LIB_DIR) {
|
||||||
#message(Scanning $$lib)
|
#message(Scanning $$lib)
|
||||||
@ -76,7 +76,7 @@ win32 {
|
|||||||
message(Use system opencv libraries.)
|
message(Use system opencv libraries.)
|
||||||
LIBS += -lopencv_core -lopencv_highgui -lopencv_imgproc
|
LIBS += -lopencv_core -lopencv_highgui -lopencv_imgproc
|
||||||
}
|
}
|
||||||
LIBS += -lz -lole32 -loleaut32 -luuid -lvfw32 -llibjpeg -llibtiff -llibpng -llibjasper -lIlmImf
|
LIBS += -lzlib -lole32 -loleaut32 -luuid -lvfw32 -llibjpeg -llibtiff -llibpng -llibjasper -lIlmImf
|
||||||
LIBS += -lavifil32 -lavicap32 -lavcodec -lavutil -lswresample
|
LIBS += -lavifil32 -lavicap32 -lavcodec -lavutil -lswresample
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,6 +169,8 @@ win32 {
|
|||||||
CONFIG(debug, debug|release) {
|
CONFIG(debug, debug|release) {
|
||||||
# show console output
|
# show console output
|
||||||
CONFIG += console
|
CONFIG += console
|
||||||
|
} else {
|
||||||
|
CONFIG -= console
|
||||||
}
|
}
|
||||||
|
|
||||||
# Switch on extra warnings
|
# Switch on extra warnings
|
||||||
|
Loading…
Reference in New Issue
Block a user