@@ -40,6 +40,13 @@ define RunRegistrar
4040
4141.libs/Microsoft.$(9 ) .registrar.$(10 ) .a: .libs/Microsoft.$(9 ) .registrar.$(10 ) .m .libs/Microsoft.$(9 ) .registrar.$(10 ) .h | .libs
4242 $$(Q_CC ) $$(CLANG ) -DDEBUG -g -gdwarf-2 $(6 ) -stdlib=libc++ -std=c++14 -x objective-c++ -o $$@ -c $$< -Wall -Wno-unguarded-availability-new -I$(TOP ) /runtime
43+
44+ .libs/Microsoft.$(9 ) .registrar.coreclr.$(10 ) %m .libs/Microsoft.$(9 ) .registrar.coreclr.$(10 ) %h: $(TOP ) /src/build/dotnet/$(1 ) /$(3 ) /Microsoft.$(9 ) .dll $(LOCAL_MTOUCH ) | .libs
45+ $$(Q_GEN ) $$(LOCAL_MTOUCH_COMMAND ) $$(MTOUCH_VERBOSITY ) --runregistrar:$$(abspath $$(basename $$@ ) .m) --sdkroot $$(XCODE_DEVELOPER_ROOT ) --sdk $(4 ) $$< --registrar:static --target-framework .NETCoreApp,Version=$(subst net,,$(DOTNET_TFM ) ) ,Profile=$(1 ) --abi $(2 ) --reference:$(DOTNET_BCL_DIR ) /System.Runtime.dll --reference:$(DOTNET_BCL_DIR ) /System.Runtime.InteropServices.dll --rid $(10 ) --xamarin-runtime CoreCLR
46+ $$(Q ) touch $$(basename $$@ ) .m $$(basename $$@ ) .h
47+
48+ .libs/Microsoft.$(9 ) .registrar.coreclr.$(10 ) .a: .libs/Microsoft.$(9 ) .registrar.coreclr.$(10 ) .m .libs/Microsoft.$(9 ) .registrar.$(10 ) .h | .libs
49+ $$(Q_CC ) $$(CLANG ) -DDEBUG -g -gdwarf-2 $(6 ) -stdlib=libc++ -std=c++14 -x objective-c++ -o $$@ -c $$< -Wall -Wno-unguarded-availability-new -I$(TOP ) /runtime
4350endef
4451$(eval $(call RunRegistrar,ios,x86_64,64,$(IOS_SDK_VERSION),iOS,$(iossimulator-x64_CFLAGS),,,iOS,iossimulator-x64))
4552$(eval $(call RunRegistrar,ios,arm64,64,$(IOS_SDK_VERSION),iOS,$(iossimulator-arm64_CFLAGS),,,iOS,iossimulator-arm64))
@@ -52,6 +59,7 @@ $(eval $(call RunRegistrar,maccatalyst,arm64,64,$(MACCATALYST_SDK_VERSION),MacCa
5259
5360TARGETS_DOTNET = \
5461 $(foreach platform,$(DOTNET_PLATFORMS_MTOUCH ) ,$(foreach rid,$(DOTNET_$(platform ) _RUNTIME_IDENTIFIERS ) ,$(DOTNET_DESTDIR ) /$($(rid ) _NUGET_RUNTIME_NAME) /runtimes/$(rid ) /native/Microsoft.$(platform ) .registrar.a) ) \
62+ $(foreach platform,$(DOTNET_PLATFORMS_MTOUCH ) ,$(foreach rid,$(DOTNET_$(platform ) _RUNTIME_IDENTIFIERS ) ,$(DOTNET_DESTDIR ) /$($(rid ) _NUGET_RUNTIME_NAME) /runtimes/$(rid ) /native/Microsoft.$(platform ) .registrar.coreclr.a) ) \
5563
5664TARGET_DIRS_DOTNET = \
5765 $(foreach platform,$(DOTNET_PLATFORMS_MTOUCH ) ,$(foreach rid,$(DOTNET_$(platform ) _RUNTIME_IDENTIFIERS ) ,$(DOTNET_DESTDIR ) /$($(rid ) _NUGET_RUNTIME_NAME) /runtimes/$(rid ) /native) ) \
@@ -67,6 +75,9 @@ $(TARGET_DIRS):
6775define InstallRegistrar
6876$(DOTNET_DESTDIR ) /$$($(2 ) _NUGET_RUNTIME_NAME) /runtimes/$(2 ) /native/Microsoft.$(1 ) .registrar.a: .libs/Microsoft.$(1 ) .registrar.$(rid ) .a | $(DOTNET_DESTDIR ) /$($(2 ) _NUGET_RUNTIME_NAME) /runtimes/$(2 ) /native
6977 $(Q ) $(CP ) $$< $$@
78+
79+ $(DOTNET_DESTDIR ) /$$($(2 ) _NUGET_RUNTIME_NAME) /runtimes/$(2 ) /native/Microsoft.$(1 ) .registrar.coreclr.a: .libs/Microsoft.$(1 ) .registrar.coreclr.$(rid ) .a | $(DOTNET_DESTDIR ) /$($(2 ) _NUGET_RUNTIME_NAME) /runtimes/$(2 ) /native
80+ $(Q ) $(CP ) $$< $$@
7081endef
7182
7283$(foreach platform,$(DOTNET_PLATFORMS_MTOUCH),$(foreach rid,$(DOTNET_$(platform)_RUNTIME_IDENTIFIERS),$(eval $(call InstallRegistrar,$(platform),$(rid)))))
0 commit comments