Skip to content

Commit cd751c9

Browse files
committed
Add verbose output
1 parent 6009ed6 commit cd751c9

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

build-tools/automation/azure-pipelines-oss.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ stages:
174174

175175
- template: yaml-templates/setup-ubuntu.yaml
176176

177+
- script: make prepare V=1 PREPARE_CI_PR=1 PREPARE_AUTOPROVISION=1 CONFIGURATION=$(XA.Build.Configuration)
178+
displayName: make prepare
179+
177180
- script: make jenkins V=1 PREPARE_CI_PR=1 PREPARE_AUTOPROVISION=1 CONFIGURATION=$(XA.Build.Configuration)
178181
displayName: make jenkins
179182

build-tools/automation/azure-pipelines.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,10 @@ stages:
436436
workingDirectory: $(System.DefaultWorkingDirectory)/xamarin-android
437437
displayName: make prepare-external-git-dependencies
438438

439+
- script: make prepare PREPARE_CI=1 PREPARE_AUTOPROVISION=1 CONFIGURATION=$(XA.Build.Configuration)
440+
workingDirectory: $(System.DefaultWorkingDirectory)/xamarin-android
441+
displayName: make prepare
442+
439443
- script: make jenkins V=1 PREPARE_CI=1 PREPARE_AUTOPROVISION=1 CONFIGURATION=$(XA.Build.Configuration)
440444
workingDirectory: $(System.DefaultWorkingDirectory)/xamarin-android
441445
displayName: make jenkins

build-tools/scripts/msbuild.mk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@ ifeq ($(MSBUILD),msbuild)
3737
export USE_MSBUILD = 1
3838
endif # $(MSBUILD) == msbuild
3939

40+
ifneq ($(V),0)
41+
MSBUILD_FLAGS += /v:diag
42+
endif # $(V) != 0
43+
4044
ifeq ($(USE_MSBUILD),1)
4145

4246
# $(call MSBUILD_BINLOG,name,msbuild=$(MSBUILD),outdir=Build)
4347
define MSBUILD_BINLOG
44-
$(if $(2),$(2),$(MSBUILD)) $(MSBUILD_FLAGS) /v:normal \
48+
$(if $(2),$(2),$(MSBUILD)) $(MSBUILD_FLAGS) \
4549
/binaryLogger:"$(dir $(realpath $(firstword $(MAKEFILE_LIST))))/bin/$(if $(3),$(3),Build)$(CONFIGURATION)/msbuild-`date +%Y%m%dT%H%M%S`-$(1).binlog"
4650
endef
4751

@@ -59,10 +63,6 @@ else # $(_CSC_EMITS_PDB) == ''
5963
MSBUILD_FLAGS += /p:_DebugFileExt=.mdb
6064
endif # $(_CSC_EMITS_PDB) == Pdb
6165

62-
ifneq ($(V),0)
63-
MSBUILD_FLAGS += /v:diag
64-
endif # $(V) != 0
65-
6666
# $(call MSBUILD_BINLOG,name,msbuild=$(MSBUILD))
6767
define MSBUILD_BINLOG
6868
$(if $(2),$(2),$(MSBUILD)) $(MSBUILD_FLAGS)

build-tools/xaprepare/xaprepare/Steps/Step_PrepareExternalJavaInterop.Windows.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ partial class Step_PrepareExternalJavaInterop
99
#pragma warning disable CS1998
1010
async Task<bool> ExecuteOSSpecific (Context context)
1111
{
12+
string javaInteropDir = context.Properties.GetRequiredValue (KnownProperties.JavaInteropFullPath);
13+
string projectPath = Path.Combine (javaInteropDir, "build-tools", "Java.Interop.BootstrapTasks", "Java.Interop.BootstrapTasks.csproj");
14+
var msbuild = new MSBuildRunner (context);
15+
bool result = await msbuild.Run (
16+
projectPath: projectPath,
17+
logTag: "java-interop-prepare",
18+
binlogName: "build-java-interop-prepare"
19+
);
20+
21+
if (!result) {
22+
Log.ErrorLine ("Failed to build java-interop-prepare");
23+
return false;
24+
}
1225
return true;
1326
}
1427
#pragma warning restore CS1998

0 commit comments

Comments
 (0)