xamarin-macios/tools/mmp
Rolf Bjarne Kvinge f8314a435e
Add a [NativeName] attribute we can use to declare the native name for a type (enum/struct). (#14918)
We already have a few attributes that can specify the native name for a type, whenever the native name doesn't match the managed name:

* [Register ("DifferentClassName"): specifies the Objective-C class name
* [Native ("DifferentEnumName")]: specifies the Objective-C enum name (and also that it's a native-sized enum)
* [Protocol ("DifferentProtocolName")]: specifies the Objective-C protocol name
* [Category ("DifferentCategoryName")]: specifies the Objective-C category name

Unfortunately this leaves (at least) two cracks:

* Objective-C structs.
* Objective-C enums which aren't native-sized.

So I'm adding a [NativeName] attribute for this purpose, and updating numerous
types to specify the native name (either using an existing [Native] attribute
for enums that already have one, or by adding a new [NativeName] attribute).

The static registrar needs to know the native name for such types, in case
they appear as parameter types in function signatures.

This also allows us to simplify xtro a bit, to not have a separate map of
managed name given a native name, because we can now build that map
dynamically.
2022-05-09 22:16:17 +02:00
..
linker/MonoMac.Tuner Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
.gitignore [mtouch/mmp] Build and ship the partial static registrar for .NET. 2020-08-21 10:32:56 +02:00
Application.mmp.cs [mmp] Move mmp's GenerateMain to shared Target code. 2020-10-23 11:46:09 +02:00
Assembly.mmp.cs [mtouch/mmp] Share Assembly.CopyAssembly. (#9310) 2020-08-07 08:24:09 +02:00
Info-framework.plist.tmpl [mmp] Add support for creating an Info.plist when building a framework for the embeddinator. 2017-05-09 08:12:39 +02:00
Info.plist.tmpl Build mmp. 2016-04-24 14:47:26 -04:00
Makefile [tools] Make the TargetFramework.DotNet* variables version-agnostic. (#14669) 2022-04-06 21:33:46 +02:00
Target.mmp.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Tuning.mmp.cs [linker] Obsolete 'LinkerSafeAttribute' in favor of `AssemblyMetadata` (#11229) 2021-04-16 15:06:49 -04:00
aot.cs Xamarin.Mac native Apple Silicon targetting support (#10115) 2021-03-17 21:48:02 -04:00
config Add System.Net.Security.Native dllmap to mmp 2019-01-10 22:14:58 +01:00
config_mobile Add System.Net.Security.Native dllmap to mmp 2019-01-10 22:14:58 +01:00
driver.cs [tools] Unify Application.link_flags and Application.gcc_flags from mtouch and mmp into Application.CustomLinkFlags. (#13509) 2021-12-09 17:16:45 +01:00
machine.4_5.config Bump to mono/2018-04 (#3856) 2018-06-27 10:59:59 -04:00
mmp [mmp] Use relative path in mmp script. (#7909) 2020-02-25 06:57:15 +01:00
mmp.csproj Add a [NativeName] attribute we can use to declare the native name for a type (enum/struct). (#14918) 2022-05-09 22:16:17 +02:00
resolver.cs [mmp] Use the resolver (and configure it correctly) when using --runregistrar. (#11288) 2021-04-22 14:47:47 +02:00