diff options
Diffstat (limited to 'src/ca')
-rw-r--r-- | src/ca/directx.def | 2 | ||||
-rw-r--r-- | src/ca/directx.vcxproj | 47 | ||||
-rw-r--r-- | src/ca/directxca.vcxproj | 61 | ||||
-rw-r--r-- | src/ca/packages.config | 5 | ||||
-rw-r--r-- | src/ca/precomp.h | 3 |
5 files changed, 67 insertions, 51 deletions
diff --git a/src/ca/directx.def b/src/ca/directx.def index 5841db88..8f46f9a8 100644 --- a/src/ca/directx.def +++ b/src/ca/directx.def | |||
@@ -1,7 +1,7 @@ | |||
1 | ; Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | ; Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | 2 | ||
3 | 3 | ||
4 | LIBRARY "directx" | 4 | LIBRARY "directxca" |
5 | 5 | ||
6 | EXPORTS | 6 | EXPORTS |
7 | WixQueryDirectXCaps | 7 | WixQueryDirectXCaps |
diff --git a/src/ca/directx.vcxproj b/src/ca/directx.vcxproj deleted file mode 100644 index e4020bcc..00000000 --- a/src/ca/directx.vcxproj +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
3 | |||
4 | |||
5 | <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
6 | <ItemGroup Label="ProjectConfigurations"> | ||
7 | <ProjectConfiguration Include="Debug|Win32"> | ||
8 | <Configuration>Debug</Configuration> | ||
9 | <Platform>Win32</Platform> | ||
10 | </ProjectConfiguration> | ||
11 | <ProjectConfiguration Include="Release|Win32"> | ||
12 | <Configuration>Release</Configuration> | ||
13 | <Platform>Win32</Platform> | ||
14 | </ProjectConfiguration> | ||
15 | </ItemGroup> | ||
16 | |||
17 | <PropertyGroup Label="Globals"> | ||
18 | <ProjectGuid>{F72D34CA-48DA-4DFD-91A9-A0C78BEF6981}</ProjectGuid> | ||
19 | <ConfigurationType>DynamicLibrary</ConfigurationType> | ||
20 | <CharacterSet>Unicode</CharacterSet> | ||
21 | <TargetName>directx</TargetName> | ||
22 | <ProjectModuleDefinitionFile>directx.def</ProjectModuleDefinitionFile> | ||
23 | </PropertyGroup> | ||
24 | |||
25 | <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), wix.proj))\tools\WixBuild.props" /> | ||
26 | |||
27 | <PropertyGroup> | ||
28 | <ProjectAdditionalIncludeDirectories>$(WixRoot)src\libs\dutil\inc;$(WixRoot)src\libs\wcautil</ProjectAdditionalIncludeDirectories> | ||
29 | <ProjectAdditionalLinkLibraries>d3d9.lib;msi.lib;dutil.lib;wcautil.lib</ProjectAdditionalLinkLibraries> | ||
30 | </PropertyGroup> | ||
31 | |||
32 | <ItemGroup> | ||
33 | <ClCompile Include="directx.cpp" /> | ||
34 | <ClCompile Include="dllmain.cpp" /> | ||
35 | </ItemGroup> | ||
36 | <ItemGroup> | ||
37 | <ClInclude Include="precomp.h" /> | ||
38 | </ItemGroup> | ||
39 | <ItemGroup> | ||
40 | <None Include="directx.def" /> | ||
41 | </ItemGroup> | ||
42 | <ItemGroup> | ||
43 | <ResourceCompile Include="directx.rc" /> | ||
44 | </ItemGroup> | ||
45 | |||
46 | <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), wix.proj))\tools\WixBuild.targets" /> | ||
47 | </Project> | ||
diff --git a/src/ca/directxca.vcxproj b/src/ca/directxca.vcxproj new file mode 100644 index 00000000..f3fb07a8 --- /dev/null +++ b/src/ca/directxca.vcxproj | |||
@@ -0,0 +1,61 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
3 | |||
4 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
5 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.6\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.6\build\WixToolset.DUtil.props')" /> | ||
6 | <Import Project="..\..\packages\WixToolset.WcaUtil.4.0.2\build\WixToolset.WcaUtil.props" Condition="Exists('..\..\packages\WixToolset.WcaUtil.4.0.2\build\WixToolset.WcaUtil.props')" /> | ||
7 | |||
8 | <ItemGroup Label="ProjectConfigurations"> | ||
9 | <ProjectConfiguration Include="Debug|Win32"> | ||
10 | <Configuration>Debug</Configuration> | ||
11 | <Platform>Win32</Platform> | ||
12 | </ProjectConfiguration> | ||
13 | <ProjectConfiguration Include="Release|Win32"> | ||
14 | <Configuration>Release</Configuration> | ||
15 | <Platform>Win32</Platform> | ||
16 | </ProjectConfiguration> | ||
17 | </ItemGroup> | ||
18 | |||
19 | <PropertyGroup Label="Globals"> | ||
20 | <ProjectGuid>{76542B28-0FFD-47D3-AD6A-D0F20FA875AC}</ProjectGuid> | ||
21 | <ConfigurationType>DynamicLibrary</ConfigurationType> | ||
22 | <PlatformToolset>v141</PlatformToolset> | ||
23 | <CharacterSet>Unicode</CharacterSet> | ||
24 | <TargetName>directxca</TargetName> | ||
25 | <ProjectModuleDefinitionFile>directx.def</ProjectModuleDefinitionFile> | ||
26 | <Description>WiX Toolset DirectX CustomAction</Description> | ||
27 | </PropertyGroup> | ||
28 | |||
29 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
30 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
31 | |||
32 | <PropertyGroup> | ||
33 | <ProjectAdditionalLinkLibraries>d3d9.lib;msi.lib</ProjectAdditionalLinkLibraries> | ||
34 | </PropertyGroup> | ||
35 | |||
36 | <ItemGroup> | ||
37 | <ClCompile Include="directx.cpp" /> | ||
38 | <ClCompile Include="dllmain.cpp"> | ||
39 | <PrecompiledHeader>Create</PrecompiledHeader> | ||
40 | </ClCompile> | ||
41 | </ItemGroup> | ||
42 | |||
43 | <ItemGroup> | ||
44 | <ClInclude Include="precomp.h" /> | ||
45 | </ItemGroup> | ||
46 | |||
47 | <ItemGroup> | ||
48 | <None Include="directx.def" /> | ||
49 | <None Include="packages.config" /> | ||
50 | </ItemGroup> | ||
51 | |||
52 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
53 | |||
54 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | ||
55 | <PropertyGroup> | ||
56 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | ||
57 | </PropertyGroup> | ||
58 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.6\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.6\build\WixToolset.DUtil.props'))" /> | ||
59 | <Error Condition="!Exists('..\..\packages\WixToolset.WcaUtil.4.0.2\build\WixToolset.WcaUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.WcaUtil.4.0.2\build\WixToolset.WcaUtil.props'))" /> | ||
60 | </Target> | ||
61 | </Project> | ||
diff --git a/src/ca/packages.config b/src/ca/packages.config new file mode 100644 index 00000000..b87f9ab4 --- /dev/null +++ b/src/ca/packages.config | |||
@@ -0,0 +1,5 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <packages> | ||
3 | <package id="WixToolset.DUtil" version="4.0.6" targetFramework="native" /> | ||
4 | <package id="WixToolset.WcaUtil" version="4.0.2" targetFramework="native" /> | ||
5 | </packages> \ No newline at end of file | ||
diff --git a/src/ca/precomp.h b/src/ca/precomp.h index 8480f2b2..75a15829 100644 --- a/src/ca/precomp.h +++ b/src/ca/precomp.h | |||
@@ -7,8 +7,5 @@ | |||
7 | #include <msiquery.h> | 7 | #include <msiquery.h> |
8 | #include <D3D9.h> | 8 | #include <D3D9.h> |
9 | 9 | ||
10 | #include "wixstrsafe.h" | ||
11 | #include "wcautil.h" | 10 | #include "wcautil.h" |
12 | #include "strutil.h" | 11 | #include "strutil.h" |
13 | |||
14 | #include "CustomMsiErrors.h" | ||