### Initializing a New Project with Git Submodule (Shell) Source: https://github.com/frida/releng/blob/main/README.md This snippet demonstrates the initial setup steps for a new project, including initializing a Git repository, adding the `releng` submodule, copying essential Meson build scripts, and configuring `.gitignore` to exclude build and dependency directories. ```sh $ git init my-project $ cd my-project $ git submodule add https://github.com/frida/releng.git $ cp releng/meson-scripts/* . $ echo -e '/build/\n/deps/' > .gitignore ``` -------------------------------- ### Defining a Simple Vala Application (Vala) Source: https://github.com/frida/releng/blob/main/README.md This snippet provides a basic 'hello.vala' source file. It defines a `main` function that prints 'Hello World from Vala!' to the console and returns 0, serving as a minimal example for the project. ```vala int main (string[] args) { print ("Hello World from Vala!\n"); return 0; } ``` -------------------------------- ### Cross-Compiling for Raspberry Pi (Shell) Source: https://github.com/frida/releng/blob/main/README.md This snippet details the steps for cross-compiling the project for Raspberry Pi. It includes installing the `g++-arm-linux-gnueabihf` cross-compiler, then configuring with `--host=arm-linux-gnueabihf` and building with `make`. ```sh $ sudo apt-get install g++-arm-linux-gnueabihf $ ./configure --host=arm-linux-gnueabihf $ make ``` -------------------------------- ### Building and Running the Project (Shell) Source: https://github.com/frida/releng/blob/main/README.md This snippet illustrates how to build the project using `make` and then execute the compiled 'hello' application located in the 'build' directory, demonstrating the successful compilation and output. ```sh $ make $ ./build/hello Hello World from Vala! ``` -------------------------------- ### Configuring Meson Build File (Meson) Source: https://github.com/frida/releng/blob/main/README.md This snippet shows the basic `meson.build` configuration for a new project. It defines the project name, language (Vala), version, and an executable target named 'hello' from 'hello.vala', linking against the 'glib-2.0' dependency. ```meson project('my-project', 'vala', version: '1.0.0') executable('hello', 'hello.vala', dependencies: dependency('glib-2.0')) ``` -------------------------------- ### Cross-Compiling for iOS (Shell) Source: https://github.com/frida/releng/blob/main/README.md This snippet shows the commands to configure and build the project for iOS ARM64 architecture. It uses the `./configure` script with the `--host=ios-arm64` flag, followed by `make` to compile. ```sh $ ./configure --host=ios-arm64 $ make ``` -------------------------------- ### Cross-Compiling for Android (Shell) Source: https://github.com/frida/releng/blob/main/README.md This snippet provides the commands to configure and build the project for Android ARM64 architecture. It uses the `./configure` script with the `--host=android-arm64` flag, followed by `make` to compile. ```sh $ ./configure --host=android-arm64 $ make ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.