Add blobtool
Add command line tool "blobtool" for examining the binary store:
listing and reading blobs. The modification are not supported.
The tool is enabled in the build by default and can be disabled
by running configure script with "--disable-blobtool" option.
Signed-off-by: Maksym Sloyko <maxims@google.com>
Change-Id: Ibed6df639e541fd5100dbbc032846cbc15340654
diff --git a/Makefile.am b/Makefile.am
index b1746be..a7d0801 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -33,6 +33,15 @@
BUILT_SOURCES = binaryblob.pb.h binaryblob.pb.cc
+bin_PROGRAMS =
+
+if BUILD_BLOBTOOL
+bin_PROGRAMS += blobtool
+blobtool_SOURCES = blobtool.cpp
+blobtool_LDADD = libbinarystore.la
+blobtool_LDFLAGS = -lprotobuf
+endif
+
SUBDIRS = . test
ACLOCAL_AMFLAGS = -I m4