-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Android Support: Exporting to Android Archive (AAR) #10271
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
dan-shaw
merged 15 commits into
microsoft:master
from
atkawa7:allen/feature/android-support
Apr 6, 2020
Merged
Changes from 4 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
fbbefac
added android triplets
atkawa7 73a42da
added android support to vcpkg
atkawa7 9180b99
added export directories to git ignore
atkawa7 188f55e
fix libraries naming
atkawa7 db08b93
added vckpg sources to visual studio project files
atkawa7 64493d2
rename file location
atkawa7 a0a58f4
issue with std::string fs:path copy initialization
atkawa7 1be40f4
format path on VStudio
atkawa7 6542bb8
fix checks format cannot work on fs::path
atkawa7 5abe619
support header only libraries
atkawa7 45c51b9
merge current master
atkawa7 a9e267c
support using architecture instead of triplets
atkawa7 2dc6600
added prefab support
atkawa7 58bda31
added debug logs and prefab debug flag
atkawa7 1e1ccd9
added support for empty packages i.e openssl
atkawa7 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| #pragma once | ||
|
|
||
| #include <vcpkg/dependencies.h> | ||
| #include <vcpkg/vcpkgpaths.h> | ||
|
|
||
| #include <vector> | ||
|
|
||
| namespace vcpkg::Export::Prefab | ||
| { | ||
| constexpr int kFragmentSize = 3; | ||
| struct Options | ||
| { | ||
| Optional<std::string> maybe_group_id; | ||
| Optional<std::string> maybe_artifact_id; | ||
| Optional<std::string> maybe_version; | ||
| Optional<std::string> maybe_min_sdk; | ||
| Optional<std::string> maybe_target_sdk; | ||
| Optional<std::string> maybe_ndk; | ||
| }; | ||
| struct NdkVersion | ||
| { | ||
| NdkVersion(int _major, int _minor, int _patch) : m_major{_major}, | ||
| m_minor{_minor}, | ||
| m_patch{_patch}{ | ||
| } | ||
| int major() { return this->m_major; } | ||
| int minor() { return this->m_minor; } | ||
| int patch() { return this->m_patch; } | ||
| std::string to_string(); | ||
| void to_string(std::string& out); | ||
|
|
||
| private: | ||
| int m_major; | ||
| int m_minor; | ||
| int m_patch; | ||
| }; | ||
|
|
||
| struct ABIMetadata | ||
| { | ||
| std::string abi; | ||
| int api; | ||
| int ndk; | ||
| std::string stl; | ||
| std::string to_string(); | ||
| }; | ||
|
|
||
| struct PlatformModuleMetadata | ||
| { | ||
| std::vector<std::string> export_libraries; | ||
| std::string library_name; | ||
| std::string to_json(); | ||
| }; | ||
|
|
||
| struct ModuleMetadata | ||
| { | ||
| std::vector<std::string> export_libraries; | ||
| std::string library_name; | ||
| PlatformModuleMetadata android; | ||
| std::string to_json(); | ||
| }; | ||
|
|
||
| struct PackageMetadata | ||
| { | ||
| std::string name; | ||
| int schema; | ||
| std::vector<std::string> dependencies; | ||
| std::string version; | ||
| std::string to_json(); | ||
| }; | ||
|
|
||
|
|
||
|
|
||
| void do_export(const std::vector<Dependencies::ExportPlanAction>& export_plan, | ||
| const VcpkgPaths& paths, | ||
| const Options& prefab_options); | ||
| Optional<std::string> find_ndk_version(const std::string &content); | ||
| Optional<NdkVersion> to_version(const std::string &version); | ||
| } | ||
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
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.
Uh oh!
There was an error while loading. Please reload this page.