Tests: do not build test programs in release mode
[nautilus-actions.git] / src / test / Makefile.am
blob5f49c55ad495a1303f26d48f1a36d2859c6cbb19
1 # Nautilus-Actions
2 # A Nautilus extension which offers configurable context menu actions.
4 # Copyright (C) 2005 The GNOME Foundation
5 # Copyright (C) 2006, 2007, 2008 Frederic Ruaudel and others (see AUTHORS)
6 # Copyright (C) 2009, 2010, 2011 Pierre Wieser and others (see AUTHORS)
8 # This Program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; either version 2 of
11 # the License, or (at your option) any later version.
13 # This Program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public
19 # License along with this Library; see the file COPYING.  If not,
20 # write to the Free Software Foundation, Inc., 59 Temple Place,
21 # Suite 330, Boston, MA 02111-1307, USA.
23 # Authors:
24 #   Frederic Ruaudel <grumz@grumz.net>
25 #   Rodrigo Moya <rodrigo@gnome-db.org>
26 #   Pierre Wieser <pwieser@trychlos.org>
27 #   ... and many others (see AUTHORS)
29 # Test programs are only relevant for the maintainer and his own tests
30 # Do not build them in a release
32 if NA_MAINTAINER_MODE
34 noinst_PROGRAMS = \
35         test-reader                                                                                     \
36         test-iface                                                                                      \
37         test-parse-uris                                                                         \
38         test-virtuals                                                                           \
39         test-virtuals-without-test                                                      \
40         $(NULL)
42 AM_CPPFLAGS += \
43         -I $(top_srcdir)                                                                        \
44         -I $(top_srcdir)/src                                                            \
45         -DGNOMELOCALEDIR=\""$(datadir)/locale"\"                        \
46         -DPKGLIBDIR=\""$(pkglibdir)"\"                                          \
47         -DG_LOG_DOMAIN=\"${NA_LOGDOMAIN_TEST}\"                         \
48         $(NAUTILUS_ACTIONS_CFLAGS)                                                      \
49         $(NULL)
51 test_reader_SOURCES = \
52         test-reader.c                                                                           \
53         $(NULL)
55 test_reader_LDADD = \
56         $(top_builddir)/src/core/libna-core.la                          \
57         $(NAUTILUS_ACTIONS_LIBS)                                                        \
58         $(NULL)
60 test_iface_SOURCES = \
61         test-iface.c                                                                            \
62         test-iface-iface.c                                                                      \
63         test-iface-iface.h                                                                      \
64         test-iface-base.c                                                                       \
65         test-iface-base.h                                                                       \
66         test-iface-derived.c                                                            \
67         test-iface-derived.h                                                            \
68         $(NULL)
70 test_iface_LDADD = \
71         $(NAUTILUS_ACTIONS_LIBS)                                                        \
72         $(NULL)
74 if NA_MAINTAINER_MODE
75 noinst_PROGRAMS += test-module
76 pkglib_LTLIBRARIES = libtest_module_plugin.la
78 test_module_SOURCES = \
79         test-module.c                                                                           \
80         $(NULL)
82 test_module_LDADD = \
83         $(NAUTILUS_ACTIONS_LIBS)                                                        \
84         $(NULL)
86 libtest_module_plugin_la_SOURCES = \
87         test-module-plugin.c                                                            \
88         $(NULL)
90 libtest_module_plugin_la_LIBADD = \
91         $(NAUTILUS_ACTIONS_LIBS)                                                        \
92         $(NULL)
94 libtest_module_plugin_la_LDFLAGS = \
95         -module                                                                                         \
96         -no-undefined                                                                           \
97         -avoid-version                                                                          \
98         $(NULL)
99 endif
101 test_parse_uris_SOURCES = \
102         test-parse-uris.c                                                                       \
103         $(NULL)
105 test_parse_uris_LDADD = \
106         $(top_builddir)/src/core/libna-core.la                          \
107         $(NAUTILUS_ACTIONS_LIBS)                                                        \
108         $(NULL)
110 test_virtuals_SOURCES = \
111         test-virtuals.c                                                                         \
112         $(NULL)
114 test_virtuals_LDADD = \
115         $(NAUTILUS_ACTIONS_LIBS)                                                        \
116         $(NULL)
118 test_virtuals_without_test_SOURCES = \
119         test-virtuals-without-test.c                                            \
120         $(NULL)
122 test_virtuals_without_test_LDADD = \
123         $(NAUTILUS_ACTIONS_LIBS)                                                        \
124         $(NULL)
126 endif
127 #if NA_MAINTAINER_MODE