blob: e2796b667d431c08a2a7ce431a1fce900e7d7d83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
set -e
cd "${AUTOPKGTEST_TMP:-/tmp}"
mkdir testproject
cd testproject
cat >meson.build <<EOF
project('crosstest', 'c')
executable('demo', 'main.c')
EOF
cat >main.c <<EOF
#include<stdio.h>
int main(int argc, char **argv) {
printf("Hello there.\n");
return 0;
}
EOF
mkdir build
cd build
/usr/share/meson/debcrossgen --arch armhf -o cross-file.txt
meson --cross-file cross-file.txt ..
ninja
|