调整编译脚本lib文件路径

This commit is contained in:
yangjiaxuan 2023-02-03 10:53:26 +08:00
parent af6dce2900
commit 2a7fcda0a5
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,7 @@ set OEM_DIR=""
set TMP_PATH=%~dp0..\tmp\%CPU%
set BIN_PATH=%~dp0..\release\win\%CPU%
set LIB_PATH=%~dp0..\sdk\lib\win\%CPU%
set COMMON_LIB_PATH=%LIB_PATH%\Release\
rem -----------------------------------------------------------------------------------------------------------------------------------
@ -84,16 +85,20 @@ rem ----------------------------------------------------------------------------
"%~dp0\sln\release\hgsetver.exe" "%~dp0\..\sdk\include\huagao\brand.h" -oem %OEM% -cpu %CPU% -nov
mkdir %LIB_PATH%
mkdir %COMMON_LIB_PATH%
MSBuild.exe "%~dp0\lang\lang.vcxproj" /p:Configuration=Release /p:Platform=%CPU% /p:IntDir=%TMP_PATH%\lang\ /p:OutDir=%BIN_PATH%\
if %ERRORLEVEL% neq 0 goto end
call :move_libs %BIN_PATH% lang %LIB_PATH%
copy /y %LIB_PATH%\lang.lib %COMMON_LIB_PATH%
MSBuild.exe "%~dp0\device\scanner.vcxproj" /p:Configuration=Release /p:Platform=%CPU% /p:IntDir=%TMP_PATH%\scanner\ /p:OutDir=%BIN_PATH%\
if %ERRORLEVEL% neq 0 goto end
call :move_libs %BIN_PATH% scanner %LIB_PATH%
copy /y %LIB_PATH%\scanner.lib %COMMON_LIB_PATH%
MSBuild.exe "%~dp0\sane\sane.vcxproj" /p:Configuration=Release /p:Platform=%CPU% /p:IntDir=%TMP_PATH%\sane\ /p:OutDir=%BIN_PATH%\
if %ERRORLEVEL% neq 0 goto end
call :move_libs %BIN_PATH% sane %LIB_PATH%
copy /y %LIB_PATH%\sane.lib %COMMON_LIB_PATH%
goto end
REM move_libs src_dir src_name dst_dir