File: include-libtcod-h

package info (click to toggle)
libtcod 1.18.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,464 kB
  • sloc: ansic: 48,535; cpp: 11,905; python: 4,840; makefile: 44; sh: 25
file content (34 lines) | stat: -rwxr-xr-x 859 bytes parent folder | download | duplicates (4)
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
26
27
28
29
30
31
32
33
34
#!/bin/sh

set -e

TMPDIR=$(mktemp -d)
trap "rm -rf $TMPDIR" EXIT
cd $TMPDIR

cat <<EOF > test-include-libtcod-h.c
#include <libtcod/libtcod.h>
int main () { return 0; }
EOF

cat <<EOF > test-include-libtcod-hpp.cc
#include <libtcod/libtcod.hpp>
int main () { return 0; }
EOF

cat <<EOF > test-include-libtcod-gui-hpp.cc
#include <libtcod/gui/gui.hpp>
int main () { return 0; }
EOF

cc -o test-include-libtcod-h test-include-libtcod-h.c `pkg-config --cflags --libs libtcod`
[ -x test-include-libtcod-h ]
./test-include-libtcod-h

c++ -o test-include-libtcod-hpp test-include-libtcod-hpp.cc `pkg-config --cflags --libs libtcod`
[ -x test-include-libtcod-hpp ]
./test-include-libtcod-hpp

c++ -o test-include-libtcod-gui-hpp test-include-libtcod-gui-hpp.cc `pkg-config --cflags --libs libtcod`
[ -x test-include-libtcod-gui-hpp ]
./test-include-libtcod-gui-hpp