Compile adapter test/example only if the required headers are available (fixes #391915).
[platform/upstream/gstreamer.git] / tests / examples / Makefile.am
1 if GST_DISABLE_LOADSAVE
2 GST_LOADSAVE_DIRS = 
3 else
4 GST_LOADSAVE_DIRS = xml typefind
5 endif
6
7 if GST_DISABLE_PARSE
8 GST_PARSE_DIRS = 
9 else
10 GST_PARSE_DIRS = launch
11 endif
12
13 # adapter test needs sys/times.h and unistd.h
14 if HAVE_SYS_TIMES_H_AND_UNISTD_H
15   ADAPTER_TEST_DIR = adapter
16 else
17   ADAPTER_TEST_DIR =
18 endif
19
20 always_dirs = \
21         controller \
22         helloworld \
23         manual     \
24         metadata   \
25         queue
26
27 #appreader
28 #cutter
29 #events
30 #helloworld2
31 #launch
32 #manual
33 #mixer
34 #pingpong
35 #plugins
36 #pwg
37 #queue2
38 #queue3
39 #queue4
40 #retag
41 #thread
42
43 SUBDIRS =                               \
44         $(always_dirs)                  \
45         $(ADAPTER_TEST_DIR)             \
46         $(GST_PARSE_DIRS)               \
47         $(GST_LOADSAVE_DIRS)
48
49 DIST_SUBDIRS = $(always_dirs) adapter xml typefind launch