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/imgpatch.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'applypatch/imgpatch.cpp') diff --git a/applypatch/imgpatch.cpp b/applypatch/imgpatch.cpp index df75f98d4..7a43ddbef 100644 --- a/applypatch/imgpatch.cpp +++ b/applypatch/imgpatch.cpp @@ -37,6 +37,8 @@ #include #include +#include "edify/expr.h" + static inline int64_t Read8(const void *address) { return android::base::get_unaligned(address); } -- cgit v1.2.3