Skip to content

Commit b34595e

Browse files
authored
1 parent 3ec9252 commit b34595e

File tree

13 files changed

+69
-6
lines changed

13 files changed

+69
-6
lines changed

Make.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,10 @@ MACOS_X64_SWIFTFLAGS=$(MACOS_COMMON_SWIFTFLAGS) -target x86_64-apple-macos$(MIN_
501501
MONO_PATH=$(TOP)/external/mono
502502
TOUCH_UNIT_PATH=$(TOP)/external/Touch.Unit
503503
XAMARIN_MACDEV_PATH=$(TOP)/external/Xamarin.MacDev
504-
MACCORE_PATH=$(TOP)/../maccore
505504
MONOTOUCH_DIALOG_PATH=$(TOP)/external/MonoTouch.Dialog
505+
API_TOOLS_PATH=$(TOP)/external/api-tools
506+
MACCORE_PATH=$(TOP)/../maccore
507+
ADR_PATH=$(TOP)/../macios-adr
506508

507509
MONO_PREFIX ?= /Library/Frameworks/Mono.framework/Versions/Current
508510
SYSTEM_MCS=$(MONO_PREFIX)/bin/mcs

mk/xamarin-reset.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ if [[ $DEPENDENCY_MODULE =~ [email protected] ]]; then
99
# git@ url
1010
DEPENDENCY_REMOTE=${DEPENDENCY_MODULE/git@github.com:/}
1111
DEPENDENCY_REMOTE=${DEPENDENCY_REMOTE%%/*}
12-
else
12+
elif [[ $DEPENDENCY_MODULE =~ https://github.com ]]; then
1313
# https:// url
1414
DEPENDENCY_REMOTE=${DEPENDENCY_MODULE/https:\/\/github.com\//}
1515
DEPENDENCY_REMOTE=${DEPENDENCY_REMOTE%%/*}
16+
elif [[ $DEPENDENCY_MODULE =~ [email protected] ]]; then
17+
DEPENDENCY_REMOTE=${DEPENDENCY_MODULE/https:\/\/devdiv@dev.azure.com\/devdiv\/}
18+
DEPENDENCY_REMOTE=${DEPENDENCY_REMOTE%%/_git*}
1619
fi
1720

1821
if test -d "$DEPENDENCY_PATH"; then

mk/xamarin.mk

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,22 @@ MONO_BRANCH := $(shell cd $(MONO_PATH) 2> /dev/null && git symbolic-ref --sho
77
endif
88

99
ifdef ENABLE_XAMARIN
10-
NEEDED_MACCORE_VERSION := 4ebacfa6fcb3737c9fcdd516501fc95582928fbe
10+
NEEDED_MACCORE_VERSION := 5805eb9adacd8f2aeb2852ffbc78b24fb4a43866
1111
NEEDED_MACCORE_BRANCH := main
1212

1313
MACCORE_DIRECTORY := maccore
1414
MACCORE_MODULE := [email protected]:xamarin/maccore.git
1515
MACCORE_VERSION := $(shell cd $(MACCORE_PATH) 2> /dev/null && git rev-parse HEAD 2> /dev/null)
1616
MACCORE_BRANCH := $(shell cd $(MACCORE_PATH) 2> /dev/null && git symbolic-ref --short HEAD 2> /dev/null)
17+
18+
19+
NEEDED_ADR_VERSION := d466eac70a9b1bba94c18c63e34e590c66f6d044
20+
NEEDED_ADR_BRANCH := main
21+
22+
ADR_DIRECTORY := macios-adr
23+
ADR_MODULE := https://[email protected]/devdiv/DevDiv/_git/macios-adr
24+
ADR_VERSION := $(shell cd $(ADR_PATH) 2> /dev/null && git rev-parse HEAD 2> /dev/null)
25+
ADR_BRANCH := $(shell cd $(ADR_PATH) 2> /dev/null && git symbolic-ref --short HEAD 2> /dev/null)
1726
endif
1827

1928
# Available versions can be seen here:
@@ -103,5 +112,10 @@ $(MACCORE_PATH):
103112
$(Q) git clone --recursive $(MACCORE_MODULE) $(MACCORE_PATH)
104113
$(Q) $(MAKE) reset-maccore
105114

115+
$(ADR_PATH):
116+
$(Q) git clone --recursive $(ADR_MODULE) $(ADR_PATH)
117+
$(Q) $(MAKE) reset-adr
118+
106119
$(eval $(call CheckVersionTemplate,maccore,MACCORE))
120+
$(eval $(call CheckVersionTemplate,macios-adr,ADR))
107121
endif

src/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,16 +408,16 @@ $(DOTNET_DESTDIR)/$($(2)_NUGET_REF_NAME)/ref/$(DOTNET_TFM)/Microsoft.$(1).xml: $
408408

409409
$($(2)_DOTNET_BUILD_DIR)/doc/Microsoft.$(1).xml: $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).xml $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).dll build/.build-adr-stamp | $($(2)_DOTNET_BUILD_DIR)/doc
410410
ifdef ENABLE_XAMARIN
411-
$(Q) $(MAKE) run -C $(MACCORE_PATH)/tools/apple-doc-reader ASSEMBLY="$(abspath $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).dll)" INPUT="$(abspath $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).xml)" OUTPUT="$(abspath $$@)"
411+
$(Q) $(MAKE) run -C $(ADR_PATH) ASSEMBLY="$(abspath $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).dll)" INPUT="$(abspath $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).xml)" OUTPUT="$(abspath $$@)"
412412
else
413413
$$(Q) $$(CP) $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).xml $$@
414414
endif
415415
endef
416416

417417
build/.build-adr-stamp:
418418
ifdef ENABLE_XAMARIN
419-
$(Q) $(MAKE) build -C $(MACCORE_PATH)/tools/apple-doc-reader
420-
$(Q) $(MAKE) create -C $(MACCORE_PATH)/tools/apple-doc-reader
419+
$(Q) $(MAKE) build -C $(ADR_PATH)
420+
$(Q) $(MAKE) create -C $(ADR_PATH)
421421
endif
422422
$(Q) touch $@
423423

tools/devops/automation/build-pipeline.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ resources:
150150
ref: refs/heads/main
151151
endpoint: xamarin
152152

153+
- repository: macios-adr
154+
type: git
155+
name: macios-adr
156+
ref: refs/heads/main
157+
153158
- repository: CustomPipelineTemplates
154159
type: git
155160
name: 1ESPipelineTemplates/MicroBuildTemplate
@@ -220,6 +225,7 @@ extends:
220225
exclude:
221226
- repository: yaml-templates
222227
- repository: sdk-insertions
228+
- repository: macios-adr # macios-adr has it's own build pipeline and should not be included in the source analysis
223229
stages:
224230
- template: templates/main-stage.yml
225231
parameters:

tools/devops/automation/build-pull-request.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ resources:
141141
ref: refs/heads/main
142142
endpoint: xamarin
143143

144+
- repository: macios-adr
145+
type: git
146+
name: macios-adr
147+
ref: refs/heads/main
148+
144149
- repository: CustomPipelineTemplates
145150
type: git
146151
name: 1ESPipelineTemplates/MicroBuildTemplate
@@ -205,6 +210,7 @@ extends:
205210
exclude:
206211
- repository: yaml-templates
207212
- repository: sdk-insertions
213+
- repository: macios-adr # macios-adr has it's own build pipeline and should not be included in the source analysis
208214
stages:
209215
- template: templates/main-stage.yml
210216
parameters:

tools/devops/automation/run-post-ci-build-vs-insertion.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ extends:
7676
exclude:
7777
- repository: yaml-templates
7878
- repository: sdk-insertions
79+
- repository: macios-adr # macios-adr has it's own build pipeline and should not be included in the source analysis
7980
stages:
8081
- template: templates/release/vs-insertion-prep.yml
8182
parameters:

tools/devops/automation/templates/common/checkout.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ steps:
3535
persistCredentials: true # hugely important, else there are some scripts that check a single file from maccore that will fail
3636
fetchTags: false
3737

38+
- checkout: macios-adr
39+
clean: true
40+
fetchDepth: 0
41+
persistCredentials: true
42+
fetchTags: false
43+
3844
- checkout: yaml-templates
3945
clean: true
4046
fetchTags: false

tools/devops/automation/templates/pipelines/api-diff-pipeline.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ resources:
5050
ref: refs/heads/main
5151
endpoint: xamarin
5252

53+
- repository: macios-adr
54+
type: git
55+
name: macios-adr
56+
ref: refs/heads/main
57+
5358
variables:
5459
- template: ../variables/common.yml
5560
- name: DisablePipelineConfigDetector

tools/devops/automation/templates/pipelines/build-pipeline.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ resources:
155155
ref: refs/heads/main
156156
endpoint: xamarin
157157

158+
- repository: macios-adr
159+
type: git
160+
name: macios-adr
161+
ref: refs/heads/main
162+
158163
variables:
159164
- ${{ if eq(parameters.isPR, false) }}:
160165
- ${{ if contains(variables['Build.DefinitionName'], 'private') }}:

0 commit comments

Comments
 (0)