|
5 | 5 | <_TopDir>$(MSBuildThisFileDirectory)..\..</_TopDir> |
6 | 6 | <_NuGet>.nuget\NuGet.exe</_NuGet> |
7 | 7 | </PropertyGroup> |
8 | | - <ItemGroup> |
9 | | - <_ConfigurationFile Include="Windows-Configuration.OperatingSystem.props"> |
10 | | - <Destination>$(_TopDir)\Configuration.OperatingSystem.props</Destination> |
11 | | - </_ConfigurationFile> |
12 | | - <_ConfigurationFile Include="Configuration.Java.Interop.Override.props"> |
13 | | - <Destination>$(_TopDir)\external\Java.Interop\Configuration.Override.props</Destination> |
14 | | - </_ConfigurationFile> |
15 | | - </ItemGroup> |
16 | 8 | <UsingTask AssemblyFile="$(_TopDir)\bin\Build$(Configuration)\xa-prep-tasks.dll" TaskName="Xamarin.Android.BuildTools.PrepTasks.JdkInfo" /> |
| 9 | + <UsingTask AssemblyFile="$(_TopDir)\bin\Build$(Configuration)\xa-prep-tasks.dll" TaskName="Xamarin.Android.BuildTools.PrepTasks.ReplaceFileContents" /> |
17 | 10 | <Target Name="Prepare"> |
18 | 11 | <Exec Command="git submodule update --init --recursive" WorkingDirectory="$(_TopDir)" /> |
19 | | - <Copy |
20 | | - SourceFiles="@(_ConfigurationFile)" |
21 | | - DestinationFiles="@(_ConfigurationFile->'%(Destination)')" |
22 | | - SkipUnchangedFiles="True" |
23 | | - /> |
24 | 12 | <MSBuild Projects="$(MSBuildThisFileDirectory)..\xa-prep-tasks\xa-prep-tasks.csproj" /> |
25 | 13 | <JdkInfo |
26 | 14 | AndroidSdkPath="$(AndroidSdkPath)" |
27 | 15 | AndroidNdkPath="$(AndroidNdkPath)" |
28 | 16 | JavaSdkPath="$(JavaSdkDirectory)" |
29 | | - Output="$(_TopDir)\external\Java.Interop\bin\BuildDebug\JdkInfo.props" |
| 17 | + Output="$(_TopDir)\external\Java.Interop\bin\BuildDebug\JdkInfo.props"> |
| 18 | + <Output TaskParameter="JavaSdkDirectory" PropertyName="_JavaSdkDirectory" /> |
| 19 | + </JdkInfo> |
| 20 | + <Copy |
| 21 | + SourceFiles="Configuration.Java.Interop.Override.props" |
| 22 | + DestinationFiles="$(_TopDir)\external\Java.Interop\Configuration.Override.props" |
| 23 | + SkipUnchangedFiles="True" |
| 24 | + /> |
| 25 | + <ReplaceFileContents |
| 26 | + SourceFile="Windows-Configuration.OperatingSystem.props.in" |
| 27 | + DestinationFile="$(_TopDir)\Configuration.OperatingSystem.props" |
| 28 | + Replacements="@JAVA_HOME@=$(_JavaSdkDirectory)" |
30 | 29 | /> |
31 | 30 | <Exec Command="$(_NuGet) restore Xamarin.Android.sln" WorkingDirectory="$(_TopDir)" /> |
32 | 31 | <Exec Command="$(_NuGet) restore external\Java.Interop\Java.Interop.sln" WorkingDirectory="$(_TopDir)" /> |
|
0 commit comments