-
Notifications
You must be signed in to change notification settings - Fork 564
[build] Add make jenkins target.
#116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| # $(ALL_API_LEVELS) and $(ALL_FRAMEWORKS) must be kept in sync w/ each other | ||
| ALL_API_LEVELS = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ||
| # this was different when API Level 21 was "L". Same could happen in the future. | ||
| ALL_PLATFORM_IDS = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ||
| # supported api levels | ||
| ALL_FRAMEWORKS = _ _ _ _ _ _ _ _ _ v2.3 _ _ _ _ v4.0.3 v4.1 v4.2 v4.3 v4.4 v4.4.87 v5.0 v5.1 v6.0 v7.0 | ||
| API_LEVELS = 10 15 16 17 18 19 20 21 22 23 24 | ||
| STABLE_API_LEVELS = 10 15 16 17 18 19 20 21 22 23 | ||
|
|
||
| FRAMEWORKS = $(foreach a, $(API_LEVELS), $(word $(a),$(ALL_FRAMEWORKS))) | ||
| STABLE_FRAMEWORKS = $(foreach a, $(STABLE_API_LEVELS), $(word $(a),$(ALL_FRAMEWORKS))) | ||
| PLATFORM_IDS = $(foreach a, $(API_LEVELS), $(word $(a),$(ALL_PLATFORM_IDS))) | ||
|
|
||
| ALL_JIT_ABIS = \ | ||
| armeabi \ | ||
| armeabi-v7a \ | ||
| arm64-v8a \ | ||
| x86 \ | ||
| x86_64 | ||
|
|
||
| ALL_HOST_ABIS = \ | ||
| $(shell uname) \ | ||
| mxe-Win64 | ||
|
|
||
|
|
||
| _space := | ||
| _space += | ||
|
|
||
| # usage: $(call join-with,SEPARATOR,LIST) | ||
| # Joins elements of LISt with SEPARATOR. | ||
| join-with = $(subst $(_space),$(1),$(strip $(2))) | ||
|
|
||
|
|
||
| _MSBUILD_ARGS = \ | ||
| /p:AndroidSupportedTargetJitAbis=$(call join-with,:,$(ALL_JIT_ABIS)) \ | ||
| /p:AndroidSupportedHostJitAbis=$(call join-with,:,$(ALL_HOST_ABIS)) | ||
|
|
||
| TASK_ASSEMBLIES = \ | ||
| bin/Debug/lib/xbuild/Xamarin/Android/Xamarin.Android.Build.Tasks.dll \ | ||
| bin/Release/lib/xbuild/Xamarin/Android/Xamarin.Android.Build.Tasks.dll | ||
|
|
||
| RUNTIME_LIBRARIES = \ | ||
| $(ALL_JIT_ABIS:%=bin/Debug/lib/xbuild/Xamarin/Android/lib/%/libmonosgen-2.0.so) \ | ||
| $(ALL_JIT_ABIS:%=bin/Release/lib/xbuild/Xamarin/Android/lib/%/libmonosgen-2.0.so) | ||
|
|
||
| FRAMEWORK_ASSEMBLIES = \ | ||
| $(FRAMEWORKS:%=bin/Debug/lib/xbuild-frameworks/MonoAndroid/%/Mono.Android.dll) \ | ||
| $(FRAMEWORKS:%=bin/Release/lib/xbuild-frameworks/MonoAndroid/%/Mono.Android.dll) | ||
|
|
||
| leeroy jenkins: prepare $(RUNTIME_LIBRARIES) $(TASK_ASSEMBLIES) $(FRAMEWORK_ASSEMBLIES) | ||
|
|
||
| $(TASK_ASSEMBLIES): bin/%/lib/xbuild/Xamarin/Android/Xamarin.Android.Build.Tasks.dll: | ||
| $(MSBUILD) /p:Configuration=$* $(_MSBUILD_ARGS) | ||
|
|
||
| $(FRAMEWORK_ASSEMBLIES): | ||
| $(foreach a, $(API_LEVELS), \ | ||
| $(MSBUILD) src/Mono.Android/Mono.Android.csproj /p:Configuration=Debug $(_MSBUILD_ARGS) /p:AndroidApiLevel=$(a) /p:AndroidFrameworkVersion=$(word $(a), $(ALL_FRAMEWORKS)); \ | ||
| $(MSBUILD) src/Mono.Android/Mono.Android.csproj /p:Configuration=Release $(_MSBUILD_ARGS) /p:AndroidApiLevel=$(a) /p:AndroidFrameworkVersion=$(word $(a), $(ALL_FRAMEWORKS)); ) | ||
|
|
||
| $(RUNTIME_LIBRARIES): | ||
| $(MSBUILD) /p:Configuration=Debug $(_MSBUILD_ARGS) | ||
| $(MSBUILD) /p:Configuration=Release $(_MSBUILD_ARGS) | ||
Submodule Java.Interop
updated
from 16c87f to 4df1e9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need anything below 9 here?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for the same reason that
$(ALL_FRAMEWORKS)has a bunch of-values.That reason being that
$(FRAMEWORKS)and others use the $(word n,text) function, and $(word) requires 1-based values. If$(ALL_API_LEVELS)doesn't have 1..9, then$(word 10, $(ALL_API_LEVELS)won't be 10, which means$(word 10, $(ALL_FRAMEWORKS)won't bev2.3, which greatly hampers the ability, within make, to associate those values.This might be a sign that this associate shouldn't be done within Make; perhaps it should be done within
Mono.Android.targets? I'm not certain how that would work either.