If cannot disable radosgw, the user has to always compile radosgw part,
even only want to use block device or file storage. Cherry-pick cannot
be done because ceph master doesn't have Makefile.am any more.
Fixes: http://tracker.ceph.com/issues/18512
Signed-off-by: Pan Liu <pan.liu@istuary.com>
if ENABLE_CLIENT
-
+if WITH_RADOS
+if WITH_RADOSGW
# inject rgw stuff in the decoder testcase
DENCODER_SOURCES += \
rgw/rgw_dencoder.cc \
libcls_timeindex_client.la \
libcls_statelog_client.la
-if WITH_RADOS
-if WITH_RADOSGW
-
librgw_la_SOURCES = \
rgw/rgw_acl.cc \
rgw/rgw_acl_s3.cc \
test/encoding/ceph_dencoder.cc \
$(DENCODER_SOURCES)
ceph_dencoder_LDADD = \
- $(LIBRGW) \
$(LIBRADOS) \
$(LIBRBD_TYPES) \
$(LIBOSD_TYPES) \
endif
if WITH_RADOSGW
ceph_dencoder_CXXFLAGS += -DWITH_RADOSGW
+ceph_dencoder_LDADD += \
+ $(LIBRGW) \
+ $(LIBRGW_DEPS)
endif