TIVI-1924: Initial commit of IVI settings daemon.
[profile/ivi/settings-daemon.git] / tests / Makefile.am
1 ## Copyright 2013 Intel Corporation All Rights Reserved.
2 ##
3 ## This library is free software; you can redistribute it and/or
4 ## modify it under the terms of the GNU Lesser General Public
5 ## License as published by the Free Software Foundation;
6 ## version 2.1 of the License.
7 ##
8 ## This library is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 ## Lesser General Public License for more details.
12 ##
13 ## You should have received a copy of the GNU Lesser General Public
14 ## License along with this library; if not, write to the Free Software
15 ## Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 ## Boston, MA  02110-1301  USA
17
18 pkglib_LTLIBRARIES       = test_setting.la
19
20 if SETTINGS_USE_GCC_SYMBOL_VISIBILITY
21   SETTINGS_PLUGIN_CXXFLAGS =            \
22         -fvisibility=hidden             \
23         -fvisibility-inlines-hidden
24 else
25   SETTINGS_PLUGIN_CXXFLAGS =
26 endif
27
28 SETTINGS_PLUGIN_CPPFLAGS =              \
29         -DTEST_SETTING_BUILDING_DLL     \
30         -I$(top_srcdir)/include
31 SETTINGS_PLUGIN_LIBRARY = $(top_builddir)/lib/libsettings.la
32
33 test_setting_la_SOURCES  = test_setting.cpp
34 test_setting_la_LIBADD   = $(SETTINGS_PLUGIN_LIBRARY)
35 test_setting_la_LDFLAGS  = -no-undefined -module -avoid-version
36 test_setting_la_CXXFLAGS =              \
37         $(SETTINGS_PLUGIN_CXXFLAGS)     \
38         $(JSON_GLIB_CFLAGS)             \
39         $(LIBWEBSOCKETS_CFLAGS)
40 test_setting_la_CPPFLAGS = $(SETTINGS_PLUGIN_CPPFLAGS)
41
42 noinst_HEADERS = test_setting_api.hpp test_setting.hpp
43
44 noinst_PROGRAMS = settings_test
45
46 settings_test_SOURCES = settings_test.cpp
47
48 settings_test_LDFLAGS = $(BOOST_LDFLAGS)
49
50 settings_test_LDADD =                           \
51         $(LIBWEBSOCKETS_LIBS)
52 #       -lboost_unit_test_framework
53
54 settings_test_CPPFLAGS =                        \
55         $(LIBWEBSOCKETS_CFLAGS)                 \
56         -I$(top_srcdir)/src                     \
57         -I$(top_srcdir)/include                 \
58         -DPLUGIN_DIR=\"$(top_builddir)/tests/\"
59
60 #TESTS = $(noinst_PROGRAMS)