Skip to content
Merged
Show file tree
Hide file tree
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
31 changes: 31 additions & 0 deletions .agents/skills/android/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Build for Android
description: Instructions for building for Android
---


# Build instructions


To build the project for Android, run the following command from the root of the repository:


```
scripts/android.py
```


# Requirements for running the build script

1. Make sure the `ANDROID_HOME` environment variable is set. If it's not set,
then set it to the default location based on the current operating system.


2. Make sure the `ANDROID_NDK_HOME` environment variable is set. Verify that it's set to NDK version 29 or newer. If it's not set, use the latest NDK version from the $ANDROID_HOME location, but make sure it satisfies the minimum NDK version required.



3. Use CMake and Ninja from the Android SDK. Make sure they are available in $PATH. Use the `bin/` subdirectory of the CMake package from Android SDK. Make sure the CMake package you are using is version 3.22.1 or newer.

THe CMake package inside Android SDK also contains a `ninja` binary next to the `cmake` binary, so you don't need to do anything other than adding that directory to PATH.

36 changes: 36 additions & 0 deletions .agents/skills/linux/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Build and test for Linux
description: Instructions for building and testing for Android
---

# Prerequisites for everything

You must be on a Linux host. If you are on a different host, you cannot build for Linux. Check the current host OS.

If the current host is not Linux, do not proceed. Tell the user that you cannot build for Linux from the current host OS.



# Build and test instructions


To build the project and run the tests, run the following command from the root of the repository:

```
./scripts/github_ci_linux.py
```


# Requirements for running the builds

1. Use CMake and Ninja from the Android SDK. Make sure they are available in $PATH. Use the `bin/` subdirectory of the CMake package from Android SDK. Make sure the CMake package you are using is version 3.22.1 or newer.

The CMake package inside Android SDK also contains a `ninja` binary next to the `cmake` binary, so you don't need to do anything other than adding that directory to PATH.

You will find Android SDK using the ANDROID_HOME environment variable. If it's not set, set it to the default location for the current operating system.






Loading