mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-11 15:39:36 -05:00
Deep channel and file indexing support
This commit is contained in:
parent
7dda728ef0
commit
3dd5945186
@ -18,7 +18,7 @@ if errorlevel 2 exit /B 2
|
|||||||
if errorlevel 1 goto error_env
|
if errorlevel 1 goto error_env
|
||||||
|
|
||||||
:: Install needed things
|
:: Install needed things
|
||||||
%EnvMSYS2Cmd% "pacman --noconfirm --needed -S make git mingw-w64-%RsMSYS2Architecture%-toolchain mingw-w64-%RsMSYS2Architecture%-qt5 mingw-w64-%RsMSYS2Architecture%-miniupnpc mingw-w64-%RsMSYS2Architecture%-sqlcipher mingw-w64-%RsMSYS2Architecture%-xapian-core mingw-w64-%RsMSYS2Architecture%-cmake"
|
%EnvMSYS2Cmd% "pacman --noconfirm --needed -S make git mingw-w64-%RsMSYS2Architecture%-toolchain mingw-w64-%RsMSYS2Architecture%-qt5 mingw-w64-%RsMSYS2Architecture%-miniupnpc mingw-w64-%RsMSYS2Architecture%-sqlcipher mingw-w64-%RsMSYS2Architecture%-cmake"
|
||||||
|
|
||||||
:: Webui
|
:: Webui
|
||||||
if "%ParamWebui%"=="1" %EnvMSYS2Cmd% "pacman --noconfirm --needed -S mingw-w64-%RsMSYS2Architecture%-doxygen mingw-w64-%RsMSYS2Architecture%-rapidjson"
|
if "%ParamWebui%"=="1" %EnvMSYS2Cmd% "pacman --noconfirm --needed -S mingw-w64-%RsMSYS2Architecture%-doxygen mingw-w64-%RsMSYS2Architecture%-rapidjson"
|
||||||
@ -29,6 +29,9 @@ if "%ParamPlugins%"=="1" %EnvMSYS2Cmd% "pacman --noconfirm --needed -S mingw-w64
|
|||||||
:: Clang
|
:: Clang
|
||||||
if "%ParamClang%"=="1" %EnvMSYS2Cmd% "pacman --noconfirm --needed -S mingw-w64-%RsMSYS2Architecture%-clang"
|
if "%ParamClang%"=="1" %EnvMSYS2Cmd% "pacman --noconfirm --needed -S mingw-w64-%RsMSYS2Architecture%-clang"
|
||||||
|
|
||||||
|
:: Indexing
|
||||||
|
if "%ParamIndexing%"=="1" %EnvMSYS2Cmd% "pacman --noconfirm --needed -S mingw-w64-%RsMSYS2Architecture%-xapian-core mingw-w64-%RsMSYS2Architecture%-libvorbis mingw-w64-%RsMSYS2Architecture%-flac mingw-w64-%RsMSYS2Architecture%-taglib"
|
||||||
|
|
||||||
:: Initialize environment
|
:: Initialize environment
|
||||||
call "%~dp0env.bat" %*
|
call "%~dp0env.bat" %*
|
||||||
if errorlevel 2 exit /B 2
|
if errorlevel 2 exit /B 2
|
||||||
|
@ -8,6 +8,7 @@ set ParamPlugins=0
|
|||||||
set ParamTor=0
|
set ParamTor=0
|
||||||
set ParamWebui=0
|
set ParamWebui=0
|
||||||
set ParamClang=0
|
set ParamClang=0
|
||||||
|
set ParamIndexing=0
|
||||||
set CoreCount=%NUMBER_OF_PROCESSORS%
|
set CoreCount=%NUMBER_OF_PROCESSORS%
|
||||||
set RS_QMAKE_CONFIG=
|
set RS_QMAKE_CONFIG=
|
||||||
|
|
||||||
@ -34,6 +35,8 @@ if "%~1" NEQ "" (
|
|||||||
set CoreCount=1
|
set CoreCount=1
|
||||||
) else if "%%~a"=="clang" (
|
) else if "%%~a"=="clang" (
|
||||||
set ParamClang=1
|
set ParamClang=1
|
||||||
|
) else if "%%~a"=="indexing" (
|
||||||
|
set ParamIndexing=1
|
||||||
) else if "%%~a"=="CONFIG+" (
|
) else if "%%~a"=="CONFIG+" (
|
||||||
set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% %1
|
set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% %1
|
||||||
) else (
|
) else (
|
||||||
@ -92,11 +95,15 @@ if "%ParamWebui%"=="1" (
|
|||||||
set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% "CONFIG+=rs_jsonapi" "CONFIG+=rs_webui"
|
set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% "CONFIG+=rs_jsonapi" "CONFIG+=rs_webui"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if "%ParamIndexing%"=="1" (
|
||||||
|
set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% "CONFIG+=rs_deep_channels_index" "CONFIG+=rs_deep_files_index" "CONFIG+=rs_deep_files_index_ogg" "CONFIG+=rs_deep_files_index_flac" "CONFIG+=rs_deep_files_index_taglib"
|
||||||
|
)
|
||||||
|
|
||||||
exit /B 0
|
exit /B 0
|
||||||
|
|
||||||
:usage
|
:usage
|
||||||
echo.
|
echo.
|
||||||
echo Usage: 32^|64 release^|debug [autologin plugins webui singlethread clang]
|
echo Usage: 32^|64 release^|debug [autologin plugins webui singlethread clang indexing]
|
||||||
echo.
|
echo.
|
||||||
echo Mandatory parameter
|
echo Mandatory parameter
|
||||||
echo 32^|64 32-bit or 64-bit Version
|
echo 32^|64 32-bit or 64-bit Version
|
||||||
@ -108,6 +115,7 @@ echo plugins Build plugins
|
|||||||
echo webui Enable JsonAPI and pack webui files
|
echo webui Enable JsonAPI and pack webui files
|
||||||
echo singlethread Use only 1 thread for building
|
echo singlethread Use only 1 thread for building
|
||||||
echo clang Use clang compiler instead of GCC
|
echo clang Use clang compiler instead of GCC
|
||||||
|
echo indexing Build with deep channel and file indexing support
|
||||||
echo.
|
echo.
|
||||||
echo Parameter for pack
|
echo Parameter for pack
|
||||||
echo tor Pack tor version
|
echo tor Pack tor version
|
||||||
|
@ -141,12 +141,12 @@ CONFIG *= no_rs_jsonapi
|
|||||||
rs_jsonapi:CONFIG -= no_rs_jsonapi
|
rs_jsonapi:CONFIG -= no_rs_jsonapi
|
||||||
|
|
||||||
# To enable channel indexing append the following assignation to qmake command
|
# To enable channel indexing append the following assignation to qmake command
|
||||||
# line "CONFIG+=rs_deep_channel_index"
|
# line "CONFIG+=rs_deep_channels_index"
|
||||||
CONFIG *= no_rs_deep_channel_index
|
CONFIG *= no_rs_deep_channels_index
|
||||||
rs_deep_channel_index:CONFIG -= no_rs_deep_channel_index
|
rs_deep_channels_index:CONFIG -= no_rs_deep_channels_index
|
||||||
|
|
||||||
# To enable deep files indexing append the following assignation to qmake
|
# To enable deep files indexing append the following assignation to qmake
|
||||||
# command line "CONFIG+=rs_files_index"
|
# command line "CONFIG+=rs_deep_files_index"
|
||||||
CONFIG *= no_rs_deep_files_index
|
CONFIG *= no_rs_deep_files_index
|
||||||
rs_deep_files_index:CONFIG -= no_rs_deep_files_index
|
rs_deep_files_index:CONFIG -= no_rs_deep_files_index
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user