From 2a7fcda0a507ab4052e656f81db1a0ffceb0e7c7 Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Fri, 3 Feb 2023 10:53:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BC=96=E8=AF=91=E8=84=9A?= =?UTF-8?q?=E6=9C=AClib=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build_base.bat | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build_base.bat b/build_base.bat index 65e7321..be69984 100644 --- a/build_base.bat +++ b/build_base.bat @@ -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