Merge branch 'atys' into yubo

merge-requests/7/merge
Nuno 3 years ago
commit 4776891769

@ -111,9 +111,9 @@ SET(RYZOM_WEBIG_TRUSTED_DOMAIN "open.ryzom.dev" CACHE STRING "Ryzom Client
# urls when compiling ryzom live client
IF(WITH_RYZOM_LIVE)
MESSAGE("Using RYZOM_LIVE urls")
SET(RYZOM_CLIENT_CREATE_ACCOUNT_URL "https://account.ryzom.com/signup/from_client.php")
SET(RYZOM_CLIENT_EDIT_ACCOUNT_URL "https://account.ryzom.com/payment_profile/index.php")
SET(RYZOM_CLIENT_FORGET_PASSWORD_URL "https://account.ryzom.com/payment_profile/lost_secure_password.php")
SET(RYZOM_CLIENT_CREATE_ACCOUNT_URL "https://me.ryzom.com")
SET(RYZOM_CLIENT_EDIT_ACCOUNT_URL "https://me.ryzom.com")
SET(RYZOM_CLIENT_FORGET_PASSWORD_URL "https://me.ryzom.com/?forget_password=1")
SET(RYZOM_CLIENT_PATCH_URL "http://dl.ryzom.com/patch_live")
SET(RYZOM_CLIENT_APP_NAME "ryzom_live")

@ -903,16 +903,76 @@ void CClientConfig::setValues()
READ_STRING_FV(FSHost)
READ_BOOL_DEV(DisplayAccountButtons)
READ_STRING_DEV(CreateAccountURL)
READ_STRING_DEV(EditAccountURL)
READ_STRING_DEV(ForgetPwdURL)
READ_STRING_FV(CreateAccountURL)
READ_STRING_FV(EditAccountURL)
READ_STRING_FV(ForgetPwdURL)
READ_STRING_DEV(BetaAccountURL)
READ_STRING_DEV(FreeTrialURL)
// defined in client_default.cfg
READ_STRING_FV(ConditionsTermsURL)
READ_STRING_FV(NamingPolicyURL)
READ_STRING_FV(LoginSupportURL)
// read NamingPolicyURL from client_default.cfg
//READ_STRING_FV(NamingPolicyURL)
std::string languageCo = "wk";
CConfigFile::CVar *languageCodeVarPtr = ClientCfg.ConfigFile.getVarPtr("LanguageCode");
if (languageCodeVarPtr)
{
languageCo = languageCodeVarPtr->asString();
}
CConfigFile::CVar *policyurl = ClientCfg.ConfigFile.getVarPtr("NamingPolicyURL");
if (policyurl)
{
for (uint i = 0; i < policyurl->size(); ++i)
{
std::string entry = policyurl->asString(i);
if (entry.size() >= languageCo.size())
{
if (nlstricmp(entry.substr(0, languageCo.size()), languageCo) == 0)
{
std::string::size_type pos = entry.find("=");
if (pos != std::string::npos)
{
ClientCfg.NamingPolicyURL = entry.substr(pos + 1);
}
}
}
}
}
// read NamingPolicyURL from client_default.cfg
//READ_STRING_FV(ConditionsTermsURL)
CConfigFile::CVar *coturl = ClientCfg.ConfigFile.getVarPtr("ConditionsTermsURL");
if (coturl)
{
for (uint i = 0; i < coturl->size(); ++i)
{
std::string entry = coturl->asString(i);
if (entry.size() >= languageCo.size())
{
if (nlstricmp(entry.substr(0, languageCo.size()), languageCo) == 0)
{
std::string::size_type pos = entry.find("=");
if (pos != std::string::npos)
{
ClientCfg.ConditionsTermsURL = entry.substr(pos + 1);
}
}
}
}
}
#ifndef RZ_NO_CLIENT
// if cookie is not empty, it means that the client was launch

@ -1932,8 +1932,11 @@ class CAHOpenURL : public IActionHandler
#else
// TODO: for Linux and Mac OS
#endif
if (sParams == "cfg_EditAccountURL")
if (sParams == "cfg_CreateAccountURL")
{
url = ClientCfg.CreateAccountURL;
}
else if (sParams == "cfg_EditAccountURL")
{
url = ClientCfg.EditAccountURL;
}
@ -1971,32 +1974,35 @@ class CAHOpenURL : public IActionHandler
nlwarning("no URL found");
return;
}
if(sParams != "cfg_ConditionsTermsURL" && sParams != "cfg_NamingPolicyURL")
{
// modify existing languages
// modify existing languages
// old site
string::size_type pos_lang = url.find("/en/");
// old site
string::size_type pos_lang = url.find("/en/");
// or new forums
if (pos_lang == string::npos)
pos_lang = url.find("=en#");
// or new forums
if (pos_lang == string::npos)
pos_lang = url.find("=en#");
if (pos_lang != string::npos)
{
url.replace(pos_lang + 1, 2, ClientCfg.getHtmlLanguageCode());
}
else
{
// append language
if (url.find('?') != string::npos)
url += "&";
if (pos_lang != string::npos)
{
url.replace(pos_lang + 1, 2, ClientCfg.getHtmlLanguageCode());
}
else
url += "?";
{
// append language
if (url.find('?') != string::npos)
url += "&";
else
url += "?";
url += "language=" + ClientCfg.LanguageCode;
url += "language=" + ClientCfg.LanguageCode;
if (!LoginCustomParameters.empty())
url += LoginCustomParameters;
if (!LoginCustomParameters.empty())
url += LoginCustomParameters;
}
}
openURL(url);

@ -0,0 +1 @@
set RC_ROOT=..

@ -0,0 +1,7 @@
if /I "%RC_PYTHON2%"=="" call ..\path_config.bat
if /I "%CLIENT_PATCH_VERSION%"=="" goto :update
goto :done
:update
%RC_PYTHON2%\python %RC_ROOT%\build\patch_version.py
call patch_version_set.bat
:done

@ -0,0 +1,22 @@
import os
rcRoot = os.environ['RC_ROOT']
newVersion = 1
vstr = str(newVersion).zfill(5)
vpath = rcRoot + "\\pipeline\\client_patch\\patch\\" + vstr
while os.path.exists(vpath):
newVersion = newVersion + 1
vstr = str(newVersion).zfill(5)
vpath = rcRoot + "\\pipeline\\client_patch\\patch\\" + vstr
clientPatchVersion = newVersion
newVersion = 1
vstr = str(newVersion).zfill(6)
vpath = rcRoot + "\\pipeline\\bridge_server\\" + vstr
while os.path.exists(vpath):
newVersion = newVersion + 1
vstr = str(newVersion).zfill(6)
vpath = rcRoot + "\\pipeline\\bridge_server\\" + vstr
serverPatchVersion = newVersion
bf = open(rcRoot + "\\build\\patch_version_set.bat", "w")
bf.write("set CLIENT_PATCH_VERSION=" + str(clientPatchVersion) + "\n")
bf.write("set SERVER_PATCH_VERSION=" + str(serverPatchVersion) + "\n")
bf.close()

@ -0,0 +1,2 @@
set CLIENT_PATCH_VERSION=1
set SERVER_PATCH_VERSION=1

@ -0,0 +1,52 @@
if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat" goto :no_build
call ..\path_config.bat
C:
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
cd /d %RC_ROOT%\build
call patch_version.bat
if %errorlevel% neq 0 pause
cd 3dsmax
rem goto :skipmax
if not exist .\2017_x64\CMakeCache.txt goto :no_2017
cd 2017_x64
cmake -DNL_VERSION_PATCH=%CLIENT_PATCH_VERSION% .
if %errorlevel% neq 0 pause
msbuild RyzomCore.sln /m:2 /p:Configuration=Release %MSBUILDEXTRA%
if %errorlevel% neq 0 pause
cd ..
:no_2017
if not exist .\2018_x64\CMakeCache.txt goto :no_2018
cd 2018_x64
cmake -DNL_VERSION_PATCH=%CLIENT_PATCH_VERSION% .
if %errorlevel% neq 0 pause
msbuild RyzomCore.sln /m:2 /p:Configuration=Release %MSBUILDEXTRA%
if %errorlevel% neq 0 pause
cd ..
:no_2018
if not exist .\2019_x64\CMakeCache.txt goto :no_2019
cd 2019_x64
cmake -DNL_VERSION_PATCH=%CLIENT_PATCH_VERSION% .
if %errorlevel% neq 0 pause
msbuild RyzomCore.sln /m:2 /p:Configuration=Release %MSBUILDEXTRA%
if %errorlevel% neq 0 pause
cd ..
:no_2019
if not exist .\2020_x64\CMakeCache.txt goto :no_2020
cd 2020_x64
cmake -DNL_VERSION_PATCH=%CLIENT_PATCH_VERSION% .
if %errorlevel% neq 0 pause
msbuild RyzomCore.sln /m:2 /p:Configuration=Release %MSBUILDEXTRA%
if %errorlevel% neq 0 pause
cd ..
:no_2020
if not exist .\2022_x64\CMakeCache.txt goto :no_2022
cd 2022_x64
cmake -DNL_VERSION_PATCH=%CLIENT_PATCH_VERSION% .
if %errorlevel% neq 0 pause
rem FIXME msbuild RyzomCore.sln /m:2 /p:Configuration=Release %MSBUILDEXTRA%
if %errorlevel% neq 0 pause
cd ..
:no_2022
rem :skipmax
cd ..
:no_build

@ -0,0 +1,37 @@
if not exist "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" goto :no_build
call ..\path_config.bat
C:
cd C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\
call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
cd /d %RC_ROOT%\build
call patch_version.bat
if %errorlevel% neq 0 pause
cd 3dsmax
if not exist .\9_x86\CMakeCache.txt goto :no_9
cd 9_x86
cmake -DNL_VERSION_PATCH=%CLIENT_PATCH_VERSION% .
if %errorlevel% neq 0 pause
msbuild RyzomCore.sln /m:2 /p:Configuration=Release %MSBUILDEXTRA%
if %errorlevel% neq 0 pause
cd ..
:no_9
if not exist .\2010_x86\CMakeCache.txt goto :no_2010
cd 2010_x86
cmake -DNL_VERSION_PATCH=%CLIENT_PATCH_VERSION% .
if %errorlevel% neq 0 pause
msbuild RyzomCore.sln /m:2 /p:Configuration=Release %MSBUILDEXTRA%
if %errorlevel% neq 0 pause
cd ..
:no_2010
rem goto :skipmax
if not exist .\2012_x86\CMakeCache.txt goto :no_2012
cd 2012_x86
cmake -DNL_VERSION_PATCH=%CLIENT_PATCH_VERSION% .
if %errorlevel% neq 0 pause
msbuild RyzomCore.sln /m:2 /p:Configuration=Release %MSBUILDEXTRA%
if %errorlevel% neq 0 pause
cd ..
:no_2012
rem :skipmax
cd ..
:no_build

@ -0,0 +1,16 @@
if not exist .\dev_x64\CMakeCache.txt goto :no_build
call ..\path_config.bat
C:
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
cd /d %RC_ROOT%\build
call patch_version.bat
if %errorlevel% neq 0 pause
cd dev_x64
cmake -DNL_VERSION_PATCH=%CLIENT_PATCH_VERSION% .
if %errorlevel% neq 0 pause
msbuild RyzomCore.sln /m:2 /p:Configuration=Debug %MSBUILDEXTRA%
if %errorlevel% neq 0 pause
msbuild RyzomCore.sln /m:2 /p:Configuration=Release %MSBUILDEXTRA%
if %errorlevel% neq 0 pause
cd ..
:no_build

@ -0,0 +1,14 @@
if not exist .\fv_x64\CMakeCache.txt goto :no_build
call ..\path_config.bat
C:
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
cd /d %RC_ROOT%\build
call patch_version.bat
if %errorlevel% neq 0 pause
cd fv_x64
cmake -DNL_VERSION_PATCH=%CLIENT_PATCH_VERSION% .
if %errorlevel% neq 0 pause
msbuild RyzomCore.sln /m:2 /p:Configuration=Release %MSBUILDEXTRA%
if %errorlevel% neq 0 pause
cd ..
:no_build

@ -0,0 +1,15 @@
if not exist .\fv_x86\CMakeCache.txt goto :no_build
call ..\path_config.bat
C:
cd C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\
call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
cd /d %RC_ROOT%\build
call patch_version.bat
if %errorlevel% neq 0 pause
cd fv_x86
cmake -DNL_VERSION_PATCH=%CLIENT_PATCH_VERSION% .
if %errorlevel% neq 0 pause
msbuild RyzomCore.sln /m:2 /p:Configuration=Release %MSBUILDEXTRA%
if %errorlevel% neq 0 pause
cd ..
:no_build

@ -0,0 +1,14 @@
if not exist .\tools_x64\CMakeCache.txt goto :no_build
call ..\path_config.bat
C:
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
cd /d %RC_ROOT%\build
call patch_version.bat
if %errorlevel% neq 0 pause
cd tools_x64
cmake -DNL_VERSION_PATCH=%CLIENT_PATCH_VERSION% .
if %errorlevel% neq 0 pause
msbuild RyzomCore.sln /m:2 /p:Configuration=Release %MSBUILDEXTRA%
if %errorlevel% neq 0 pause
cd ..
:no_build

@ -0,0 +1,8 @@
rmdir /s /q dev_x64
rmdir /s /q fv_x64
rmdir /s /q fv_x86
rmdir /s /q tools_x64
rmdir /s /q samples_x64
rmdir /s /q server_x64
rmdir /s /q 3dsmax
pause

@ -0,0 +1,130 @@
call ..\path_config.bat
cd /d %RC_ROOT%\build
set RC_DOMAIN=core4
if not exist "C:\2019q4_external_v142_x64\zlib\bin\zlib.dll" goto :no_v142
set "RC_PREFIX_PATH_V142_X64=C:\2019q4_external_v142_x64\zlib;C:\2019q4_external_v142_x64\openssl;C:\2019q4_external_v142_x64\curl;C:\2019q4_external_v142_x64\libjpeg;C:\2019q4_external_v142_x64\libpng;C:\2019q4_external_v142_x64\libiconv;C:\2019q4_external_v142_x64\libxml2;C:\2019q4_external_v142_x64\freetype;C:\2019q4_external_v142_x64\squish;C:\2019q4_external_v142_x64\ogg;C:\2019q4_external_v142_x64\vorbis;C:\2019q4_external_v142_x64\openal-soft;C:\2019q4_external_v142_x64\lua;C:\2019q4_external_v142_x64\luabind;C:\2019q4_external_v142_x64\mariadb-connector-c;C:\2019q4_external_v142_x64\assimp;C:\2019q4_external_v142_x64\qt5;C:\2019q4_external_v142_x64\boost"
:no_v142
if not exist "C:\2019q4_external_v90_x86\zlib\bin\zlib.dll" goto :no_v90
set "RC_PREFIX_PATH_V90_X86=C:\2019q4_external_v90_x86\zlib;C:\2019q4_external_v90_x86\openssl;C:\2019q4_external_v90_x86\curl;C:\2019q4_external_v90_x86\libjpeg;C:\2019q4_external_v90_x86\libpng;C:\2019q4_external_v90_x86\libiconv;C:\2019q4_external_v90_x86\libxml2;C:\2019q4_external_v90_x86\freetype;C:\2019q4_external_v90_x86\squish;C:\2019q4_external_v90_x86\ogg;C:\2019q4_external_v90_x86\vorbis;C:\2019q4_external_v90_x86\openal;C:\2019q4_external_v90_x86\lua;C:\2019q4_external_v90_x86\luabind;C:\2019q4_external_v90_x86\boost"
:no_v90
set RC_URLS="-DRYZOM_CLIENT_CREATE_ACCOUNT_URL=https://core.ryzom.dev/ams/" "-DRYZOM_CLIENT_EDIT_ACCOUNT_URL=https://core.ryzom.dev/ams/" "-DRYZOM_CLIENT_FORGET_PASSWORD_URL=https://core.ryzom.dev/ams/" "-DRYZOM_CLIENT_PATCH_URL=https://cdn.ryzom.dev/%RC_DOMAIN%/patch/" "-DRYZOM_CLIENT_RELEASENOTES_URL=https://%RC_DOMAIN%.ryzom.dev/releasenotes/index.php" "-DRYZOM_CLIENT_RELEASENOTES_RING_URL=https://%RC_DOMAIN%.ryzom.dev/releasenotes_ring/index.php" "-DRYZOM_CLIENT_APP_NAME=%RC_DOMAIN%"
rem goto :v90
rem goto :max
if not exist "C:\2019q4_external_v142_x64\zlib\bin\zlib.dll" goto :no_v142_client
mkdir dev_x64
cd dev_x64
cmake -G "Visual Studio 16 2019" %RC_URLS% "-DCMAKE_SUPPRESS_REGENERATION=ON" "-DCUSTOM_FLAGS=/MP3" "-DCMAKE_PREFIX_PATH=%RC_PREFIX_PATH_V142_X64%" "-DWITH_EXTERNAL=OFF" "-DWITH_NEL_SAMPLES=OFF" "-DWITH_NEL_TOOLS=OFF" "-DWITH_NEL_TESTS=OFF" "-DWITH_LUA51=OFF" "-DWITH_LUA53=ON" "-DWITH_MFC=OFF" "-DWITH_NELNS=OFF" "-DWITH_RYZOM=ON" "-DWITH_RYZOM_CLIENT=ON" "-DWITH_RYZOM_PATCH=ON" "-DWITH_RYZOM_SERVER=OFF" "-DWITH_RYZOM_TOOLS=OFF" "-DWITH_SNOWBALLS=OFF" "-DWITH_STATIC=ON" "-DWITH_STATIC_LIBXML2=OFF" "-DWITH_STATIC_CURL=OFF" "-DWITH_DRIVER_DIRECT3D=ON" "-DWITH_DRIVER_XAUDIO2=ON" "-DWITH_DRIVER_DSOUND=ON" "-DWITH_LIBXML2_ICONV=ON" "-DFINAL_VERSION=OFF" "-DOPENAL_INCLUDE_DIR=C:/2019q4_external_v142_x64/openal-soft/include" "-DVORBIS_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DVORBISFILE_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DCURL_NO_CURL_CMAKE=ON" ..\..\code
if %errorlevel% neq 0 pause
cd ..
mkdir fv_x64
cd fv_x64
cmake -G "Visual Studio 16 2019" %RC_URLS% "-DCMAKE_SUPPRESS_REGENERATION=ON" "-DCUSTOM_FLAGS=/MP3" "-DCMAKE_PREFIX_PATH=%RC_PREFIX_PATH_V142_X64%" "-DWITH_EXTERNAL=OFF" "-DWITH_NEL_SAMPLES=OFF" "-DWITH_NEL_TOOLS=OFF" "-DWITH_NEL_TESTS=OFF" "-DWITH_LUA51=OFF" "-DWITH_LUA53=ON" "-DWITH_MFC=OFF" "-DWITH_NELNS=OFF" "-DWITH_RYZOM=ON" "-DWITH_RYZOM_CLIENT=ON" "-DWITH_RYZOM_PATCH=ON" "-DWITH_RYZOM_SERVER=OFF" "-DWITH_RYZOM_TOOLS=OFF" "-DWITH_SNOWBALLS=OFF" "-DWITH_STATIC=ON" "-DWITH_STATIC_LIBXML2=OFF" "-DWITH_STATIC_CURL=OFF" "-DWITH_DRIVER_DIRECT3D=ON" "-DWITH_DRIVER_XAUDIO2=ON" "-DWITH_DRIVER_DSOUND=ON" "-DWITH_LIBXML2_ICONV=ON" "-DFINAL_VERSION=ON" "-DOPENAL_INCLUDE_DIR=C:/2019q4_external_v142_x64/openal-soft/include" "-DVORBIS_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DVORBISFILE_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DCURL_NO_CURL_CMAKE=ON" ..\..\code
if %errorlevel% neq 0 pause
cd ..
:no_v142_client
if not exist "C:\2019q4_external_v90_x86\zlib\bin\zlib.dll" goto :no_v90_client
rem :v90
mkdir fv_x86
cd fv_x86
cmake -G "Visual Studio 9 2008" %RC_URLS% -A Win32 "-DCMAKE_SUPPRESS_REGENERATION=ON" "-DCUSTOM_FLAGS=/MP3" "-DCMAKE_PREFIX_PATH=%RC_PREFIX_PATH_V90_X86%" "-DWITH_EXTERNAL=OFF" "-DWITH_NEL_SAMPLES=OFF" "-DWITH_NEL_TOOLS=OFF" "-DWITH_NEL_TESTS=OFF" "-DWITH_LUA51=OFF" "-DWITH_LUA53=ON" "-DWITH_MFC=OFF" "-DWITH_NELNS=OFF" "-DWITH_RYZOM=ON" "-DWITH_RYZOM_CLIENT=ON" "-DWITH_RYZOM_PATCH=ON" "-DWITH_RYZOM_SERVER=OFF" "-DWITH_RYZOM_TOOLS=OFF" "-DWITH_SNOWBALLS=OFF" "-DWITH_STATIC=ON" "-DWITH_STATIC_LIBXML2=OFF" "-DWITH_STATIC_CURL=OFF" "-DWITH_DRIVER_DIRECT3D=ON" "-DWITH_DRIVER_XAUDIO2=ON" "-DWITH_DRIVER_DSOUND=ON" "-DWITH_LIBXML2_ICONV=ON" "-DWITH_STLPORT=OFF" "-DFINAL_VERSION=ON" "-DOPENAL_INCLUDE_DIR=C:/2019q4_external_v90_x86/openal/include" "-DEFXUTIL_INCLUDE_DIR=C:/2019q4_external_v90_x86/openal/include" "-DVORBIS_INCLUDE_DIR=C:/2019q4_external_v90_x86/vorbis/include" "-DVORBISFILE_INCLUDE_DIR=C:/2019q4_external_v90_x86/vorbis/include" "-DWITH_SSE2=OFF" "-DWITH_SSE3=OFF" "-DDXSDK_DIR=C:/Program Files (x86)/Microsoft DirectX SDK (February 2010)" "-DWINSDK_VERSION=6.0A" "-DCURL_NO_CURL_CMAKE=ON" ..\..\code
if %errorlevel% neq 0 pause
cd ..
rem pause
:no_v90_client
if not exist "C:\2019q4_external_v142_x64\zlib\bin\zlib.dll" goto :no_v142_tools
mkdir tools_x64
cd tools_x64
cmake -G "Visual Studio 16 2019" "-DCMAKE_SUPPRESS_REGENERATION=ON" "-DCUSTOM_FLAGS=/MP3" "-DCMAKE_PREFIX_PATH=%RC_PREFIX_PATH_V142_X64%" "-DWITH_EXTERNAL=OFF" "-DWITH_NEL_SAMPLES=OFF" "-DWITH_NEL_TOOLS=ON" "-DWITH_NEL_TESTS=OFF" "-DWITH_LUA51=OFF" "-DWITH_LUA53=ON" "-DWITH_MFC=ON" "-DWITH_QT5=ON" "-DWITH_NELNS=OFF" "-DWITH_RYZOM=ON" "-DWITH_RYZOM_CLIENT=OFF" "-DWITH_RYZOM_SERVER=OFF" "-DWITH_RYZOM_TOOLS=ON" "-DWITH_SNOWBALLS=OFF" "-DWITH_STATIC=ON" "-DWITH_STATIC_LIBXML2=OFF" "-DWITH_STATIC_CURL=OFF" "-DWITH_DRIVER_DIRECT3D=ON" "-DWITH_DRIVER_XAUDIO2=ON" "-DWITH_DRIVER_DSOUND=ON" "-DWITH_LIBXML2_ICONV=ON" "-DFINAL_VERSION=OFF" "-DOPENAL_INCLUDE_DIR=C:/2019q4_external_v142_x64/openal-soft/include" "-DVORBIS_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DVORBISFILE_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DCURL_NO_CURL_CMAKE=ON" ..\..\code
if %errorlevel% neq 0 pause
cd ..
:no_v142_tools
rem :max
mkdir 3dsmax
cd 3dsmax
if not exist "C:\2019q4_external_v90_x86\zlib\bin\zlib.dll" goto :no_max9
if not exist "C:\Program Files (x86)\Autodesk\3ds Max 9 SDK\maxsdk\lib\core.lib" goto :no_max9
mkdir 9_x86
cd 9_x86
cmake -G "Visual Studio 9 2008" -A Win32 "-DCMAKE_SUPPRESS_REGENERATION=ON" "-DCUSTOM_FLAGS=/MP3" "-DCMAKE_PREFIX_PATH=%RC_PREFIX_PATH_V90_X86%" "-DWITH_EXTERNAL=OFF" "-DWITH_NEL_SAMPLES=OFF" "-DWITH_NEL_TOOLS=OFF" "-DWITH_NEL_TESTS=OFF" "-DWITH_LUA51=OFF" "-DWITH_LUA53=ON" "-DWITH_MFC=ON" "-DWITH_NELNS=OFF" "-DWITH_RYZOM=OFF" "-DWITH_RYZOM_CLIENT=OFF" "-DWITH_RYZOM_SERVER=OFF" "-DWITH_RYZOM_TOOLS=OFF" "-DWITH_SNOWBALLS=OFF" "-DWITH_STATIC=ON" "-DWITH_STATIC_LIBXML2=OFF" "-DWITH_STATIC_CURL=OFF" "-DWITH_DRIVER_DIRECT3D=OFF" "-DWITH_DRIVER_XAUDIO2=ON" "-DWITH_DRIVER_DSOUND=OFF" -"DWITH_DRIVER_OPENAL=OFF" "-DWITH_LIBXML2_ICONV=ON" "-DWITH_STLPORT=OFF" "-DFINAL_VERSION=OFF" "-DOPENAL_INCLUDE_DIR=C:/2019q4_external_v90_x86/openal/include" "-DEFXUTIL_INCLUDE_DIR=C:/2019q4_external_v90_x86/openal/include" "-DVORBIS_INCLUDE_DIR=C:/2019q4_external_v90_x86/vorbis/include" "-DVORBISFILE_INCLUDE_DIR=C:/2019q4_external_v90_x86/vorbis/include" "-DWITH_SSE2=OFF" "-DWITH_SSE3=OFF" "-DDXSDK_DIR=C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)" "-DWINSDK_VERSION=6.0A" "-DCURL_NO_CURL_CMAKE=ON" "-DWITH_NEL_MAXPLUGIN=ON" "-DMAXSDK_DIR=C:/Program Files (x86)/Autodesk/3ds Max 9 SDK/maxsdk" ..\..\..\code
if %errorlevel% neq 0 pause
cd ..
:no_max9
if not exist "C:\2019q4_external_v90_x86\zlib\bin\zlib.dll" goto :no_max2010
if not exist "C:\Program Files (x86)\Autodesk\3ds Max 2010 SDK\maxsdk\lib\core.lib" goto :no_max2010
mkdir 2010_x86
cd 2010_x86
cmake -G "Visual Studio 9 2008" -A Win32 "-DCMAKE_SUPPRESS_REGENERATION=ON" "-DCUSTOM_FLAGS=/MP3" "-DCMAKE_PREFIX_PATH=%RC_PREFIX_PATH_V90_X86%" "-DWITH_EXTERNAL=OFF" "-DWITH_NEL_SAMPLES=OFF" "-DWITH_NEL_TOOLS=OFF" "-DWITH_NEL_TESTS=OFF" "-DWITH_LUA51=OFF" "-DWITH_LUA53=ON" "-DWITH_MFC=ON" "-DWITH_NELNS=OFF" "-DWITH_RYZOM=OFF" "-DWITH_RYZOM_CLIENT=OFF" "-DWITH_RYZOM_SERVER=OFF" "-DWITH_RYZOM_TOOLS=OFF" "-DWITH_SNOWBALLS=OFF" "-DWITH_STATIC=ON" "-DWITH_STATIC_LIBXML2=OFF" "-DWITH_STATIC_CURL=OFF" "-DWITH_DRIVER_DIRECT3D=OFF" "-DWITH_DRIVER_XAUDIO2=ON" "-DWITH_DRIVER_DSOUND=OFF" -"DWITH_DRIVER_OPENAL=OFF" "-DWITH_LIBXML2_ICONV=ON" "-DWITH_STLPORT=OFF" "-DFINAL_VERSION=OFF" "-DOPENAL_INCLUDE_DIR=C:/2019q4_external_v90_x86/openal/include" "-DEFXUTIL_INCLUDE_DIR=C:/2019q4_external_v90_x86/openal/include" "-DVORBIS_INCLUDE_DIR=C:/2019q4_external_v90_x86/vorbis/include" "-DVORBISFILE_INCLUDE_DIR=C:/2019q4_external_v90_x86/vorbis/include" "-DWITH_SSE2=OFF" "-DWITH_SSE3=OFF" "-DDXSDK_DIR=C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)" "-DWINSDK_VERSION=6.0A" "-DCURL_NO_CURL_CMAKE=ON" "-DWITH_NEL_MAXPLUGIN=ON" "-DMAXSDK_DIR=C:/Program Files (x86)/Autodesk/3ds Max 2010 SDK/maxsdk" ..\..\..\code
if %errorlevel% neq 0 pause
cd ..
:no_max2010
if not exist "C:\2019q4_external_v90_x86\zlib\bin\zlib.dll" goto :no_max2012
if not exist "C:\Program Files (x86)\Autodesk\3ds Max 2012 SDK\maxsdk\lib\core.lib" goto :no_max2012
rem goto :skipmax
mkdir 2012_x86
cd 2012_x86
cmake -G "Visual Studio 9 2008" -A Win32 "-DCMAKE_SUPPRESS_REGENERATION=ON" "-DCUSTOM_FLAGS=/MP3" "-DCMAKE_PREFIX_PATH=%RC_PREFIX_PATH_V90_X86%" "-DWITH_EXTERNAL=OFF" "-DWITH_NEL_SAMPLES=OFF" "-DWITH_NEL_TOOLS=OFF" "-DWITH_NEL_TESTS=OFF" "-DWITH_LUA51=OFF" "-DWITH_LUA53=ON" "-DWITH_MFC=ON" "-DWITH_NELNS=OFF" "-DWITH_RYZOM=OFF" "-DWITH_RYZOM_CLIENT=OFF" "-DWITH_RYZOM_SERVER=OFF" "-DWITH_RYZOM_TOOLS=OFF" "-DWITH_SNOWBALLS=OFF" "-DWITH_STATIC=ON" "-DWITH_STATIC_LIBXML2=OFF" "-DWITH_STATIC_CURL=OFF" "-DWITH_DRIVER_DIRECT3D=OFF" "-DWITH_DRIVER_XAUDIO2=ON" "-DWITH_DRIVER_DSOUND=OFF" -"DWITH_DRIVER_OPENAL=OFF" "-DWITH_LIBXML2_ICONV=ON" "-DWITH_STLPORT=OFF" "-DFINAL_VERSION=OFF" "-DOPENAL_INCLUDE_DIR=C:/2019q4_external_v90_x86/openal/include" "-DEFXUTIL_INCLUDE_DIR=C:/2019q4_external_v90_x86/openal/include" "-DVORBIS_INCLUDE_DIR=C:/2019q4_external_v90_x86/vorbis/include" "-DVORBISFILE_INCLUDE_DIR=C:/2019q4_external_v90_x86/vorbis/include" "-DWITH_SSE2=OFF" "-DWITH_SSE3=OFF" "-DDXSDK_DIR=C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)" "-DWINSDK_VERSION=6.0A" "-DCURL_NO_CURL_CMAKE=ON" "-DWITH_NEL_MAXPLUGIN=ON" "-DMAXSDK_DIR=C:/Program Files (x86)/Autodesk/3ds Max 2012 SDK/maxsdk" ..\..\..\code
if %errorlevel% neq 0 pause
cd ..
:no_max2012
if not exist "C:\2019q4_external_v142_x64\zlib\bin\zlib.dll" goto :no_max2017
if not exist "C:\Program Files\Autodesk\3ds Max 2017 SDK\maxsdk\lib\x64\Release\core.lib" goto :no_max2017
mkdir 2017_x64
cd 2017_x64
cmake -G "Visual Studio 16 2019" "-DCMAKE_SUPPRESS_REGENERATION=ON" "-DCUSTOM_FLAGS=/MP3" "-DCMAKE_PREFIX_PATH=%RC_PREFIX_PATH_V142_X64%" "-DWITH_EXTERNAL=OFF" "-DWITH_NEL_SAMPLES=OFF" "-DWITH_NEL_TOOLS=OFF" "-DWITH_NEL_TESTS=OFF" "-DWITH_LUA51=OFF" "-DWITH_LUA53=ON" "-DWITH_MFC=ON" "-DWITH_NELNS=OFF" "-DWITH_RYZOM=OFF" "-DWITH_RYZOM_CLIENT=OFF" "-DWITH_RYZOM_SERVER=OFF" "-DWITH_RYZOM_TOOLS=OFF" "-DWITH_SNOWBALLS=OFF" "-DWITH_STATIC=ON" "-DWITH_STATIC_LIBXML2=OFF" "-DWITH_STATIC_CURL=OFF" "-DWITH_DRIVER_DIRECT3D=OFF" "-DWITH_DRIVER_XAUDIO2=ON" "-DWITH_DRIVER_DSOUND=OFF" -"DWITH_DRIVER_OPENAL=OFF" "-DWITH_LIBXML2_ICONV=ON" "-DFINAL_VERSION=OFF" "-DOPENAL_INCLUDE_DIR=C:/2019q4_external_v142_x64/openal-soft/include" "-DVORBIS_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DVORBISFILE_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DCURL_NO_CURL_CMAKE=ON" "-DWITH_NEL_MAXPLUGIN=ON" "-DMAXSDK_DIR=C:/Program Files/Autodesk/3ds Max 2017 SDK/maxsdk" ..\..\..\code
cd ..
:no_max2017
if not exist "C:\2019q4_external_v142_x64\zlib\bin\zlib.dll" goto :no_max2018
if not exist "C:\Program Files\Autodesk\3ds Max 2018 SDK\maxsdk\lib\x64\Release\core.lib" goto :no_max2018
mkdir 2018_x64
cd 2018_x64
cmake -G "Visual Studio 16 2019" "-DCMAKE_SUPPRESS_REGENERATION=ON" "-DCUSTOM_FLAGS=/MP3" "-DCMAKE_PREFIX_PATH=%RC_PREFIX_PATH_V142_X64%" "-DWITH_EXTERNAL=OFF" "-DWITH_NEL_SAMPLES=OFF" "-DWITH_NEL_TOOLS=OFF" "-DWITH_NEL_TESTS=OFF" "-DWITH_LUA51=OFF" "-DWITH_LUA53=ON" "-DWITH_MFC=ON" "-DWITH_NELNS=OFF" "-DWITH_RYZOM=OFF" "-DWITH_RYZOM_CLIENT=OFF" "-DWITH_RYZOM_SERVER=OFF" "-DWITH_RYZOM_TOOLS=OFF" "-DWITH_SNOWBALLS=OFF" "-DWITH_STATIC=ON" "-DWITH_STATIC_LIBXML2=OFF" "-DWITH_STATIC_CURL=OFF" "-DWITH_DRIVER_DIRECT3D=OFF" "-DWITH_DRIVER_XAUDIO2=ON" "-DWITH_DRIVER_DSOUND=OFF" -"DWITH_DRIVER_OPENAL=OFF" "-DWITH_LIBXML2_ICONV=ON" "-DFINAL_VERSION=OFF" "-DOPENAL_INCLUDE_DIR=C:/2019q4_external_v142_x64/openal-soft/include" "-DVORBIS_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DVORBISFILE_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DCURL_NO_CURL_CMAKE=ON" "-DWITH_NEL_MAXPLUGIN=ON" "-DMAXSDK_DIR=C:/Program Files/Autodesk/3ds Max 2018 SDK/maxsdk" ..\..\..\code
if %errorlevel% neq 0 pause
cd ..
:no_max2018
if not exist "C:\2019q4_external_v142_x64\zlib\bin\zlib.dll" goto :no_max2019
if not exist "C:\Program Files\Autodesk\3ds Max 2019 SDK\maxsdk\lib\x64\Release\core.lib" goto :no_max2019
mkdir 2019_x64
cd 2019_x64
cmake -G "Visual Studio 16 2019" "-DCMAKE_SUPPRESS_REGENERATION=ON" "-DCUSTOM_FLAGS=/MP3" "-DCMAKE_PREFIX_PATH=%RC_PREFIX_PATH_V142_X64%" "-DWITH_EXTERNAL=OFF" "-DWITH_NEL_SAMPLES=OFF" "-DWITH_NEL_TOOLS=OFF" "-DWITH_NEL_TESTS=OFF" "-DWITH_LUA51=OFF" "-DWITH_LUA53=ON" "-DWITH_MFC=ON" "-DWITH_NELNS=OFF" "-DWITH_RYZOM=OFF" "-DWITH_RYZOM_CLIENT=OFF" "-DWITH_RYZOM_SERVER=OFF" "-DWITH_RYZOM_TOOLS=OFF" "-DWITH_SNOWBALLS=OFF" "-DWITH_STATIC=ON" "-DWITH_STATIC_LIBXML2=OFF" "-DWITH_STATIC_CURL=OFF" "-DWITH_DRIVER_DIRECT3D=OFF" "-DWITH_DRIVER_XAUDIO2=ON" "-DWITH_DRIVER_DSOUND=OFF" -"DWITH_DRIVER_OPENAL=OFF" "-DWITH_LIBXML2_ICONV=ON" "-DFINAL_VERSION=OFF" "-DOPENAL_INCLUDE_DIR=C:/2019q4_external_v142_x64/openal-soft/include" "-DVORBIS_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DVORBISFILE_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DCURL_NO_CURL_CMAKE=ON" "-DWITH_NEL_MAXPLUGIN=ON" "-DMAXSDK_DIR=C:/Program Files/Autodesk/3ds Max 2019 SDK/maxsdk" ..\..\..\code
if %errorlevel% neq 0 pause
cd ..
:no_max2019
if not exist "C:\2019q4_external_v142_x64\zlib\bin\zlib.dll" goto :no_max2020
if not exist "C:\Program Files\Autodesk\3ds Max 2020 SDK\maxsdk\lib\x64\Release\core.lib" goto :no_max2020
mkdir 2020_x64
cd 2020_x64
cmake -G "Visual Studio 16 2019" "-DCMAKE_SUPPRESS_REGENERATION=ON" "-DCUSTOM_FLAGS=/MP3" "-DCMAKE_PREFIX_PATH=%RC_PREFIX_PATH_V142_X64%" "-DWITH_EXTERNAL=OFF" "-DWITH_NEL_SAMPLES=OFF" "-DWITH_NEL_TOOLS=OFF" "-DWITH_NEL_TESTS=OFF" "-DWITH_LUA51=OFF" "-DWITH_LUA53=ON" "-DWITH_MFC=ON" "-DWITH_NELNS=OFF" "-DWITH_RYZOM=OFF" "-DWITH_RYZOM_CLIENT=OFF" "-DWITH_RYZOM_SERVER=OFF" "-DWITH_RYZOM_TOOLS=OFF" "-DWITH_SNOWBALLS=OFF" "-DWITH_STATIC=ON" "-DWITH_STATIC_LIBXML2=OFF" "-DWITH_STATIC_CURL=OFF" "-DWITH_DRIVER_DIRECT3D=OFF" "-DWITH_DRIVER_XAUDIO2=ON" "-DWITH_DRIVER_DSOUND=OFF" -"DWITH_DRIVER_OPENAL=OFF"" "-DWITH_LIBXML2_ICONV=ON" "-DFINAL_VERSION=OFF" "-DOPENAL_INCLUDE_DIR=C:/2019q4_external_v142_x64/openal-soft/include" "-DVORBIS_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DVORBISFILE_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DCURL_NO_CURL_CMAKE=ON" "-DWITH_NEL_MAXPLUGIN=ON" "-DMAXSDK_DIR=C:/Program Files/Autodesk/3ds Max 2020 SDK/maxsdk" ..\..\..\code
if %errorlevel% neq 0 pause
cd ..
:no_max2020
if not exist "C:\2019q4_external_v142_x64\zlib\bin\zlib.dll" goto :no_max2022
if not exist "C:\Program Files\Autodesk\3ds Max 2022 SDK\maxsdk\lib\x64\Release\core.lib" goto :no_max2022
mkdir 2022_x64
cd 2022_x64
cmake -G "Visual Studio 16 2019" "-DCMAKE_SUPPRESS_REGENERATION=ON" "-DCUSTOM_FLAGS=/MP3" "-DCMAKE_PREFIX_PATH=%RC_PREFIX_PATH_V142_X64%" "-DWITH_EXTERNAL=OFF" "-DWITH_NEL_SAMPLES=OFF" "-DWITH_NEL_TOOLS=OFF" "-DWITH_NEL_TESTS=OFF" "-DWITH_LUA51=OFF" "-DWITH_LUA53=ON" "-DWITH_MFC=ON" "-DWITH_NELNS=OFF" "-DWITH_RYZOM=OFF" "-DWITH_RYZOM_CLIENT=OFF" "-DWITH_RYZOM_SERVER=OFF" "-DWITH_RYZOM_TOOLS=OFF" "-DWITH_SNOWBALLS=OFF" "-DWITH_STATIC=ON" "-DWITH_STATIC_LIBXML2=OFF" "-DWITH_STATIC_CURL=OFF" "-DWITH_DRIVER_DIRECT3D=OFF" "-DWITH_DRIVER_XAUDIO2=ON" "-DWITH_DRIVER_DSOUND=OFF" -"DWITH_DRIVER_OPENAL=OFF" "-DWITH_LIBXML2_ICONV=ON" "-DFINAL_VERSION=OFF" "-DOPENAL_INCLUDE_DIR=C:/2019q4_external_v142_x64/openal-soft/include" "-DVORBIS_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DVORBISFILE_INCLUDE_DIR=C:/2019q4_external_v142_x64/vorbis/include" "-DCURL_NO_CURL_CMAKE=ON" "-DWITH_NEL_MAXPLUGIN=ON" "-DMAXSDK_DIR=C:/Program Files/Autodesk/3ds Max 2022 SDK/maxsdk" ..\..\..\code
if %errorlevel% neq 0 pause
cd ..
rem :skipmax
:no_max2022
rem cd ..
pause
Loading…
Cancel
Save