Commit 6a31346
committed
[Java.Interop.Tools.Expressions] Add
Write an `Expression<T>` compiler which uses Cecil for codegen
and assembly writing!
Then updated jnimarshalmethod-gen to use it!
Testing this puppy:
% export PATH=$HOME/Developer/src/xamarin/xamarin-android/bin/Debug/dotnet:$PATH
% mkdir _x
% dotnet bin/Debug-net7.0/jnimarshalmethod-gen.dll \
bin/TestDebug-net7.0/Java.Interop.Export-Tests.dll \
-v --keeptemp \
--jvm /Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home/lib/jli/libjli.dylib \
-o _x \
-L bin/TestDebug-net7.0 \
-L ~/Developer/src/xamarin/xamarin-android/bin/Debug/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22422.12
First param is assembly to process; `Java.Interop.Export-Tests.dll`
is handy because that's what the `run-test-jnimarshal` target in
`Makefile` processes.
`-v` is verbose, `--keeptemp` is keep temporary files.
`--jvm PATH` is the path to the JVM library to load+use.
`-o DIR` is where to place output files; this will create
`_x/Java.Interop.Export-Tests.dll`.
`-L DIR` adds `DIR` to library resolution paths; this adds
`bin/TestDebug/net7.0` (dependencies of `Java.Interop.Export-Tests.dll`)
and `Microsoft.NETCore.App/7.0.0-rc.1.22422.12` (net7 libs).1 parent 9e858bb commit 6a31346
File tree
12 files changed
+1199
-81
lines changed- src
- Java.Interop.Export
- Java.Interop
- Java.Interop.Tools.Expressions
- Java.Interop.Tools.Expressions
- tests/Java.Interop.Tools.Expressions-Tests
- Java.Interop.Tools.ExpressionsTests
- tools/jnimarshalmethod-gen
12 files changed
+1199
-81
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
| |||
302 | 306 | | |
303 | 307 | | |
304 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
305 | 317 | | |
306 | 318 | | |
307 | 319 | | |
| |||
353 | 365 | | |
354 | 366 | | |
355 | 367 | | |
| 368 | + | |
| 369 | + | |
356 | 370 | | |
357 | 371 | | |
358 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
Lines changed: 8 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 87 | | |
102 | 88 | | |
103 | 89 | | |
| |||
277 | 263 | | |
278 | 264 | | |
279 | 265 | | |
| 266 | + | |
280 | 267 | | |
281 | 268 | | |
282 | 269 | | |
| |||
290 | 277 | | |
291 | 278 | | |
292 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
293 | 284 | | |
294 | 285 | | |
295 | 286 | | |
| |||
307 | 298 | | |
308 | 299 | | |
309 | 300 | | |
310 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
311 | 304 | | |
312 | 305 | | |
313 | 306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments