Skip to content
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

Update Android_HowTo #1396

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion HOWTO_android.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,48 @@ is to be used in all cases below for `{gfxreconstruct_root}`.
git clone --recurse-submodules https://github.com/KhronosGroup/Vulkan-Samples.git
```

Alternatively, if this is not the first time the tree is cloned, simply enter
the folder containing the source and update to the latest, but also make sure
that the submodules are re-inited and updated (because additional submodules may
have been added).

```bash
cd Vulkan-Samples
git pull
git submodule init
git submodule update --recursive
```

### 3. Enter the Vulkan Samples source directory

```bash
cd Vulkan-Samples
```

### 4. Build the gradle files
### 4. Build the necessary Android files

To build/setup the Vulkan-Samples source for Android, follow the instructions in
[the README](https://github.com/KhronosGroup/Vulkan-Samples/blob/main/docs/build.adoc#android)
found in that GitHub repo.

Follow these instructions up until the instructions to activate the build using
Gradle, and then stop until GFXReconstruct has been enabled.

In a nutshell, the following command should be executed to generate the
necessary files, but it has been known to change:

#### Current Vulkan-Samples Android generation

On a clean tree, the first step is to generate the necessary Android files:

```bash
python3 scripts/generate.py android
```

#### Previous Vulkan-Samples Android generation

On some older versions of `Vulkan-Samples` the Android files were
generated using a different script:

```bash
./bldsys/scripts/generate_android_gradle.sh
Expand Down