|
30 | 30 | </LinkerAdditionalOptions> |
31 | 31 | <SuppressIces>ICE60</SuppressIces> |
32 | 32 | </PropertyGroup> |
| 33 | + <PropertyGroup> |
| 34 | + <DefineConstants>$(DefineConstants);PM.ServiceDirId=service_folder</DefineConstants> |
| 35 | + </PropertyGroup> |
33 | 36 | <ItemGroup> |
34 | 37 | <Compile Include="CefBinaries.wxs" /> |
35 | 38 | <Compile Include="CefResources.wxs" /> |
|
50 | 53 | <WixExtension Include="WixUtilExtension"> |
51 | 54 | <HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath> |
52 | 55 | <Name>WixUtilExtension</Name> |
53 | | - </WixExtension> |
| 56 | + </WixExtension> |
54 | 57 | </ItemGroup> |
55 | 58 | <ItemGroup> |
56 | 59 | <ProjectReference Include="..\..\Provider\Provider.vcxproj"> |
|
93 | 96 | <RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups> |
94 | 97 | <RefTargetDir>INSTALLFOLDER</RefTargetDir> |
95 | 98 | </ProjectReference> |
| 99 | + <ProjectReference Include="..\PMInstallerLib\PMInstallerLib.wixproj"> |
| 100 | + <Name>PMInstallerLib</Name> |
| 101 | + <Project>{6478f2f6-92ad-4b1c-a13e-c8cea9125152}</Project> |
| 102 | + <Private>True</Private> |
| 103 | + <DoNotHarvest>True</DoNotHarvest> |
| 104 | + <RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups> |
| 105 | + <RefTargetDir>INSTALLFOLDER</RefTargetDir> |
| 106 | + </ProjectReference> |
96 | 107 | <ProjectReference Include="..\PresentMonAPI2Loader\PresentMonAPI2Loader.vcxproj"> |
97 | 108 | <Name>PresentMonAPI2Loader</Name> |
98 | 109 | <Project>{8f86d067-2437-46fc-8f82-4d7155ceced7}</Project> |
|
118 | 129 | <RefTargetDir>INSTALLFOLDER</RefTargetDir> |
119 | 130 | </ProjectReference> |
120 | 131 | </ItemGroup> |
121 | | - <ItemGroup> |
122 | | - <WixLibrary Include="..\PMInstallerLib\bin\PMService.wixlib" /> |
123 | | - </ItemGroup> |
124 | 132 | <Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " /> |
125 | 133 | <Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " /> |
126 | 134 | <Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' "> |
127 | 135 | <Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" /> |
128 | 136 | </Target> |
129 | | - <!-- |
| 137 | + |
| 138 | + <Target Name="AddReferencedWixLibs" BeforeTargets="Link"> |
| 139 | + <!-- Build the wixlib first --> |
| 140 | + <MSBuild Projects="..\PMInstallerLib\PMInstallerLib.wixproj" |
| 141 | + Targets="Build" |
| 142 | + Properties="Configuration=$(Configuration);Platform=$(Platform)" /> |
| 143 | + <ItemGroup> |
| 144 | + <WixLibrary Include="$(SolutionDir)build\$(Configuration)\PMInstallerLib.wixlib" |
| 145 | + Condition="Exists('$(SolutionDir)build\$(Configuration)\PMInstallerLib.wixlib')" /> |
| 146 | + </ItemGroup> |
| 147 | + <Message Text="@@ Linking wixlibs: @(WixLibrary)" Importance="High" /> |
| 148 | + <Error Condition="'@(WixLibrary)' == ''" |
| 149 | + Text="No wixlib found under $(SolutionDir)build\$(Configuration)\ (or ...\en-us\). Build produced nothing." /> |
| 150 | + </Target> |
| 151 | + |
| 152 | + <!-- |
130 | 153 | To modify your build process, add your task inside one of the targets below and uncomment it. |
131 | 154 | Other similar extension points exist, see Wix.targets. |
132 | 155 | <Target Name="BeforeBuild"> |
|
0 commit comments