1 ## Copyright 2013 Intel Corporation All Rights Reserved.
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.
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.
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
18 pkglib_LTLIBRARIES = test_setting.la
20 if SETTINGS_USE_GCC_SYMBOL_VISIBILITY
21 SETTINGS_PLUGIN_CXXFLAGS = \
23 -fvisibility-inlines-hidden
25 SETTINGS_PLUGIN_CXXFLAGS =
28 SETTINGS_PLUGIN_CPPFLAGS = \
29 -DTEST_SETTING_BUILDING_DLL \
30 -I$(top_srcdir)/include
31 SETTINGS_PLUGIN_LIBRARY = $(top_builddir)/lib/libsettings.la
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) \
39 $(LIBWEBSOCKETS_CFLAGS)
40 test_setting_la_CPPFLAGS = $(SETTINGS_PLUGIN_CPPFLAGS)
42 noinst_HEADERS = test_setting_api.hpp test_setting.hpp
44 noinst_PROGRAMS = settings_test
46 settings_test_SOURCES = settings_test.cpp
48 settings_test_LDFLAGS = $(BOOST_LDFLAGS)
50 settings_test_LDADD = \
52 # -lboost_unit_test_framework
54 settings_test_CPPFLAGS = \
55 $(LIBWEBSOCKETS_CFLAGS) \
57 -I$(top_srcdir)/include \
58 -DPLUGIN_DIR=\"$(top_builddir)/tests/\"
60 #TESTS = $(noinst_PROGRAMS)