Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions build-tools/automation/azure-pipelines-oss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ stages:

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

- script: make prepare V=1 PREPARE_CI_PR=1 PREPARE_AUTOPROVISION=1 CONFIGURATION=$(XA.Build.Configuration)
displayName: make prepare

- script: make jenkins V=1 PREPARE_CI_PR=1 PREPARE_AUTOPROVISION=1 CONFIGURATION=$(XA.Build.Configuration)
displayName: make jenkins

Expand Down
4 changes: 4 additions & 0 deletions build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ stages:
workingDirectory: $(System.DefaultWorkingDirectory)/xamarin-android
displayName: make prepare-external-git-dependencies

- script: make prepare PREPARE_CI=1 PREPARE_AUTOPROVISION=1 CONFIGURATION=$(XA.Build.Configuration)
workingDirectory: $(System.DefaultWorkingDirectory)/xamarin-android
displayName: make prepare

- script: make jenkins V=1 PREPARE_CI=1 PREPARE_AUTOPROVISION=1 CONFIGURATION=$(XA.Build.Configuration)
workingDirectory: $(System.DefaultWorkingDirectory)/xamarin-android
displayName: make jenkins
Expand Down
10 changes: 5 additions & 5 deletions build-tools/scripts/msbuild.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,15 @@ ifeq ($(MSBUILD),msbuild)
export USE_MSBUILD = 1
endif # $(MSBUILD) == msbuild

ifneq ($(V),0)
MSBUILD_FLAGS += /v:diag
endif # $(V) != 0

ifeq ($(USE_MSBUILD),1)

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

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

ifneq ($(V),0)
MSBUILD_FLAGS += /v:diag
endif # $(V) != 0

# $(call MSBUILD_BINLOG,name,msbuild=$(MSBUILD))
define MSBUILD_BINLOG
$(if $(2),$(2),$(MSBUILD)) $(MSBUILD_FLAGS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ partial class Step_PrepareExternalJavaInterop
#pragma warning disable CS1998
async Task<bool> ExecuteOSSpecific (Context context)
{
string javaInteropDir = context.Properties.GetRequiredValue (KnownProperties.JavaInteropFullPath);
string projectPath = Path.Combine (javaInteropDir, "build-tools", "Java.Interop.BootstrapTasks", "Java.Interop.BootstrapTasks.csproj");
var msbuild = new MSBuildRunner (context);
bool result = await msbuild.Run (
projectPath: projectPath,
logTag: "java-interop-prepare",
binlogName: "build-java-interop-prepare"
);

if (!result) {
Log.ErrorLine ("Failed to build java-interop-prepare");
return false;
}
return true;
}
#pragma warning restore CS1998
Expand Down
2 changes: 1 addition & 1 deletion external/Java.Interop