File: build

package info (click to toggle)
libopenhmd 0.3.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 836 kB
  • sloc: ansic: 10,881; makefile: 109; sh: 18
file content (23 lines) | stat: -rwxr-xr-x 375 bytes parent folder | download | duplicates (3)
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
exec 2>&1
set -u
set -x

cd "$AUTOPKGTEST_TMP"
cat > example.c <<'EOF'
/* A very much simplified version of examples/simple/simple.c */
#include <openhmd.h>

int main(void)
{
    ohmd_context *ctx = ohmd_ctx_create();
    ohmd_ctx_destroy(ctx);
    return 0;
}
EOF

gcc -o example example.c $(pkg-config --cflags --libs openhmd)
test -x ./example
./example