Build system infrastructure to ensure fast and consistent builds across projects.
Intended to be used as a git submodule at /releng
in projects.
- Set up the repo:
$ 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
- Create
meson.build
containing:
project('my-project', 'vala', version: '1.0.0')
executable('hello', 'hello.vala', dependencies: dependency('glib-2.0'))
- Create
hello.vala
containing:
int main (string[] args) {
print ("Hello World from Vala!\n");
return 0;
}
- Build and run:
$ make
$ ./build/hello
Hello World from Vala!
$
$ ./configure --host=ios-arm64
$ make
$ ./configure --host=android-arm64
$ make
$ sudo apt-get install g++-arm-linux-gnueabihf
$ ./configure --host=arm-linux-gnueabihf
$ make