Skip to content

Commit a1fea30

Browse files
author
Steve Pfister
committed
Merge remote-tracking branch 'origin/master' into mono-2019-08
2 parents 5607921 + 60e85b0 commit a1fea30

File tree

48 files changed

+647
-48
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+647
-48
lines changed

Makefile

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ BUILD_PROPS = bin/Build$(CONFIGURATION)/JdkInfo.props bin/Build$(CONFIGURATION)/
4646

4747
all: $(DEPENDENCIES) $(TESTS)
4848

49-
run-all-tests: run-tests run-test-jnimarshal run-test-generator-core run-ptests
49+
run-all-tests:
50+
r=0; \
51+
$(MAKE) run-tests || r=1 ; \
52+
$(MAKE) run-test-jnimarshal || r=1 ; \
53+
$(MAKE) run-test-generator-core || r=1 ; \
54+
$(MAKE) run-ptests || r=1 ; \
55+
exit $$r;
5056

5157
include build-tools/scripts/msbuild.mk
5258

@@ -145,14 +151,18 @@ shell:
145151

146152
# $(call RUN_TEST,filename,log-lref?)
147153
define RUN_TEST
148-
$(MSBUILD) $(MSBUILD_FLAGS) build-tools/scripts/RunNUnitTests.targets /p:TestAssembly=$(1) ;
154+
$(MSBUILD) $(MSBUILD_FLAGS) build-tools/scripts/RunNUnitTests.targets /p:TestAssembly=$(1) || r=1;
149155
endef
150156

151157
run-tests: $(TESTS) bin/Test$(CONFIGURATION)/$(JAVA_INTEROP_LIB)
152-
$(foreach t,$(TESTS), $(call RUN_TEST,$(t),1))
158+
r=0; \
159+
$(foreach t,$(TESTS), $(call RUN_TEST,$(t),1)) \
160+
exit $$r;
153161

154162
run-ptests: $(PTESTS) bin/Test$(CONFIGURATION)/$(JAVA_INTEROP_LIB)
155-
$(foreach t,$(PTESTS), $(call RUN_TEST,$(t)))
163+
r=0; \
164+
$(foreach t,$(PTESTS), $(call RUN_TEST,$(t))) \
165+
exit $$r;
156166

157167
bin/Test$(CONFIGURATION)/$(JAVA_INTEROP_LIB): bin/$(CONFIGURATION)/$(JAVA_INTEROP_LIB)
158168
cp $< $@

build-tools/jnienv-gen/jnienv-gen.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<AssemblyName>jnienv-gen</AssemblyName>
1212
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1313
</PropertyGroup>
14-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
14+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' Or '$(Configuration)|$(Platform)' == 'Gendarme|AnyCPU' ">
1515
<DebugSymbols>true</DebugSymbols>
1616
<DebugType>full</DebugType>
1717
<Optimize>false</Optimize>

build-tools/xamarin-android-docimporter-ng/generate.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ANDROID_TOOLCHAIN=~/android-toolchain
44

55
DROID_DOC_API_LEVELS="10 15 16 17 18 19 20 21 22 23"
6-
JAVA_STUB_API_LEVELS="24 25 26 27 28 Q"
6+
JAVA_STUB_API_LEVELS="24 25 26 27 28 29"
77

88

99
for n in $JAVA_STUB_API_LEVELS
@@ -15,4 +15,3 @@ for API_LEVEL in $DROID_DOC_API_LEVELS
1515
do
1616
time mono --debug xamarin-android-docimporter-ng/bin/Debug/xamarin-android-docimporter-ng.exe -droiddoc=$ANDROID_TOOLCHAIN/docs/docs-api-$API_LEVEL/ -output-text=api-$API_LEVEL.params.txt -output-xml=api-$API_LEVEL.params.xml -verbose -framework-only
1717
done
18-

external/cecil

Submodule cecil updated from cb6c1ca to a6c8f5e

src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/MethodDefinitionRocks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ static bool IsParameterCompatibleWith (TypeReference a, TypeReference b)
110110
return true;
111111
var gpa = (GenericParameter) a;
112112
foreach (var c in gpa.Constraints) {
113-
if (!c.ConstraintType.IsAssignableFrom (b))
113+
if (!c.IsAssignableFrom (b))
114114
return false;
115115
}
116116
return true;

src/Java.Interop/Java.Interop-MonoAndroid.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
<Import Project="Java.Interop.targets" />
7777
<PropertyGroup>
7878
<BuildDependsOn>
79-
BuildJnienvGen;
8079
BuildJniEnvironment_g_cs;
8180
BuildInteropJar;
8281
$(BuildDependsOn)

src/Java.Interop/Java.Interop.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
<Import Project="Java.Interop.targets" />
3636
<PropertyGroup>
3737
<BuildDependsOn>
38-
BuildJnienvGen;
3938
BuildJniEnvironment_g_cs;
4039
BuildInteropJar;
4140
$(BuildDependsOn)
@@ -61,5 +60,10 @@
6160
<None Include="Documentation\Java.Interop\IJavaPeerable.xml" />
6261
<None Include="Documentation\Java.Interop\JniManagedPeerStates.xml" />
6362
<None Include="Documentation\Java.Interop\JniEnvironment.References.xml" />
63+
<ProjectReference Include="..\..\build-tools\jnienv-gen\jnienv-gen.csproj">
64+
<Project>{6410DA0F-5E14-4FC0-9AEE-F4C542C96C7A}</Project>
65+
<Name>jnienv-gen</Name>
66+
<ReferenceOutputAssembly>False</ReferenceOutputAssembly>
67+
</ProjectReference>
6468
</ItemGroup>
6569
</Project>

src/Java.Interop/Java.Interop.targets

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,8 @@
1414
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
1515
</Content>
1616
</ItemGroup>
17-
<Target Name="BuildJnienvGen"
18-
Inputs="..\..\build-tools\jnienv-gen\jnienv-gen.csproj"
19-
Outputs="$(JNIEnvGenPath)\jnienv-gen.exe">
20-
<MSBuild
21-
Projects="..\..\build-tools\jnienv-gen\jnienv-gen.csproj"
22-
/>
23-
</Target>
2417
<Target Name="BuildJniEnvironment_g_cs"
2518
BeforeTargets="BeforeCompile"
26-
DependsOnTargets="BuildJnienvGen"
2719
Inputs="$(JNIEnvGenPath)\jnienv-gen.exe"
2820
Outputs="Java.Interop\JniEnvironment.g.cs;$(IntermediateOutputPath)\jni.c">
2921
<MakeDir Directories="$(IntermediateOutputPath)" />

src/Java.Interop/Tests/Java.Interop/JniValueMarshalerContractTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ protected override string GetExpectedReturnValueFromManagedExpression (string jv
601601
}}
602602
else
603603
{{
604-
return {value}_ref = {value}.PeerReference;
604+
return {value}_ref = (IJavaPeerable){value}.PeerReference;
605605
}}
606606
{value}_rtn = References.NewReturnToJniRef({value}_ref);
607607
return {pret.Name};

src/Xamarin.Android.Tools.ApiXmlAdjuster/JavaApiXmlLoaderExtensions.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,15 @@ public static void Load (this JavaPackage package, XmlReader reader, bool isRefe
8484
static readonly string [] expected_type_attributes = new String [] {
8585
"abstract",
8686
"deprecated",
87+
"enclosing-method-jni-type",
88+
"enclosing-method-name",
89+
"enclosing-method-signature",
8790
"final",
91+
"jni-signature",
8892
"name",
93+
"source-file-name",
8994
"static",
9095
"visibility",
91-
"jni-signature",
9296
};
9397

9498
internal static void LoadTypeAttributes (this JavaType type, XmlReader reader, params string [] otherAllowedAttributes)

0 commit comments

Comments
 (0)