|
8 | 8 | <Error Text="CefSharp requires .Net 4.5.2 or higher" /> |
9 | 9 | </Target> |
10 | 10 |
|
| 11 | + <ItemGroup> |
| 12 | + <CefSharpCommonBinaries32 Include="$(MSBuildThisFileDirectory)..\CefSharp\x86\*.*" /> |
| 13 | + <CefSharpCommonBinaries64 Include="$(MSBuildThisFileDirectory)..\CefSharp\x64\*.*" /> |
| 14 | + </ItemGroup> |
| 15 | + |
11 | 16 | <PropertyGroup> |
12 | 17 | <CefSharpTargetDir Condition=" '$(CefSharpTargetDir)' == '' ">$(TargetDir)</CefSharpTargetDir> |
13 | 18 | </PropertyGroup> |
14 | 19 |
|
15 | | - <Target Name="CefSharpCopyLibs86" BeforeTargets="BeforeBuild" Condition="'$(Platform)' == 'x86'"> |
16 | | - <ItemGroup> |
17 | | - <CefSharpBinaries Include="$(MSBuildThisFileDirectory)..\CefSharp\x86\*.*" /> |
18 | | - </ItemGroup> |
19 | | - |
| 20 | + <Target Name="CefSharpCopyLibs86" BeforeTargets="BeforeBuild" Condition="('$(Platform)' == 'x86') OR ('$(Platform)' == 'Win32')"> |
20 | 21 | <Message Importance="high" Text="Copying cef.redist x86 files" /> |
21 | 22 | <Copy SourceFiles="@(CefRedist32)" DestinationFiles="@(CefRedist32->'$(CefSharpTargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" /> |
22 | 23 |
|
23 | 24 | <Message Importance="high" Text="-- CefSharp.Common.targets: Copying files from $(MSBuildThisFileDirectory)..\CefSharp\x86 to $(CefSharpTargetDir)" /> |
24 | | - <Copy SourceFiles="@(CefSharpBinaries)" DestinationFolder="$(CefSharpTargetDir)" SkipUnchangedFiles="true" /> |
25 | | - </Target> |
26 | | - |
27 | | - <Target Name="CefSharpCopyLibsWin32" BeforeTargets="BeforeBuild" Condition="'$(Platform)' == 'Win32'"> |
28 | | - <ItemGroup> |
29 | | - <CefSharpBinaries Include="$(MSBuildThisFileDirectory)..\CefSharp\x86\*.*" /> |
30 | | - </ItemGroup> |
31 | | - <Message Importance="high" Text="Copying cef.redist x86 files" /> |
32 | | - <Copy SourceFiles="@(CefRedist32)" DestinationFiles="@(CefRedist32->'$(CefSharpTargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" /> |
33 | | - |
34 | | - <Message Importance="high" Text="-- CefSharp.Common.targets: Copying files from $(MSBuildThisFileDirectory)..\CefSharp\x86 to $(CefSharpTargetDir)" /> |
35 | | - <Copy SourceFiles="@(CefSharpBinaries)" DestinationFolder="$(CefSharpTargetDir)" SkipUnchangedFiles="true" /> |
| 25 | + <Copy SourceFiles="@(CefSharpCommonBinaries32)" DestinationFolder="$(CefSharpTargetDir)" SkipUnchangedFiles="true" /> |
36 | 26 | </Target> |
37 | 27 |
|
38 | 28 | <Target Name="CefSharpCopyLibs64" BeforeTargets="BeforeBuild" Condition="'$(Platform)' == 'x64'"> |
39 | | - <ItemGroup> |
40 | | - <CefSharpBinaries Include="$(MSBuildThisFileDirectory)..\CefSharp\x64\*.*" /> |
41 | | - </ItemGroup> |
42 | 29 | <Message Importance="high" Text="Copying cef.redist x64 files" /> |
43 | 30 | <Copy SourceFiles="@(CefRedist64)" DestinationFiles="@(CefRedist64->'$(CefSharpTargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" /> |
44 | 31 |
|
45 | 32 | <Message Importance="high" Text="-- CefSharp.Common.targets: Copying files from $(MSBuildThisFileDirectory)..\CefSharp\x64 to $(CefSharpTargetDir)" /> |
46 | | - <Copy SourceFiles="@(CefSharpBinaries)" DestinationFolder="$(CefSharpTargetDir)" SkipUnchangedFiles="true" /> |
| 33 | + <Copy SourceFiles="@(CefSharpCommonBinaries64)" DestinationFolder="$(CefSharpTargetDir)" SkipUnchangedFiles="true" /> |
47 | 34 | </Target> |
48 | 35 |
|
49 | 36 | <Target Name="CefSharpCopyLibsAnyCPU" BeforeTargets="BeforeBuild" Condition="'$(Platform)' == 'AnyCPU'"> |
50 | | - <ItemGroup> |
51 | | - <CefSharpBinaries32 Include="$(MSBuildThisFileDirectory)..\CefSharp\x86\*.*" /> |
52 | | - <CefSharpBinaries64 Include="$(MSBuildThisFileDirectory)..\CefSharp\x64\*.*" /> |
53 | | - </ItemGroup> |
54 | | - |
55 | 37 | <Message Importance="high" Text="Copying cef.redist x86 files" /> |
56 | 38 | <Copy SourceFiles="@(CefRedist32)" DestinationFiles="@(CefRedist32->'$(CefSharpTargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" /> |
57 | 39 |
|
58 | 40 | <Message Importance="high" Text="Copying cef.redist x64 files" /> |
59 | 41 | <Copy SourceFiles="@(CefRedist64)" DestinationFiles="@(CefRedist64->'$(CefSharpTargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" /> |
60 | 42 |
|
61 | 43 | <Message Importance="high" Text="-- CefSharp.Common.targets: Copying files from $(MSBuildThisFileDirectory)..\CefSharp\x86 to $(CefSharpTargetDir)\x86" /> |
62 | | - <Copy SourceFiles="@(CefSharpBinaries32)" DestinationFolder="$(CefSharpTargetDir)\x86" SkipUnchangedFiles="true" /> |
| 44 | + <Copy SourceFiles="@(CefSharpCommonBinaries32)" DestinationFolder="$(CefSharpTargetDir)\x86" SkipUnchangedFiles="true" /> |
63 | 45 | <Message Importance="high" Text="-- CefSharp.Common.targets: Copying files from $(MSBuildThisFileDirectory)..\CefSharp\x64 to $(CefSharpTargetDir)\x64" /> |
64 | | - <Copy SourceFiles="@(CefSharpBinaries64)" DestinationFolder="$(CefSharpTargetDir)\x64" SkipUnchangedFiles="true" /> |
| 46 | + <Copy SourceFiles="@(CefSharpCommonBinaries64)" DestinationFolder="$(CefSharpTargetDir)\x64" SkipUnchangedFiles="true" /> |
65 | 47 | </Target> |
66 | 48 | </Project> |
0 commit comments