Skip to content

Commit 8efc08b

Browse files
committed
Fixes after main merge
Still doesn't build, libunwind cmake fails, but we're a step closer.
1 parent 5ed6afb commit 8efc08b

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/Xamarin.Android.Build.Tasks/Tasks/GenerateJavaStubs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ IList<string> MergeManifest (NativeCodeGenState codeGenState, Dictionary<string,
355355
var tdCache = new TypeDefinitionCache ();
356356
(List<TypeDefinition> allJavaTypes, List<TypeDefinition> javaTypesForJCW) = ScanForJavaTypes (resolver, tdCache, assemblies, userAssemblies, useMarshalMethods);
357357
var jcwContext = new JCWGeneratorContext (arch, resolver, assemblies.Values, javaTypesForJCW, tdCache, useMarshalMethods);
358-
var jcwGenerator = new JCWGenerator (Log, jcwContext);
358+
var jcwGenerator = new JCWGenerator (Log, jcwContext, IntermediateOutputDirectory);
359359
bool success;
360360

361361
if (generateJavaCode) {

src/Xamarin.Android.Build.Tasks/Tasks/GeneratePackageManagerJava.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ void AddEnvironment ()
388388
Log,
389389
assemblyCount,
390390
uniqueAssemblyNames,
391-
EnsureCodeGenState (targetArch)
391+
EnsureCodeGenState (targetArch),
392+
mmTracingMode
392393
);
393394
} else {
394395
marshalMethodsAsmGen = new MarshalMethodsNativeAssemblyGenerator (

src/Xamarin.Android.Build.Tasks/Utilities/JCWGenerator.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ class JCWGenerator
4242
{
4343
readonly TaskLoggingHelper log;
4444
readonly JCWGeneratorContext context;
45+
readonly string intermediateOutputDirectory;
4546

4647
public MarshalMethodsClassifier? Classifier { get; private set; }
4748

48-
public JCWGenerator (TaskLoggingHelper log, JCWGeneratorContext context)
49+
public JCWGenerator (TaskLoggingHelper log, JCWGeneratorContext context, string intermediateOutputDirectory)
4950
{
5051
this.log = log;
5152
this.context = context;
53+
this.intermediateOutputDirectory = intermediateOutputDirectory;
5254
}
5355

5456
/// <summary>
@@ -88,7 +90,7 @@ public bool GenerateAndClassify (string androidSdkPlatform, string outputPath, s
8890
);
8991
}
9092

91-
MarshalMethodsClassifier MakeClassifier () => new MarshalMethodsClassifier (context.Arch, context.TypeDefinitionCache, context.Resolver, log);
93+
MarshalMethodsClassifier MakeClassifier () => new MarshalMethodsClassifier (context.Arch, context.TypeDefinitionCache, context.Resolver, intermediateOutputDirectory, log);
9294

9395
bool ProcessTypes (bool generateCode, string androidSdkPlatform, MarshalMethodsClassifier? classifier, string? outputPath, string? applicationJavaClass)
9496
{

0 commit comments

Comments
 (0)