File: includetest.sh

package info (click to toggle)
libvncserver 0.9.14%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,108 kB
  • sloc: ansic: 43,420; perl: 318; python: 80; sh: 51; makefile: 18
file content (25 lines) | stat: -rwxr-xr-x 385 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
24
25
#!/bin/sh
#
# This tests if using the **installed** headers works.
#

# expects install prefix like /usr as an argument
PREFIX=$1
CMAKE_MAKE_PROGRAM=$2

TMPDIR=$(mktemp -d)

DESTDIR="$TMPDIR" $CMAKE_MAKE_PROGRAM install

echo \
"
#include <rfb/rfb.h>
#include <rfb/rfbclient.h>

int main()
{
    return 0;
}
" > "$TMPDIR"/includetest.c

cc -I "$TMPDIR/$PREFIX" "$TMPDIR"/includetest.c