Skip to content

Commit

Permalink
Merge pull request #141 from drTr0jan/FixExternalDeps
Browse files Browse the repository at this point in the history
Update ExternalDeps batch files
  • Loading branch information
charleneauger authored May 4, 2020
2 parents c120185 + 00652dc commit 5f7493b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
12 changes: 9 additions & 3 deletions External_Deps/OCS_Make_Required_Libs.bat
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ cd "%CURL_PATH%"
Rem Disable LDAP support, not needed in OCS Inventory NG Agent
set WINDOWS_SSPI=0
cd ..\winbuild
Rem Fix cURL DLL config for correct OpenSSL include path
perl.exe -pi.bak -e "s#\$\(SSL_PATH\)\\include#\$\(SSL_PATH\)#g" MakefileBuild.vc
Rem Fix cURL DLL config for MS Visual C++ with lastest Service Pack ( -D_BIND_TO_CURRENT_VCLIBS_VERSION)
Rem perl.exe -pi.bak -e "s# /DBUILDING_LIBCURL# /DBUILDING_LIBCURL /D_BIND_TO_CURRENT_VCLIBS_VERSION#g" Makefile.vc12
Rem Build cURL dll using OpenSSL Dlls and Zlib dll
Expand Down Expand Up @@ -180,11 +182,16 @@ title OCS Inventory NG Agent for Windows - Building ZipArchive DLL...
echo.
echo *************************************************************************
echo * *
echo * Preparing for OCS Inventory NG : Configuring ZipArchive DLL... *
echo * Preparing for OCS Inventory NG : Building ZipArchive DLL... *
echo * *
echo *************************************************************************
echo.
cd "%ZIP_PATH%\Release Unicode STL MD DLL"
cd "%ZIP_PATH%"
Rem Fix ZipArchive DLL config for MS Visual C++ with lastest Service Pack
perl.exe -pi.bak -e "s#_CRT_RAND_S;%%\(PreprocessorDefinitions\)</PreprocessorDefinitions>#_CRT_RAND_S;_BIND_TO_CURRENT_VCLIBS_VERSION;%%\(PreprocessorDefinitions\)</PreprocessorDefinitions>#g" ZipArchive.vcxproj
devenv ZipArchive.sln /Build "Release Unicode STL MD DLL|Win32"
if ERRORLEVEL 1 goto ERROR
cd "Release Unicode STL MD DLL"
Rem copy libs to use them in OCS
copy "ZipArchive.lib" ..\..
copy "ZipArchive.dll" ..\..\..\Release
Expand Down Expand Up @@ -228,7 +235,6 @@ echo * *
echo * Here is some common errors: *
echo * - Have you reviewed paths at the beginning of this batch file ? *
echo * - Have you updated Visual C++ version in cURL Makefile ? *
echo * - Have you build ZipArchive "Release Unicode STL MD DLL" ? *
echo * *
echo *************************************************************************

Expand Down
14 changes: 10 additions & 4 deletions External_Deps/OCS_Make_Required_Libs_x64.bat
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ cd "%ZLIB_PATH%"
Rem clean nmake
nmake Win32\Makefile.msc clean
Rem Build Zlib using precompiled asm code for MS Visual C++ with lastest Service Pack ( -D_BIND_TO_CURRENT_VCLIBS_VERSION)
nmake /NOLOGO -f Win32\Makefile.msc AS=ml64 LOC="-DASMV -DASMINF -D_BIND_TO_CURRENT_VCLIBS_VERSION" OBJA="inffasx64.obj gvmat64.obj inffas8664.obj"
nmake /NOLOGO -f Win32\Makefile.msc AS=ml64 LOC="-DASMV -DASMINF -D_BIND_TO_CURRENT_VCLIBS_VERSION -I." OBJA="inffasx64.obj gvmat64.obj inffas8664.obj"
if ERRORLEVEL 1 goto ERROR

Rem copy libs to use them in OCS
Expand Down Expand Up @@ -124,6 +124,8 @@ cd "%CURL_PATH%"
Rem Disable LDAP support, not needed in OCS Inventory NG Agent
set WINDOWS_SSPI=0
cd ..\winbuild
Rem Fix cURL DLL config for correct OpenSSL include path
perl.exe -pi.bak -e "s#\$\(SSL_PATH\)\\include#\$\(SSL_PATH\)#g" MakefileBuild.vc
Rem Fix cURL DLL config for MS Visual C++ with lastest Service Pack ( -D_BIND_TO_CURRENT_VCLIBS_VERSION)
Rem perl.exe -pi.bak -e "s# /DBUILDING_LIBCURL# /DBUILDING_LIBCURL /D_BIND_TO_CURRENT_VCLIBS_VERSION#g" Makefile.vc12
Rem Build cURL dll using OpenSSL Dlls and Zlib dll
Expand Down Expand Up @@ -182,11 +184,16 @@ title OCS Inventory NG Agent for Windows - Building ZipArchive DLL...
echo.
echo *************************************************************************
echo * *
echo * Preparing for OCS Inventory NG : Configuring ZipArchive DLL... *
echo * Preparing for OCS Inventory NG : Building ZipArchive DLL... *
echo * *
echo *************************************************************************
echo.
cd "%ZIP_PATH%\x64\Release Unicode STL MD DLL"
cd "%ZIP_PATH%"
Rem Fix ZipArchive DLL config for MS Visual C++ with lastest Service Pack
perl.exe -pi.bak -e "s#_CRT_RAND_S;%%\(PreprocessorDefinitions\)</PreprocessorDefinitions>#_CRT_RAND_S;_BIND_TO_CURRENT_VCLIBS_VERSION;%%\(PreprocessorDefinitions\)</PreprocessorDefinitions>#g" ZipArchive.vcxproj
devenv ZipArchive.sln /Build "Release Unicode STL MD DLL|x64"
if ERRORLEVEL 1 goto ERROR
cd "x64\Release Unicode STL MD DLL"
Rem copy libs to use them in OCS
copy "ZipArchive.lib" ..\..\..
copy "ZipArchive.dll" ..\..\..\..\Release
Expand Down Expand Up @@ -230,7 +237,6 @@ echo * *
echo * Here is some common errors: *
echo * - Have you reviewed paths at the beginning of this batch file ? *
echo * - Have you updated Visual C++ version in cURL Makefile ? *
echo * - Have you build ZipArchive "Release Unicode STL MD DLL" ? *
echo * *
echo *************************************************************************

Expand Down

0 comments on commit 5f7493b

Please sign in to comment.