-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Noah Andrews
authored
Jun 29, 2021
1 parent
e2f8c95
commit 8a57ac4
Showing
1 changed file
with
1 addition
and
75 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,75 +1 @@ | ||
# REV-Chromium-Builds | ||
|
||
## Check out Chromium | ||
Install the dependencies and download the code by following the instructions from sections _Install depot_tools_ and _Get the code_ found [here](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/android_build_instructions.md). | ||
|
||
## Set up the Chromium build configuration | ||
Run the following command in _~/chromium/src/_ to edit the build configuration: | ||
```bash | ||
gn args out/Default | ||
``` | ||
|
||
Add the following arguments to the build configuration (you'll need to specify the real keystore password): | ||
|
||
```bash | ||
target_os = "android" | ||
target_cpu = "arm" | ||
is_debug = false | ||
is_official_build = true | ||
use_errorprone_java_compiler = false | ||
disable_android_lint = true | ||
fieldtrial_testing_like_official_build = true | ||
is_component_build = false | ||
is_chrome_branded = false | ||
use_official_google_api_keys = false | ||
android_channel = "stable" | ||
system_webview_package_name = "com.revrobotics.webview" | ||
chrome_public_manifest_package = "com.revrobotics.chromium" | ||
android_keystore_path = "//../../Software-Update-Metadata/fdroid/AndroidAppKeystore.jks" | ||
android_keystore_name = "key" | ||
android_keystore_password = "INSERT_KEYSTORE_PASSWORD_HERE" | ||
``` | ||
|
||
Once you save and quit the editor, the targets for the files will be automatically updated. | ||
|
||
## Get the latest stable Chromium release for Android | ||
The latest versions for all OSs and channels of chromium can be found on [OmahaProxy](https://omahaproxy.appspot.com/). | ||
|
||
Look for the version where the OS is `android` and channel is `stable` or [query OmahaProxy](https://omahaproxy.appspot.com/all?os=android&channel=stable) to get a CSV of the version information. The version will be used to do a git tag checkout for the latest stable Chromium release for Android. | ||
|
||
Make sure you are in _~/chromium/src/_ and that the repository is up to date: | ||
```bash | ||
git rebase-update | ||
``` | ||
|
||
Checkout the latest stable version: | ||
|
||
```bash | ||
git checkout <version> | ||
``` | ||
|
||
Update the Android dependencies: | ||
|
||
```bash | ||
gclient sync | ||
``` | ||
|
||
## Build Chromium and Webview | ||
|
||
You'll need to have the [Software-Update-Metadata](https://github.com/REVrobotics/Software-Update-Metadata) repo cloned next to the `~/chromium` directory, | ||
with the F-Droid repo set up as described in [this README file](https://github.com/REVrobotics/Software-Update-Metadata/blob/master/fdroid/README.md) | ||
so that the Chromium build can access the `AndroidAppKeystore.jks` file. | ||
|
||
Make sure you are in _~/chromium/src/_ | ||
|
||
Build Chromium: | ||
|
||
```bash | ||
autoninja -C out/Default chrome_public_apk | ||
``` | ||
|
||
Build Webview: | ||
|
||
```bash | ||
autoninja -C out/Default system_webview_apk | ||
``` | ||
# REV-Software-Binaries |