代码拉取完成,页面将自动刷新
@echo off
echo "Check Vs Path..."
REM echo %VS140COMNTOOLS%
set VS_DEVENV_PATH=%1
echo "Check ACE Path..."
REM echo %VS140COMNTOOLS%
set ACEFind="false"
set ACEPath=%ACE_ROOT%
if defined ACEPath (
echo "Find ACE"
set VSFind="true"
) else (
echo "No Find ACE, begin download ace..."
powershell -Command "Invoke-WebRequest http://download.dre.vanderbilt.edu/previous_versions/ACE-6.5.0.zip -OutFile ACE-src-6.5.0.zip"
echo "download ace ok"
echo "download ace expand zip begin..."
powershell -Command "Expand-Archive 'ACE-6.5.0.zip' '.\'"
echo "download ace expand zip end..."
echo "create ace config.h begin..."
powershell -Command "New-Item .\ACE_wrappers\ace\config.h -type file -force"
powershell -Command "'#define ACE_HAS_STANDARD_LIBRARY 1' >> '.\ACE_wrappers\ace\config.h'"
powershell -Command "'#define ACE_HAS_IPV6' >> '.\ACE_wrappers\ace\config.h'"
powershell -Command "'#include \"ace/config-win32.h\"' >> '.\ACE_wrappers\ace\config.h'"
echo "create ace config.h end..."\
echo "compile ace begin..."
"%VS_DEVENV_PATH%" .\ACE_wrappers\ace\ace_vc14.sln /build "Debug|x64" /project .\ACE_wrappers\ace\ACE_vc14.vcxproj
echo "compile ace end..."
echo "set environment ACE_ROOT begin..."
set CurrPath=%cd%\ACE_wrappers\
echo %CurrPath%
setx /M ACE_ROOT "%CurrPath%"
echo "set environment ACE_ROOT end..."
echo "set environment PATH begin..."
wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%path%;%ACE_ROOT%\bin"
echo "set environment PATH end..."
)
if %VSFind%=="true" (
echo "Check ACE OK"
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。