调整编译

This commit is contained in:
13038267101 2023-01-31 14:00:33 +08:00
parent f2cab8791e
commit 2ad57f9c88
2 changed files with 19 additions and 5 deletions

View File

@ -84,6 +84,7 @@ if "%COMPILE_RANGE%"=="none" (
"%~dp0\sln\release\hgsetver.exe" "%~dp0\..\sdk\include\huagao\brand.h" -oem %OEM% -cpu %CPU% -pid %PID% %COMPILE_RANGE% %NOT_INCREASE_VER%
if %COMPILE_RANGE%=="none" (
MSBuild.exe "%~dp0\device\lang.vcxproj" /p:Configuration=Release /p:Platform=%CPU%
MSBuild.exe "%~dp0\device\scanner.vcxproj" /p:Configuration=Release /p:Platform=%CPU%
MSBuild.exe "%~dp0\sane\sane.vcxproj" /p:Configuration=Release /p:Platform=%CPU%
)

View File

@ -76,7 +76,7 @@
<IncludePath>$(SolutionDir)..\..\sdk\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>$(SolutionDir)..\..\release\win\$(PlatformTarget)\OEM\lang</OutDir>
<OutDir>$(SolutionDir)..\..\release\win\$(PlatformTarget)\OEM\lang\</OutDir>
<IntDir>$(SolutionDir)..\..\tmp\$(PlatformTarget)\$(Configuration)\$(ProjectName)\</IntDir>
<IncludePath>$(SolutionDir)..\..\sdk\include;$(IncludePath)</IncludePath>
</PropertyGroup>
@ -86,7 +86,7 @@
<IncludePath>$(SolutionDir)..\..\sdk\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<OutDir>$(SolutionDir)..\..\release\win\$(PlatformTarget)\OEM\lang</OutDir>
<OutDir>$(SolutionDir)..\..\release\win\$(PlatformTarget)\OEM\lang\</OutDir>
<IntDir>$(SolutionDir)..\..\tmp\$(PlatformTarget)\$(Configuration)\$(ProjectName)\</IntDir>
<IncludePath>$(SolutionDir)..\..\sdk\include;$(IncludePath)</IncludePath>
</PropertyGroup>
@ -111,7 +111,8 @@ mkdir %FINAL_DIR%
move /Y "$(OutDirFullPath)$(ProjectName).exp" "%FINAL_DIR%"
move /Y "$(OutDirFullPath)$(ProjectName).lib" "%FINAL_DIR%"
move /Y "$(OutDirFullPath)$(ProjectName).pdb" "%FINAL_DIR%"
copy "$(TargetPath)" "$(SystemRoot)\twain_32\HuagoTwain" /y
</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
@ -137,13 +138,18 @@ copy "$(TargetPath)" "$(SystemRoot)\twain_32\HuagoTwain" /y
</Link>
<PostBuildEvent>
<Command>set FINAL_DIR=$(SolutionDir)..\..\sdk\lib\win\$(PlatformTarget)\$(Configuration)
set FINAL_LANGDIR=$(SolutionDir)..\..\release\win\$(PlatformTarget)\Release
mkdir %FINAL_DIR%
move /Y "$(OutDirFullPath)$(ProjectName).exp" "%FINAL_DIR%"
move /Y "$(OutDirFullPath)$(ProjectName).lib" "%FINAL_DIR%"
move /Y "$(OutDirFullPath)$(ProjectName).pdb" "%FINAL_DIR%"
copy $(OutDir)$(TargetName)$(TargetExt) "..\..\release\win\$(PlatformTarget)\Release"
copy $(OutDir)$(TargetName)$(TargetExt) "%FINAL_LANGDIR%" /y
</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
@ -166,6 +172,7 @@ mkdir %FINAL_DIR%
move /Y "$(OutDirFullPath)$(ProjectName).exp" "%FINAL_DIR%"
move /Y "$(OutDirFullPath)$(ProjectName).lib" "%FINAL_DIR%"
move /Y "$(OutDirFullPath)$(ProjectName).pdb" "%FINAL_DIR%"
</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
@ -191,13 +198,19 @@ move /Y "$(OutDirFullPath)$(ProjectName).pdb" "%FINAL_DIR%"
</Link>
<PostBuildEvent>
<Command>set FINAL_DIR=$(SolutionDir)..\..\sdk\lib\win\$(PlatformTarget)\$(Configuration)
set FINAL_LANGDIR=$(SolutionDir)..\..\release\win\$(PlatformTarget)\Release
mkdir %FINAL_DIR%
move /Y "$(OutDirFullPath)$(ProjectName).exp" "%FINAL_DIR%"
move /Y "$(OutDirFullPath)$(ProjectName).lib" "%FINAL_DIR%"
move /Y "$(OutDirFullPath)$(ProjectName).pdb" "%FINAL_DIR%"
copy $(OutDir)$(TargetName)$(TargetExt) "..\..\release\win\$(PlatformTarget)\Release"
</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="..\..\code_lang\base_pak.h" />