summaryrefslogtreecommitdiff
path: root/src/vm/vm.targets
blob: ccef8079a715e087e4be332e433f8da257039188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

    <Import Project="$(Clrbase)\clr.targets" />

    <PropertyGroup>
        <Assemble386AssemblerDependsOn>
            $(Assemble386AssemblerDependsOn);
            Generate__asmconstants_inc
        </Assemble386AssemblerDependsOn>
        <AssembleAmd64AssemblerDependsOn>
            $(AssembleAmd64AssemblerDependsOn);
            Generate__asmconstants_inc
        </AssembleAmd64AssemblerDependsOn>
        <AssembleArmAssemblerDependsOn>
            $(AssembleArmAssemblerDependsOn);
            Generate__asmconstants_inc
        </AssembleArmAssemblerDependsOn>
    </PropertyGroup>

    <ItemGroup>
        <Clean Condition="'$(AsmSuffix)' == 'asm'" Include="$(IntermediateOutputDirectory)\asmconstants.inc" />
    </ItemGroup>

     
    <Target Name="Generate__asmconstants_inc" Condition="'$(AsmSuffix)' == 'asm'" Inputs="$(Clrbase)\src\vm\$(BuildArchitecture)\asmconstants.h" Outputs="$(IntermediateOutputDirectory)\asmconstants.inc">
        <Exec Command="$(PerlCommand) $(Clrbase)\src\vm\h2inc.pl $(Clrbase)\src\vm\$(BuildArchitecture)\asmconstants.h &gt; $(IntermediateOutputDirectory)\asmconstants.tmp" StandardOutputImportance="Normal" />
        <CL 
            TrackerLogDirectory="$(IntermediateOutputDirectory)"
            PreprocessorDefinitions="$(CDefines);$(AsmDefines);$(TargetDefines)"
            PreprocessSuppressLineNumbers="true"
            PreprocessToFile="true"
            PreprocessOutputPath="$(IntermediateOutputDirectory)\"
            Sources="$(IntermediateOutputDirectory)\asmconstants.tmp"
            TLogReadFiles="@(ClTLogReadFile)"
            TLogWriteFiles="@(ClTLogWriteFile)"
            ToolExe="$(ClToolExe)"
            ToolPath="$(ClToolPath)"
            TrackFileAccess="$(TrackFileAccess)"
        >
        </CL>

        <ItemGroup>
            <Internal_AsmConstantsGenerated Include="$(IntermediateOutputDirectory)\asmconstants.tmp" Condition="Exists('$(IntermediateOutputDirectory)\asmconstants.tmp')"/>
            <AsmConstantsGenerated Include="$(IntermediateOutputDirectory)\asmconstants.i" />
        </ItemGroup>

        <Copy
            SourceFiles="@(AsmConstantsGenerated)"
            DestinationFiles="@(AsmConstantsGenerated->'$(IntermediateOutputDirectory)\%(Filename).inc')"
            OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
            Retries="$(CopyRetryCount)"
            RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
            Condition="'@(Internal_AsmConstantsGenerated)' != ''"
        />

    </Target>

</Project>