|
53 | 53 | Replacements="@PACKAGE_VERSION@=$(_PackageVersion);@PACKAGE_VERSION_BUILD@=$(_PackageVersionBuild);@PACKAGE_HEAD_REV@=$(XAVersionHash);@PACKAGE_HEAD_BRANCH@=$(XAVersionBranch)">
|
54 | 54 | </ReplaceFileContents>
|
55 | 55 | </Target>
|
| 56 | + <PropertyGroup> |
| 57 | + <_JavaSourceUtilsJar>$(XAInstallPrefix)xbuild\Xamarin\Android\java-source-utils.jar</_JavaSourceUtilsJar> |
| 58 | + <_AndroidStableSrcDir>$(AndroidSdkDirectory)\platforms\android-$(AndroidLatestStableApiLevel)\src</_AndroidStableSrcDir> |
| 59 | + <_AndroidJavadocXml>..\..\bin\Build$(Configuration)\android-javadoc.xml</_AndroidJavadocXml> |
| 60 | + </PropertyGroup> |
| 61 | + <Target Name="_BuildAndroidJavadocXml" |
| 62 | + Condition=" '$(IncludeAndroidJavadoc)' == 'True' " |
| 63 | + BeforeTargets="CoreCompile" |
| 64 | + Inputs="$(MSBuildThisFile);$(_AndroidStableSrcDir)\source.properties;$(_JavaSourceUtilsJar)" |
| 65 | + Outputs="$(_AndroidJavadocXml)"> |
| 66 | + <ItemGroup> |
| 67 | + <_Doclink Include="--doc-copyright" /> |
| 68 | + <_Doclink Include="$(MSBuildThisFileDirectory)javadoc-copyright.xml" /> |
| 69 | + <_Doclink Include="--doc-url-prefix" /> |
| 70 | + <_Doclink Include="https://developer.android.com/reference" /> |
| 71 | + <_Doclink Include="--doc-url-style" /> |
| 72 | + <_Doclink Include="developer.android.com/reference@2020-Nov" /> |
| 73 | + </ItemGroup> |
| 74 | + <ItemGroup> |
| 75 | + <_AndroidSources Include="$(_AndroidStableSrcDir)\android\**\*.java" /> |
| 76 | + <_AndroidSources Include="$(_AndroidStableSrcDir)\java\**\*.java" /> |
| 77 | + <_AndroidSources Include="$(_AndroidStableSrcDir)\javax\**\*.java" /> |
| 78 | + <_AndroidSources Include="$(_AndroidStableSrcDir)\org\**\*.java" /> |
| 79 | + <_AndroidSources Remove="$(_AndroidStableSrcDir)\**\*.annotated.java" /> |
| 80 | + </ItemGroup> |
| 81 | + <PropertyGroup> |
| 82 | + <_Filenames>$(IntermediateOutputPath)\java-sources.txt</_Filenames> |
| 83 | + </PropertyGroup> |
| 84 | + <WriteLinesToFile |
| 85 | + File="$(_Filenames)" |
| 86 | + Lines="@(_Doclink);@(_AndroidSources)" |
| 87 | + Overwrite="True" |
| 88 | + /> |
| 89 | + <ItemGroup> |
| 90 | + <_JSIArg Include="-v" /> |
| 91 | + <_JSIArg Include="--source "$(_AndroidStableSrcDir)"" /> |
| 92 | + <_JSIArg Include="--output-javadoc "$(_AndroidJavadocXml)"" /> |
| 93 | + <_JSIArg Include="@$(_Filenames)" /> |
| 94 | + </ItemGroup> |
| 95 | + <Exec |
| 96 | + Command=""$(JavaPath)" -jar "$(_JavaSourceUtilsJar)" @(_JSIArg, ' ')" |
| 97 | + /> |
| 98 | + <Touch Files="$(_AndroidJavadocXml)" /> |
| 99 | + </Target> |
56 | 100 | <Target Name="_BuildJNIEnv"
|
57 | 101 | BeforeTargets="CoreCompile"
|
58 | 102 | Inputs="..\..\bin\Build$(Configuration)\jnienv-gen.exe"
|
|
113 | 157 | <_TypeMap>--type-map-report=$(IntermediateOutputPath)mcw\type-mapping.txt</_TypeMap>
|
114 | 158 | <_Api>$(IntermediateOutputPath)mcw\api.xml</_Api>
|
115 | 159 | <_Dirs>--enumdir=$(IntermediateOutputPath)mcw</_Dirs>
|
| 160 | + <_WithJavadocXml Condition=" '$(IncludeAndroidJavadoc)' == 'True' ">"--with-javadoc-xml=$(_AndroidJavadocXml)"</_WithJavadocXml> |
116 | 161 | <_FullIntermediateOutputPath>$([System.IO.Path]::GetFullPath('$(IntermediateOutputPath)'))</_FullIntermediateOutputPath>
|
117 | 162 | <_LangFeatures>--lang-features=nullable-reference-types</_LangFeatures>
|
118 | 163 | <_LangFeatures Condition="$(AndroidApiLevel) >= 30">$(_LangFeatures),default-interface-methods,nested-interface-types,interface-constants</_LangFeatures>
|
119 | 164 | </PropertyGroup>
|
120 | 165 | <Exec
|
121 |
| - Command="$(ManagedRuntime) $(ManagedRuntimeArgs) $(Generator) $(_GenFlags) $(_ApiLevel) $(_Out) $(_Codegen) $(_Fixup) $(_Enums1) $(_Enums2) $(_Versions) $(_Annotations) $(_Assembly) $(_TypeMap) $(_LangFeatures) $(_Dirs) $(_Api)" |
| 166 | + Command="$(ManagedRuntime) $(ManagedRuntimeArgs) $(Generator) $(_GenFlags) $(_ApiLevel) $(_Out) $(_Codegen) $(_Fixup) $(_Enums1) $(_Enums2) $(_Versions) $(_Annotations) $(_Assembly) $(_TypeMap) $(_LangFeatures) $(_Dirs) $(_Api) $(_WithJavadocXml)" |
| 167 | + IgnoreStandardErrorWarningFormat="True" |
122 | 168 | />
|
123 | 169 | <ItemGroup>
|
124 | 170 | <Compile Include="$(_FullIntermediateOutputPath)\mcw\**\*.cs" KeepDuplicates="False" />
|
|
0 commit comments