Commit 168c94d
authored
[build] Allow overriding Cecil location (dotnet#328)
There is a philosophically confusing question due to the interaction
between the Java.Interop, xamarin-android, and mono repos:
Which repo "owns" Cecil?
The Java.Interop repo has a Cecil submodule.
The mono repo has a Cecil submodule. (*Two*, if you count the indirect
one from the Linker submodule, but that shouldn't be used.)
The xamarin-android repo references both Java.Interop & mono.
If we have a fix in Cecil, what all needs bumping?
A present, the answer is *everything*, because the mono reference is
included into a variety of mono-built utilities (*as source*, not an
assembly), while the Java.Interop reference built into
`Xamarin.Android.Cecil.dll` and used by the Xamarin.Android build
process.
This is somewhat confusing, and means that more work needs to be done
to apply fixes everywhere.
Try to simplify things by adding a new `$(CecilSourceDirectory)`
MSBuild property to `Configuration.props`. The intent is to allow a
xamarin-android checkout to *override* `$(CecilSourceDirectory)` so
that the Java.Interop build will the *mono* reference, thus permitting
a degree of consistency and understanding not previously available.
Thus, which repo "owns" Cecil? The mono repo will; the Java.Interop
reference will be ignored *when building from xamarin-android*.1 parent ca27edd commit 168c94d
File tree
3 files changed
+9
-4
lines changed- src/Xamarin.Android.Cecil
3 files changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
0 commit comments