1 ACLOCAL_AMFLAGS = -I m4
3 EXTRA_DIST = LICENSE LICENSE_dbus_patch LICENSE_MurmurHash
7 -include $(top_builddir)/build-aux/config.h \
9 -I$(top_srcdir)/src/test \
21 # Library interface (not package version!)
22 LIBCOMMONAPI_DBUS_CURRENT=2
23 LIBCOMMONAPI_DBUS_REVISION=0
24 LIBCOMMONAPI_DBUS_AGE=0
26 # ------------------------------------------------------------------------------
27 lib_LTLIBRARIES += libmurmurhash-internal.la
29 libmurmurhash_internal_la_SOURCES = \
30 src/murmurhash/MurmurHash3.h \
31 src/murmurhash/MurmurHash3.cpp
33 # ------------------------------------------------------------------------------
34 lib_LTLIBRARIES += libCommonAPI-DBus.la
36 libCommonAPI_DBus_la_SOURCES = \
37 src/CommonAPI/DBus/DBusAddressTranslator.cpp \
38 src/CommonAPI/DBus/DBusConnection.cpp \
39 src/CommonAPI/DBus/DBusDaemonProxy.cpp \
40 src/CommonAPI/DBus/DBusError.cpp \
41 src/CommonAPI/DBus/DBusFunctionalHash.cpp \
42 src/CommonAPI/DBus/DBusInputStream.cpp \
43 src/CommonAPI/DBus/DBusMessage.cpp \
44 src/CommonAPI/DBus/DBusObjectManager.cpp \
45 src/CommonAPI/DBus/DBusOutputStream.cpp \
46 src/CommonAPI/DBus/DBusProxyBase.cpp \
47 src/CommonAPI/DBus/DBusProxy.cpp \
48 src/CommonAPI/DBus/DBusFactory.cpp \
49 src/CommonAPI/DBus/DBusRuntime.cpp \
50 src/CommonAPI/DBus/DBusServiceRegistry.cpp \
51 src/CommonAPI/DBus/DBusServiceStatusEvent.cpp \
52 src/CommonAPI/DBus/DBusStubAdapter.cpp
54 libCommonAPI_DBus_la_LIBADD = \
55 libmurmurhash-internal.la \
57 libCommonAPI_DBus_la_LDFLAGS = \
59 -version-info ${LIBCOMMONAPI_DBUS_CURRENT}:${LIBCOMMONAPI_DBUS_REVISION}:${LIBCOMMONAPI_DBUS_AGE}
61 CommonAPI_DBus_includedir=$(includedir)/CommonAPI-${VERSION}/CommonAPI/DBus
62 CommonAPI_DBus_include_HEADERS = \
63 src/CommonAPI/DBus/DBusAddressTranslator.h \
64 src/CommonAPI/DBus/DBusAttribute.h \
65 src/CommonAPI/DBus/DBusConnection.h \
66 src/CommonAPI/DBus/DBusDaemonProxy.h \
67 src/CommonAPI/DBus/DBusError.h \
68 src/CommonAPI/DBus/DBusEvent.h \
69 src/CommonAPI/DBus/DBusFunctionalHash.h \
70 src/CommonAPI/DBus/DBusHelper.h \
71 src/CommonAPI/DBus/DBusInputStream.h \
72 src/CommonAPI/DBus/DBusMessage.h \
73 src/CommonAPI/DBus/DBusMultiEvent.h \
74 src/CommonAPI/DBus/DBusObjectManager.h \
75 src/CommonAPI/DBus/DBusOutputStream.h \
76 src/CommonAPI/DBus/DBusProxyBase.h \
77 src/CommonAPI/DBus/DBusProxy.h \
78 src/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.h \
79 src/CommonAPI/DBus/DBusProxyConnection.h \
80 src/CommonAPI/DBus/DBusFactory.h \
81 src/CommonAPI/DBus/DBusProxyHelper.h \
82 src/CommonAPI/DBus/DBusRuntime.h \
83 src/CommonAPI/DBus/DBusSerializableArguments.h \
84 src/CommonAPI/DBus/DBusServiceRegistry.h \
85 src/CommonAPI/DBus/DBusServiceStatusEvent.h \
86 src/CommonAPI/DBus/DBusStubAdapter.h \
87 src/CommonAPI/DBus/DBusStubAdapterHelper.h \
88 src/CommonAPI/DBus/DBusUtils.h
90 pkgconfigdir = ${libdir}/pkgconfig
91 pkgconfig_DATA = CommonAPI-DBus.pc
93 # ------------------------------------------------------------------------------
96 TestInterfaceSources = \
97 src/test/commonapi/tests/DerivedTypeCollection.cpp \
98 src/test/commonapi/tests/TestInterfaceDBusProxy.cpp \
99 src/test/commonapi/tests/TestInterfaceDBusStubAdapter.cpp \
100 src/test/commonapi/tests/TestInterfaceStubDefault.cpp \
101 src/test/fakeLegacyService/fake/legacy/service/LegacyInterfaceDBusProxy.cpp
105 DBusServiceRegistryTest \
107 DBusAddressTranslatorTest \
108 DBusInputStreamTest \
109 DBusOutputStreamTest \
114 DBusVariantOutputStreamTest \
115 DBusDaemonProxyTest \
116 DBusCommunicationTest \
117 DBusMultipleConnectionTest \
121 TESTS = ${check_PROGRAMS}
122 LDADD_FOR_GTEST = libCommonAPI-DBus.la ${GTEST_LIBS} ${LDADD}
124 DBusServiceRegistryTest_SOURCES = \
125 src/test/DBusServiceRegistryTest.cpp \
126 ${TestInterfaceSources}
127 DBusServiceRegistryTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
128 DBusServiceRegistryTest_CXXFLAGS = ${GTEST_CXXFLAGS}
129 DBusServiceRegistryTest_LDADD = ${LDADD_FOR_GTEST}
131 DBusAddressTranslatorTest_SOURCES = \
132 src/test/DBusAddressTranslatorTest.cpp \
133 ${TestInterfaceSources}
134 DBusAddressTranslatorTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
135 DBusAddressTranslatorTest_CXXFLAGS = ${GTEST_CXXFLAGS}
136 DBusAddressTranslatorTest_LDADD = ${LDADD_FOR_GTEST}
138 DBusConnectionTest_SOURCES = src/test/DBusConnectionTest.cpp
139 DBusConnectionTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
140 DBusConnectionTest_CXXFLAGS = ${GTEST_CXXFLAGS}
141 DBusConnectionTest_LDADD = ${LDADD_FOR_GTEST}
143 DBusTypeStreamTest_SOURCES = src/test/DBusTypeStreamTest.cpp
144 DBusTypeStreamTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
145 DBusTypeStreamTest_CXXFLAGS = ${GTEST_CXXFLAGS}
146 DBusTypeStreamTest_LDADD = ${LDADD_FOR_GTEST}
148 DBusVariantOutputStreamTest_SOURCES = src/test/DBusVariantOutputStreamTest.cpp
149 DBusVariantOutputStreamTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
150 DBusVariantOutputStreamTest_CXXFLAGS = ${GTEST_CXXFLAGS}
151 DBusVariantOutputStreamTest_LDADD = ${LDADD_FOR_GTEST}
153 DBusBenchmarkingTest_SOURCES = src/test/DBusBenchmarkingTest.cpp
154 DBusBenchmarkingTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
155 DBusBenchmarkingTest_CXXFLAGS = ${GTEST_CXXFLAGS}
156 DBusBenchmarkingTest_LDADD = ${LDADD_FOR_GTEST}
158 DBusCommunicationTest_SOURCES = \
159 src/test/DBusCommunicationTest.cpp \
160 ${TestInterfaceSources}
161 DBusCommunicationTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
162 DBusCommunicationTest_CXXFLAGS = ${GTEST_CXXFLAGS}
163 DBusCommunicationTest_LDADD = ${LDADD_FOR_GTEST}
165 DBusDaemonProxyTest_SOURCES = src/test/DBusDaemonProxyTest.cpp
166 DBusDaemonProxyTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
167 DBusDaemonProxyTest_CXXFLAGS = ${GTEST_CXXFLAGS}
168 DBusDaemonProxyTest_LDADD = ${LDADD_FOR_GTEST}
170 DBusInputStreamTest_SOURCES = \
171 src/test/DBusInputStreamTest.cpp \
172 ${TestInterfaceSources}
173 DBusInputStreamTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
174 DBusInputStreamTest_CXXFLAGS = ${GTEST_CXXFLAGS}
175 DBusInputStreamTest_LDADD = ${LDADD_FOR_GTEST}
177 DBusOutputStreamTest_SOURCES = \
178 src/test/DBusOutputStreamTest.cpp \
179 ${TestInterfaceSources}
180 DBusOutputStreamTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
181 DBusOutputStreamTest_CXXFLAGS = ${GTEST_CXXFLAGS}
182 DBusOutputStreamTest_LDADD = ${LDADD_FOR_GTEST}
184 DBusFactoryTest_SOURCES = \
185 src/test/DBusFactoryTest.cpp \
186 ${TestInterfaceSources}
187 DBusFactoryTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
188 DBusFactoryTest_CXXFLAGS = ${GTEST_CXXFLAGS}
189 DBusFactoryTest_LDADD = ${LDADD_FOR_GTEST}
191 DBusRuntimeTest_SOURCES = src/test/DBusRuntimeTest.cpp
192 DBusRuntimeTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
193 DBusRuntimeTest_CXXFLAGS = ${GTEST_CXXFLAGS}
194 DBusRuntimeTest_LDADD = ${LDADD_FOR_GTEST}
196 #DBusStubAdapterTest_SOURCES = src/test/DBusStubAdapterTest.cpp
197 #DBusStubAdapterTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
198 #DBusStubAdapterTest_CXXFLAGS = ${GTEST_CXXFLAGS}
199 #DBusStubAdapterTest_LDADD = ${LDADD} ${GTEST_LIBS} libCommonAPI-DBus.la
201 DBusMultipleConnectionTest_SOURCES = src/test/DBusMultipleConnectionTest.cpp \
202 ${TestInterfaceSources}
203 DBusMultipleConnectionTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
204 DBusMultipleConnectionTest_CXXFLAGS = ${GTEST_CXXFLAGS}
205 DBusMultipleConnectionTest_LDADD = ${LDADD_FOR_GTEST}
207 DBusProxyTest_SOURCES = \
208 src/test/DBusProxyTest.cpp \
209 ${TestInterfaceSources}
210 DBusProxyTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
211 DBusProxyTest_CXXFLAGS = ${GTEST_CXXFLAGS}
212 DBusProxyTest_LDADD = ${LDADD_FOR_GTEST}
214 DBusVariantTest_SOURCES = src/test/DBusVariantTest.cpp
215 DBusVariantTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
216 DBusVariantTest_CXXFLAGS = ${GTEST_CXXFLAGS}
217 DBusVariantTest_LDADD = ${LDADD_FOR_GTEST}
222 # ------------------------------------------------------------------------------
224 include $(top_srcdir)/aminclude.am
225 EXTRA_DIST += doxygen.cfg
226 MOSTLYCLEANFILES += ${DX_CLEANFILES}
228 # ------------------------------------------------------------------------------
229 MAINTAINERCLEANFILES = \
237 maintainer-clean-local:
240 -rm -f m4/libtool*.m4