Merge pull request #23934 from franksinankaya/gcc_cleanup_18
[platform/upstream/coreclr.git] / src / ilasm / ilasm.nativeproj
1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="dogfood">
2   <!--*****************************************************-->
3   <!--This MSBuild project file was automatically generated-->
4   <!--from the original SOURCES/DIRS file by the KBC tool.-->
5   <!--*****************************************************-->
6   <!--Import the settings-->
7   <Import Project="$(_NTDRIVE)$(_NTROOT)\ndp\clr\clr.props" />
8   <!--Leaf project Properties-->
9   <PropertyGroup>
10     <IsDesktopTool>true</IsDesktopTool>
11     <LibCLib>$(ClrCrtLib)</LibCLib>
12     <CDefines>$(CDefines);UNICODE;_UNICODE;FEATURE_NO_HOST;SELF_NO_HOST;NO_HOST_CPP_EH_ONLY</CDefines>
13     <CDefines>$(CDefines);__TODO_PORT_TO_WRAPPERS__</CDefines>
14     <OutputName>ilasm</OutputName>
15     <FileToMarkForSigning>$(BinariesDirectory)\$(OutputName).exe</FileToMarkForSigning>
16     <TargetType>PROGRAM</TargetType>
17     <LinkSubsystem>console</LinkSubsystem>
18     <EntryPoint>wmain</EntryPoint>
19     <LinkLibIgnore>$(LinkLibIgnore),4078</LinkLibIgnore>
20     <LinkGenerateManifest>true</LinkGenerateManifest>
21     <LinkAdditionalOptions>$(LinkAdditionalOptions) /MANIFEST -HEAP:4194304 </LinkAdditionalOptions>
22     <LinkStackReserve>4194304</LinkStackReserve>
23     
24     <!-- PCH baloney -->
25     <EnableCxxPCHHeaders>true</EnableCxxPCHHeaders>
26     <PCHCompile>ilasmpch.cpp</PCHCompile>
27     <PCHHeader>ilasmpch.h</PCHHeader>
28
29   </PropertyGroup>
30   <!--Leaf Project Items-->
31   <ItemGroup>
32     <ProjectReference Include="$(ClrSrcDirectory)utilcode\dyncrtnohost\dyncrtnohost.nativeproj" />
33     <LinkPreCrtLibs Include="$(ClrLibPath)\utilcodenohost.lib" />
34     <ProjectReference Include="$(ClrSrcDirectory)md\hotdata\full\mdhotdata.nativeproj" />
35     <LinkPreCrtLibs Include="$(ClrLibPath)\MDHotData.lib" />
36   </ItemGroup>
37   <ItemGroup>
38     <TargetLib Include="$(ClrLibPath)\corguids.lib">
39       <ProjectReference>$(ClrSrcDirectory)inc\corguids.nativeproj</ProjectReference>
40     </TargetLib>
41     <TargetLib Include="$(ClrLibPath)\fusion.lib">
42       <ProjectReference>$(ClrSrcDirectory)dlls\fusion\fusion.nativeproj</ProjectReference>
43     </TargetLib>
44     <TargetLib Include="$(SdkLibPath)\mscoree.lib" />
45     <TargetLib Include="$(SdkLibPath)\ole32.lib" />
46     <TargetLib Include="$(SdkLibPath)\oleaut32.lib" />
47     <TargetLib Include="$(SdkLibPath)\user32.lib" />
48     <TargetLib Include="$(SdkLibPath)\uuid.lib" />
49   </ItemGroup>
50   <ItemGroup>
51     <RCResourceFile Include="native.rc" />
52   </ItemGroup>
53   <ItemGroup>
54     <CppCompile Include="assem.cpp" />
55     <CppCompile Include="writer.cpp" />
56     <CppCompile Include="writer_enc.cpp" />
57     <CppCompile Include="method.cpp" />
58     <CppCompile Include="asmman.cpp" />
59     <CppCompile Include="main.cpp" />
60     <CppCompile Include="assembler.cpp" />
61     <CppCompile Include="MscorpeSxS.cpp" />
62     <CppCompile Include="$(IntermediateOutputDirectory)\asmparse.c" />
63   </ItemGroup>
64   <ItemGroup>
65     <DataFile Include="$(IntermediateOutputDirectory)\asmparse.grammar" />
66   </ItemGroup>
67   <!--Import the targets-->
68   <Import Project="$(_NTDRIVE)$(_NTROOT)\ndp\clr\clr.targets" />
69   
70   <PropertyGroup>
71     <BuildGeneratedDependsOn>
72       $(BuildGeneratedDependsOn);
73       GenerateAsmParseC
74     </BuildGeneratedDependsOn>
75   </PropertyGroup>
76   
77   <ItemGroup>
78     <Clean Include="$O\asmparse.c" />
79     <Clean Include="$O\asmparse.grammar" />
80   </ItemGroup>
81   <Target Name="GenerateAsmParseC"
82           Inputs="asmparse.y;asmparse.h;$(ClrSrcDirectory)inc\openum.h"
83           Outputs="$(IntermediateOutputDirectory)\asmparse.c;$(IntermediateOutputDirectory)\asmparse.grammar">
84     <Delete Files="$(IntermediateOutputDirectory)\asmparse.c;$(IntermediateOutputDirectory)\asmparse.grammar" />
85     <Exec Command="$(DevDivToolsBinPath)\yacc_ms.exe -o $(IntermediateOutputDirectory)\asmparse -i asmparse.y" StandardOutputImportance="Normal" />
86     <Exec Command="$(PerlCommand) extractGrammar.pl asmparse.y &gt; $(IntermediateOutputDirectory)\asmparse.grammar" StandardOutputImportance="Normal" />
87   </Target>
88 </Project>