|
| 1 | +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" |
| 2 | + DefaultTargets="Build" |
| 3 | + InitialTargets="DisplayBuildConfiguration"> |
| 4 | + <PropertyGroup> |
| 5 | + <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath> |
| 6 | + </PropertyGroup> |
| 7 | + |
| 8 | + <PropertyGroup> |
| 9 | + <OutputName>toolchain</OutputName> |
| 10 | + <OutputType>Package</OutputType> |
| 11 | + <ProjectGuid>6ebfb883-fc92-4b73-81ae-ddeb2cec4df9</ProjectGuid> |
| 12 | + <SchemaVersion>2.0</SchemaVersion> |
| 13 | + <ProductVersion Condition=" '$(ProductVersion)' == '' ">0.0.0</ProductVersion> |
| 14 | + <ProductVersion>$(ProductVersion)</ProductVersion> |
| 15 | + </PropertyGroup> |
| 16 | + |
| 17 | + <PropertyGroup> |
| 18 | + <OutputPath>build\</OutputPath> |
| 19 | + <IntermediateOutputPath>build\obj\</IntermediateOutputPath> |
| 20 | + <DefineSolutionProperties>false</DefineSolutionProperties> |
| 21 | + </PropertyGroup> |
| 22 | + |
| 23 | + <Import Project="$(WixTargetsPath)" /> |
| 24 | + |
| 25 | + <PropertyGroup> |
| 26 | + <DefineConstants>ProductVersion=$(ProductVersion);TOOLCHAIN_ROOT=$(TOOLCHAIN_ROOT);TOOLCHAIN_ROOT_USR_LIB_CLANG=$(TOOLCHAIN_ROOT)\usr\lib\clang;$(INCLUDE_DEBUG_INFO)</DefineConstants> |
| 27 | + <HarvestDirectoryAutogenerateGuids>false</HarvestDirectoryAutogenerateGuids> |
| 28 | + <HarvestDirectoryGenerateGuidsNow>true</HarvestDirectoryGenerateGuidsNow> |
| 29 | + <HarvestDirectoryNoLogo>true</HarvestDirectoryNoLogo> |
| 30 | + <HarvestDirectorySuppressCom>true</HarvestDirectorySuppressCom> |
| 31 | + <HarvestDirectorySuppressFragments>true</HarvestDirectorySuppressFragments> |
| 32 | + <HarvestDirectorySuppressRegistry>true</HarvestDirectorySuppressRegistry> |
| 33 | + <HarvestDirectorySuppressRootDirectory>true</HarvestDirectorySuppressRootDirectory> |
| 34 | + </PropertyGroup> |
| 35 | + |
| 36 | + <Target Name="BeforeBuild"> |
| 37 | + <ItemGroup> |
| 38 | + <!-- FIXME(compnerd): include the shims in the toolchain instead of the SDK? |
| 39 | + <HarvestDirectory Include="$(TOOLCHAIN_ROOT)\usr\lib\swift\shims"> |
| 40 | + <ComponentGroupName>SWIFT_SHIMS</ComponentGroupName> |
| 41 | + <DirectoryRefId>USR_LIB_SWIFT_SHIMS</DirectoryRefId> |
| 42 | + </HarvestDirectory> |
| 43 | + --> |
| 44 | + <HarvestDirectory Include="$(TOOLCHAIN_ROOT)\usr\lib\clang"> |
| 45 | + <ComponentGroupName>CLANG_RESOURCES</ComponentGroupName> |
| 46 | + <DirectoryRefId>USR_LIB_CLANG</DirectoryRefId> |
| 47 | + <PreprocessorVariable>var.TOOLCHAIN_ROOT_USR_LIB_CLANG</PreprocessorVariable> |
| 48 | + </HarvestDirectory> |
| 49 | + </ItemGroup> |
| 50 | + </Target> |
| 51 | + |
| 52 | + <ItemGroup> |
| 53 | + <Compile Include="windows-toolchain.wxs" /> |
| 54 | + </ItemGroup> |
| 55 | +</Project> |
0 commit comments