Skip to content

Commit f753e18

Browse files
authored
Merge pull request swiftlang#9 from compnerd/sdk
Windows: add the packaging for the SDK
2 parents cf7d58e + 9f278d5 commit f753e18

File tree

2 files changed

+470
-0
lines changed

2 files changed

+470
-0
lines changed

platforms/Windows/sdk.wixproj

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
3+
<PropertyGroup>
4+
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
5+
</PropertyGroup>
6+
7+
<PropertyGroup>
8+
<OutputName>sdk</OutputName>
9+
<OutputType>Package</OutputType>
10+
<ProjectGuid>39170311-3634-4a14-9546-7e4825e7dcd8</ProjectGuid>
11+
<SchemaVersion>2.0</SchemaVersion>
12+
<ProductVersion Condition=" '$(ProductVersion)' == '' ">0.0.0</ProductVersion>
13+
<ProductVersion>$(ProductVersion)</ProductVersion>
14+
</PropertyGroup>
15+
16+
<PropertyGroup>
17+
<OutputPath>build\</OutputPath>
18+
<IntermediateOutputPath>build\obj\</IntermediateOutputPath>
19+
<DefineSolutionProperties>false</DefineSolutionProperties>
20+
</PropertyGroup>
21+
22+
<Import Project="$(WixTargetsPath)" />
23+
24+
<PropertyGroup>
25+
<DefineConstants>ProductVersion=$(ProductVersion);PLATFORM_ROOT=$(PLATFORM_ROOT);SDK_ROOT=$(SDK_ROOT);SWIFT_SOURCE_DIR=$(SWIFT_SOURCE_DIR);SDK_ROOT_USR_LIB_SWIFT_SHIMS=$(SDK_ROOT)\usr\lib\swift\shims;</DefineConstants>
26+
<HarvestDirectoryAutogenerateGuids>false</HarvestDirectoryAutogenerateGuids>
27+
<HarvestDirectoryGenerateGuidsNow>true</HarvestDirectoryGenerateGuidsNow>
28+
<HarvestDirectoryNoLogo>true</HarvestDirectoryNoLogo>
29+
<HarvestDirectorySuppressCom>true</HarvestDirectorySuppressCom>
30+
<HarvestDirectorySuppressFragments>true</HarvestDirectorySuppressFragments>
31+
<HarvestDirectorySuppressRegistry>true</HarvestDirectorySuppressRegistry>
32+
<HarvestDirectorySuppressRootDirectory>true</HarvestDirectorySuppressRootDirectory>
33+
</PropertyGroup>
34+
35+
<ItemGroup>
36+
<ProjectReference Include="CustomActions\SwiftInstaller\SwiftInstaller.vcxproj">
37+
<Name>SwiftInstaller</Name>
38+
<SetConfiguration>Configuration=Release</SetConfiguration>
39+
</ProjectReference>
40+
</ItemGroup>
41+
42+
<Target Name="BeforeBuild">
43+
<ItemGroup>
44+
<HarvestDirectory Include="$(SDK_ROOT)\usr\lib\swift\shims">
45+
<ComponentGroupName>SWIFT_SHIMS</ComponentGroupName>
46+
<DirectoryRefId>WINDOWS_SDK_USR_LIB_SWIFT_SHIMS</DirectoryRefId>
47+
<PreprocessorVariable>var.SDK_ROOT_USR_LIB_SWIFT_SHIMS</PreprocessorVariable>
48+
</HarvestDirectory>
49+
</ItemGroup>
50+
</Target>
51+
52+
<ItemGroup>
53+
<Compile Include="sdk.wxs" />
54+
</ItemGroup>
55+
</Project>

0 commit comments

Comments
 (0)