Skip to content

Conversation

@radekdoulik
Copy link
Member

This option makes preserving new marshal methods, generated by
jnimarshalmethod-gen.exe, optional in the linker.

It also introduces new JniMarshalMethods property to toggle building
with generated marshal methods and will be used by following
patches too. It defaults to False.

@radekdoulik radekdoulik requested a review from dellis1972 as a code owner May 29, 2018 21:23
@radekdoulik radekdoulik assigned jonpryor and unassigned jonpryor May 29, 2018
@radekdoulik radekdoulik requested a review from jonpryor May 30, 2018 05:46
<_InstantRunEnabled Condition=" '$(_InstantRunEnabled)' == '' ">False</_InstantRunEnabled>
<_AndroidBuildPropertiesCache>$(IntermediateOutputPath)build.props</_AndroidBuildPropertiesCache>

<JniMarshalMethods Condition=" '$(JniMarshalMethods)' == '' ">False</JniMarshalMethods>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By "convention" (mostly followed, but not everywhere), this property should begin with Android.

Additionally, this name doesn't convey intent. What about JNI Marshal Methods? Will this property eventually control generation as well as preservation, or just linker preservation?

Assuming we want it to control the entire jnimarshalmethod-gen.exe stack, I think we should call this $(AndroidGenerateJniMarshalMethods).

Whatever it's called, this property should also be documented in https://github.com/xamarin/xamarin-android/blob/master/Documentation/guides/BuildProcess.md.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated and added property description to the https://github.com/xamarin/xamarin-android/blob/master/Documentation/guides/BuildProcess.md. Also fixed small typo in there.

This option makes preserving new marshal methods, generated by
`jnimarshalmethod-gen.exe`, optional in the linker.

It also introduces new `JniMarshalMethods` property to toggle building
with generated marshal methods and will be used by following
patches. It defaults to *False*.
@radekdoulik radekdoulik force-pushed the pr-linker-optional-preserve-marshal-methods branch from 3d89331 to 61a8193 Compare May 30, 2018 15:01
@jonpryor jonpryor merged commit 106a621 into dotnet:master May 30, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 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