summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAmin Hassani <ahassani@google.com>2017-11-13 16:00:30 -0800
committerAmin Hassani <ahassani@google.com>2017-11-14 09:24:28 -0800
commita8ff454126ed6c2f60fe4c9ae4d8e3e1806791a6 (patch)
treefa35c01d19e4ae5d5c18a47cc825f20b786b077d /include
parentb2af52d1eb4b77667f271fddebe2aefe2e7ea015 (diff)
downloadbsdiff-a8ff454126ed6c2f60fe4c9ae4d8e3e1806791a6.tar.gz
bsdiff: Redo the gyp file
New changes in bsdiff causes a lot of undefined reference failures in the CrOS side. This CL modifies the bsdiff.gyp file to create a static and shared libraries for both bsdiff and bspatch. static libraries are used for unittests, and shared libraries are used in executables and by other external libraries. This way we do not have to export all the symbols that are not required to be exported. BUG=chromium:783437 TEST=unittests pass; 'bsdiff' and 'bspatch' run with no dependency issues. Change-Id: If6ad895756f7ef797844ba95e3dfd174793e10a8
Diffstat (limited to 'include')
-rw-r--r--include/bsdiff/patch_writer_factory.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bsdiff/patch_writer_factory.h b/include/bsdiff/patch_writer_factory.h
index 2320334..930cffb 100644
--- a/include/bsdiff/patch_writer_factory.h
+++ b/include/bsdiff/patch_writer_factory.h
@@ -9,18 +9,21 @@
#include <string>
#include <vector>
+#include "bsdiff/common.h"
#include "bsdiff/patch_writer_interface.h"
namespace bsdiff {
// Create a patch writer compatible with upstream's "BSDIFF40" patch format
// using bz2 as a compressor.
+BSDIFF_EXPORT
std::unique_ptr<PatchWriterInterface> CreateBsdiffPatchWriter(
const std::string& patch_filename);
// Create a patch writer compatible with Android Play Store bsdiff patches,
// uncompressed. The data will be written to the passed |patch| vector, which
// must be valid until Close() is called or this patch is destroyed.
+BSDIFF_EXPORT
std::unique_ptr<PatchWriterInterface> CreateEndsleyPatchWriter(
std::vector<uint8_t>* patch);