fix:修正xp编译脚本。
This commit is contained in:
parent
9b43674730
commit
c8c4fae232
17
xp_build.bat
17
xp_build.bat
@ -1,5 +1,10 @@
|
|||||||
@echo off
|
@echo off
|
||||||
REM Step 1: 配置 xmake
|
|
||||||
|
echo Setting environment variables...
|
||||||
|
set BOOST_HEADER_DIR=C:\boost\include\boost-1_83
|
||||||
|
set BOOST_LIB_DIR=C:\boost\lib
|
||||||
|
set BOOST_LIBS=boost_filesystem-mgw7-mt-x32-1_83
|
||||||
|
|
||||||
echo Configuring xmake...
|
echo Configuring xmake...
|
||||||
xmake f -p mingw -a i386 --boost=y
|
xmake f -p mingw -a i386 --boost=y
|
||||||
if %errorlevel% neq 0 (
|
if %errorlevel% neq 0 (
|
||||||
@ -8,18 +13,10 @@ if %errorlevel% neq 0 (
|
|||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
REM Step 2: 设置环境变量
|
|
||||||
echo Setting environment variables...
|
|
||||||
set BOOST_HEADER_DIR=C:\boost\include\boost-1_83
|
|
||||||
set BOOST_LIB_DIR=C:\boost\lib
|
|
||||||
set BOOST_LIBS=boost_filesystem-mgw7-mt-x32-1_83
|
|
||||||
|
|
||||||
REM 验证设置的环境变量
|
|
||||||
echo BOOST_HEADER_DIR=%BOOST_HEADER_DIR%
|
echo BOOST_HEADER_DIR=%BOOST_HEADER_DIR%
|
||||||
echo BOOST_LIB_DIR=%BOOST_LIB_DIR%
|
echo BOOST_LIB_DIR=%BOOST_LIB_DIR%
|
||||||
echo BOOST_LIBS=%BOOST_LIBS%
|
echo BOOST_LIBS=%BOOST_LIBS%
|
||||||
|
|
||||||
REM Step 3: 构建项目
|
|
||||||
echo Building project with xmake...
|
echo Building project with xmake...
|
||||||
xmake
|
xmake
|
||||||
if %errorlevel% neq 0 (
|
if %errorlevel% neq 0 (
|
||||||
@ -27,7 +24,5 @@ if %errorlevel% neq 0 (
|
|||||||
pause
|
pause
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
REM 完成
|
|
||||||
echo Build completed successfully.
|
echo Build completed successfully.
|
||||||
pause
|
pause
|
Loading…
x
Reference in New Issue
Block a user