Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[java-interop] Selectively keep DylibMono for Xamarin.Android #473

Merged
merged 1 commit into from
Aug 16, 2019

Conversation

jonpryor
Copy link
Member

@jonpryor jonpryor commented Aug 16, 2019

Context: dotnet/android#3504
Context: dotnet/android#3223

When bumping xamarin-android/master to 2abfc1e, the build broke
because of commit 285a32b:

  In file included from /Users/vsts/agent/2.155.1/work/1/s/external/Java.Interop/src/java-interop/java-interop-mono.cc:2:
  ../../../../../external/Java.Interop/src/java-interop/java-interop-mono.h:10:11: fatal error: 'mono/metadata/assembly.h' file not found
          #include <mono/metadata/assembly.h>
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.

We need to continue supporting the DylibMono backend for integration
purposes (dotnet/android#3504) while also allowing for the
removal of DylibMono (dotnet/android#3223).

Attempt to support these divergent needs by replacing this:

#if defined (ANDROID) || defined (XAMARIN_ANDROID_DYLIB_MONO)

with this:

#if defined (XAMARIN_ANDROID_DYLIB_MONO)

removing the check for the ANDROID define.

This will allow dotnet/android#3223 to remove the
XAMARIN_ANDROID_DYLIB_MONO definition in order to introduce it's
desired behavior, removing DylibMono use.

This partially reverts commit 285a32b.

@jonpryor jonpryor force-pushed the jonp-revert-285a32b3 branch from 7da8ecd to 17788db Compare August 16, 2019 15:17
@jonpryor jonpryor changed the title [java-intero] Selectively keep DylibMono for Xamarin.Android [java-interop] Selectively keep DylibMono for Xamarin.Android Aug 16, 2019
Context: dotnet/android#3504
Context: dotnet/android#3223

When bumping xamarin-android/master to 2abfc1e, the build broke
because of commit 285a32b:

	  In file included from /Users/vsts/agent/2.155.1/work/1/s/external/Java.Interop/src/java-interop/java-interop-mono.cc:2:
	  ../../../../../external/Java.Interop/src/java-interop/java-interop-mono.h:10:11: fatal error: 'mono/metadata/assembly.h' file not found
	          #include <mono/metadata/assembly.h>
	                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
	  1 error generated.

We need to continue supporting the DylibMono backend for integration
purposes (dotnet/android#3504) *while also* allowing for the
*removal* of DylibMono (dotnet/android#3223).

Attempt to support these divergent needs by replacing this:

	#if defined (ANDROID) || defined (XAMARIN_ANDROID_DYLIB_MONO)

with this:

	#if defined (XAMARIN_ANDROID_DYLIB_MONO)

removing the check for the `ANDROID` define.

This will allow dotnet/android#3223 to *remove* the
`XAMARIN_ANDROID_DYLIB_MONO` definition in order to introduce it's
desired behavior, removing DylibMono use.

This partially reverts commit 285a32b.
@jonpryor jonpryor force-pushed the jonp-revert-285a32b3 branch from 17788db to 14858f7 Compare August 16, 2019 15:18
@jonpryor jonpryor merged commit 5fe28cd into dotnet:master Aug 16, 2019
@jonpryor jonpryor deleted the jonp-revert-285a32b3 branch August 16, 2019 15:56
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants