加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Build_Windows.bat 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
freeeyes 提交于 2020-01-17 17:27 . fix doc ace download url.
@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"
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化