]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: Add convenience library to support unit tests
authorJason Dillaman <dillaman@redhat.com>
Sun, 16 Nov 2014 19:20:42 +0000 (14:20 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 13 Jan 2015 01:01:21 +0000 (20:01 -0500)
Unit tests need access to the private symbols of librbd no
longer exported from librbd.so.  A new librbd_internal
convenience library was created to allow access.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/Makefile.am

index a1f9032262f7661f99c901667aacafb7b0070746..87b326f816bd09388d6ebd6b2516d660a9ce4ed3 100644 (file)
@@ -1,12 +1,20 @@
-librbd_la_SOURCES = \
-       librbd/librbd.cc \
+librbd_internal_la_SOURCES = \
        librbd/AioCompletion.cc \
        librbd/AioRequest.cc \
        librbd/ImageCtx.cc \
        librbd/ImageWatcher.cc \
        librbd/internal.cc \
        librbd/LibrbdWriteback.cc
+noinst_LTLIBRARIES += librbd_internal.la
+
+librbd_api_la_SOURCES = \
+       librbd/librbd.cc
+noinst_LTLIBRARIES += librbd_api.la
+
+librbd_la_SOURCES = \
+       librbd/librbd.cc
 librbd_la_LIBADD = \
+       librbd_internal.la \
        $(LIBRADOS) $(LIBCOMMON) $(LIBOSDC) \
        librados_internal.la \
        libcls_rbd_client.la \