From 38d78d19b9482e7bbad756f0cdbf533cbb52a8f8 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Mon, 9 Oct 2017 11:03:38 -0700 Subject: applypatch: Forward declare struct Value. And move '#include "edify/expr.h"' into .cpp files. This breaks the transitive dependency on libedify. Modules that include "applypatch/applypatch.h" don't need to add libedify into their dependency list, unless they really need anything from libedify. Build libedify static library for host, which is needed by libimgpatch. Test: mmma bootable/recovery Change-Id: Ibb53d322579fcbf593438d058d9bcee240625941 --- applypatch/bspatch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'applypatch/bspatch.cpp') diff --git a/applypatch/bspatch.cpp b/applypatch/bspatch.cpp index 65ee614ef..b2f29fbd6 100644 --- a/applypatch/bspatch.cpp +++ b/applypatch/bspatch.cpp @@ -30,6 +30,7 @@ #include #include "applypatch/applypatch.h" +#include "edify/expr.h" #include "print_sha1.h" void ShowBSDiffLicense() { @@ -91,4 +92,4 @@ int ApplyBSDiffPatch(const unsigned char* old_data, size_t old_size, const Value } } return result; -} \ No newline at end of file +} -- cgit v1.2.3