Remove some causes of unnecessary rebuilds on Windows (VC10 only)

svn path=/trunk/yasm/; revision=2342
This commit is contained in:
Brian Gladman 2010-07-27 18:20:22 +00:00
parent ea41f1e4e5
commit 71afeff2eb
6 changed files with 59 additions and 23 deletions

View file

@ -44,6 +44,10 @@
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
<PreBuildEventUseInBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</PreBuildEventUseInBuild>
<PreBuildEventUseInBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</PreBuildEventUseInBuild>
<PreLinkEventUseInBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</PreLinkEventUseInBuild>
<PreLinkEventUseInBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</PreLinkEventUseInBuild>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>

View file

@ -16,7 +16,13 @@ call %_python_% modules\arch\x86\gen_x86_insn.py
:therest
@echo on
%1 x86insn_nasm.gperf x86insn_nasm.c
%1 x86insn_gas.gperf x86insn_gas.c
%1 modules\arch\x86\x86cpu.gperf x86cpu.c
%1 modules\arch\x86\x86regtmod.gperf x86regtmod.c
call :update %1 x86insn_nasm.gperf x86insn_nasm.c
call :update %1 x86insn_gas.gperf x86insn_gas.c
call :update %1 modules\arch\x86\x86cpu.gperf x86cpu.c
call :update %1 modules\arch\x86\x86regtmod.gperf x86regtmod.c
goto :eof
:update
%1 %2 tf
call mkfiles\vc10\out_copy_rename tf .\ %3
del tf

View file

@ -229,15 +229,12 @@
<ClInclude Include="..\..\..\libyasm\file.h" />
<ClInclude Include="..\..\..\libyasm\arch.h" />
<ClInclude Include="..\..\..\libyasm\assocdat.h" />
<ClInclude Include="..\..\..\libyasm\bc-int.h" />
<ClInclude Include="..\..\..\libyasm\bitvect.h" />
<ClInclude Include="..\..\..\libyasm\bytecode.h" />
<ClInclude Include="..\..\..\libyasm\compat-queue.h" />
<ClInclude Include="config.h" />
<ClInclude Include="..\..\..\libyasm\coretype.h" />
<ClInclude Include="..\..\..\libyasm\dbgfmt.h" />
<ClInclude Include="..\..\..\libyasm\errwarn.h" />
<ClInclude Include="..\..\..\libyasm\expr-int.h" />
<ClInclude Include="..\..\..\libyasm\expr.h" />
<ClInclude Include="..\..\..\libyasm\floatnum.h" />
<ClInclude Include="..\..\..\libyasm\hamt.h" />
@ -252,7 +249,6 @@
<ClInclude Include="..\..\..\libyasm\preproc.h" />
<ClInclude Include="..\..\..\libyasm\section.h" />
<ClInclude Include="..\..\..\libyasm\symrec.h" />
<ClInclude Include="..\..\..\libyasm\util.h" />
<ClInclude Include="..\..\..\libyasm\valparam.h" />
<ClInclude Include="..\..\..\libyasm\value.h" />
</ItemGroup>

View file

@ -106,9 +106,6 @@
<ClInclude Include="..\..\..\libyasm\assocdat.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\bc-int.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\bitvect.h">
<Filter>Header Files</Filter>
</ClInclude>
@ -127,9 +124,6 @@
<ClInclude Include="..\..\..\libyasm\errwarn.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\expr-int.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\expr.h">
<Filter>Header Files</Filter>
</ClInclude>
@ -175,18 +169,12 @@
<ClInclude Include="..\..\..\libyasm\symrec.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\util.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\valparam.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\libyasm\value.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="config.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\..\..\libyasm\module.in" />

View file

@ -0,0 +1,42 @@
@echo off
if not exist %1 goto nofile
if exist %2 goto copy
echo creating directory %2
md %2 > nul
:copy
set str=%2
for /f "useback tokens=*" %%a in ('%str%') do set str=%%~a
set str=%str:~-1%
if %str% == "\" goto hasbackslash
if not exist %2\%3 goto cpy
fc %1 %2\%3 > nul && if not %errorlevel 1 goto exit
echo overwriting %2\%3 with %1
copy %1 %2\%3 > nul
goto exit
:cpy
echo copying %1 to %2\%3
copy %1 %2\%3 > nul
goto exit
:hasbackslash
if not exist %2%3 goto cpy2
fc %1 %2%3 > nul && if not %errorlevel 1 goto exit
echo overwriting %2%3 with %1
copy %1 %2%3 > nul
goto exit
:cpy2
echo copying %1 to %2%3
copy %1 %2%3 > nul
goto exit
:nofile
echo %1 not found
:exit

View file

@ -251,9 +251,6 @@
<ClCompile Include="..\..\frontends\vsyasm\vsyasm.c" />
<ClCompile Include="..\..\frontends\yasm\yasm-options.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\frontends\vsyasm\yasm-options.h" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="libyasm\libyasm.vcxproj">
<Project>{29fe7874-1256-4ad6-b889-68e399dc9608}</Project>
@ -264,6 +261,9 @@
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\frontends\yasm\yasm-options.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>